-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
47 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<section class="error"> | ||
<p class="error__desc">404. <span class="error__msg">Page not found</span></p> | ||
<img class="error__image" src="../../public/images/error.png" alt="error"> | ||
</section> | ||
<main> | ||
<section class="error"> | ||
<p class="error__desc">404. <span class="error__msg">Page not found</span></p> | ||
<img class="error__image" src="../../public/images/error.png" alt="error"> | ||
</section> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<section class="error"> | ||
<p class="error__desc">500. <span class="error__msg">Server Error</span></p> | ||
<img class="error__image" src="../../public/images/error.png" alt="error"> | ||
</section> | ||
<main> | ||
<section class="error"> | ||
<p class="error__desc">500. <span class="error__msg">Server Error</span></p> | ||
<img class="error__image" src="../../public/images/error.png" alt="error"> | ||
</section> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
{{> header}} | ||
<section class="post-section"> | ||
{{#each postsArray}} | ||
<div class="post-content"> | ||
<h1 class="username">{{this.username}}</h1> | ||
<h2 class='post-category'>{{this.category}}</h2> | ||
<p class="post-text">{{this.content}}</p> | ||
<div class="img-container"> | ||
<img class="post-img" src={{this.img_url}} alt="post image"> | ||
<main> | ||
<section class="post-section"> | ||
{{#each postsArray}} | ||
<div class="post-content"> | ||
<h1 class="username">{{this.username}}</h1> | ||
<h2 class='post-category'>{{this.category}}</h2> | ||
<p class="post-text">{{this.content}}</p> | ||
<div class="img-container"> | ||
<img class="post-img" src={{this.img_url}} alt="post image"> | ||
</div> | ||
</div> | ||
</div> | ||
{{/each}} | ||
</section> | ||
{{/each}} | ||
</section> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
{{> header}} | ||
<section class="form-section"> | ||
<form action="/addPost" method="post"> | ||
<textarea name="post-text" id="text" class="post-text" cols="30" rows="10" placeholder="Write your post here"></textarea> | ||
<label for="post-category">Category</label> | ||
<input name="post-category" type="text"> | ||
<input type="text" name="post-img" id="post-image" placeholder="Add image URL here"> | ||
<button class="add-post-btn" type="submit">Add Post</button> | ||
</form> | ||
</section> | ||
<main> | ||
<section class="form-section"> | ||
<form action="/addPost" method="post"> | ||
<textarea name="post-text" id="text" class="post-text" cols="30" rows="10" placeholder="Write your post here"></textarea> | ||
<label for="post-category">Category</label> | ||
<input name="post-category" type="text"> | ||
<input type="text" name="post-img" id="post-image" placeholder="Add image URL here"> | ||
<button class="add-post-btn" type="submit">Add Post</button> | ||
</form> | ||
</section> | ||
|
||
<section class="post-section"> | ||
{{#each postsArray}} | ||
<div class="post-content"> | ||
<h1 class="username">{{this.username}}</h1> | ||
<h2 class='post-category'>{{this.category}}</h2> | ||
<p class="post-text">{{this.content}}</p> | ||
<div class="img-container"> | ||
<img class="post-img" src={{this.img_url}} alt="post image"> | ||
<section class="post-section"> | ||
{{#each postsArray}} | ||
<div class="post-content"> | ||
<h1 class="username">{{this.username}}</h1> | ||
<h2 class='post-category'>{{this.category}}</h2> | ||
<p class="post-text">{{this.content}}</p> | ||
<div class="img-container"> | ||
<img class="post-img" src={{this.img_url}} alt="post image"> | ||
</div> | ||
</div> | ||
</div> | ||
{{/each}} | ||
</section> | ||
{{/each}} | ||
</section> | ||
</main> |