Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba8c932

Browse files
committed
Added GistBarn client_id
1 parent 7d39b1e commit ba8c932

File tree

6 files changed

+82
-14
lines changed

6 files changed

+82
-14
lines changed

src/views/AuthIn.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {R,X} from '../../node_modules/brutalist-web/r.js';
22

33
export default function AuthIn(state) {
44
return R`
5-
<article class="app holygrail">
6-
7-
</article>
5+
<section class="authin">
6+
<a href=https://github.com/login/oauth/authorize?client_id=d10c47b12243b3cdfd86>Login</a>
7+
</section>
88
`;
99
}

src/views/FeedPage.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@ import {R,X} from '../../node_modules/brutalist-web/r.js';
22

33
export default function FeedPage(state) {
44
return R`
5-
<article class="app holygrail">
6-
5+
<article class="app holygrail feedpage debug">
6+
<header>
7+
<span class=heading>Gistbarn</span>
8+
<span class=auth>
9+
Auth Section
10+
</span>
11+
</header>
12+
<nav>
13+
<header>Nav Section</header>
14+
</nav>
15+
<article>
16+
Main Section (new Post + feed of all followed)
17+
</article>
18+
<aside>Aside Section</aside>
19+
<footer>Footer</footer>
720
</article>
821
`;
922
}

src/views/MyPage.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@ import {R,X} from '../../node_modules/brutalist-web/r.js';
22

33
export default function MyPage(state) {
44
return R`
5-
<article class="app holygrail">
6-
5+
<article class="app holygrail otherspage debug">
6+
<header>
7+
<span class=heading>Gistbarn</span>
8+
<span class=auth>
9+
Auth Section
10+
</span>
11+
</header>
12+
<nav>
13+
<header>Nav Section</header>
14+
</nav>
15+
<article>
16+
Main Section (new post + my posts)
17+
</article>
18+
<aside>Aside Section</aside>
19+
<footer>Footer</footer>
720
</article>
821
`;
922
}

src/views/OthersPage.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@ import {R,X} from '../../node_modules/brutalist-web/r.js';
22

33
export default function OthersPage(state) {
44
return R`
5-
<article class="app holygrail">
6-
5+
<article class="app holygrail otherspage debug">
6+
<header>
7+
<span class=heading>Gistbarn</span>
8+
<span class=auth>
9+
Auth Section
10+
</span>
11+
</header>
12+
<nav>
13+
<header>Nav Section</header>
14+
</nav>
15+
<article>
16+
Main Section (others posts)
17+
</article>
18+
<aside>Aside Section</aside>
19+
<footer>Footer</footer>
720
</article>
821
`;
922
}

src/views/Post.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,26 @@ import {R,X} from '../../node_modules/brutalist-web/r.js';
22

33
export default function Post(state) {
44
return R`
5-
<article class="app holygrail">
6-
5+
<article class="post view edit">
6+
<section class="post">
7+
<header>Post title</header>
8+
<section class="post paragraphs">
9+
<p>First para
10+
<p>Second para
11+
</section>
12+
<footer>
13+
<time>Post date</time>
14+
<author>Post author</author>
15+
</footer>
16+
</section>
17+
<section class="post edit">
18+
<p>
19+
<input name=tags placeholder=tags>
20+
<p>
21+
<textarea name=post class="markdown live-mode"></textarea>
22+
<p>
23+
<button class=post>Post</button>
24+
</section>
725
</article>
826
`;
927
}

src/views/PostList.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,19 @@ import {R,X} from '../../node_modules/brutalist-web/r.js';
22

33
export default function PostList(state) {
44
return R`
5-
<article class="app holygrail">
6-
7-
</article>
5+
<section class="postlist">
6+
${ state.posts ? R`
7+
<ul>
8+
${state.posts.forEach(post => R`
9+
<li>
10+
<section class="postsummary">
11+
<header>${post.title}</header>
12+
<div class="postcontent">${post.snippet}</div>
13+
<a click=${post.readMore || (() => (1))}>Read more</a>
14+
</section>
15+
</li>
16+
`)}
17+
</ul>` : X`<span>No posts to show right now.</span>` }
18+
</section>
819
`;
920
}

0 commit comments

Comments
 (0)