-
Notifications
You must be signed in to change notification settings - Fork 0
/
indexCopy.html
156 lines (142 loc) · 4.53 KB
/
indexCopy.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/style.css">
<title>MyBlog</title>
<!-- Firebase -->
<script src="./node_modules/firebase/firebase.js"></script>
<!-- Modules -->
<script src="./node_modules/jquery/dist/jquery.js"></script>
<script src="./node_modules/handlebars/dist/handlebars.js"></script>
<script src="./node_modules/sammy/lib/sammy.js"></script>
<script src="./node_modules/sammy/lib/plugins/sammy.handlebars.js"></script>
<!-- Scripts -->
<script src="./scripts/app.js" type="module"></script>
</head>
<body>
<div id="root"></div>
<!-- Header -->
<header id="header">
<h1>MyBlog</h1>
<h2>Welcome <span>Name!</span>!</h2>
<nav id="nav">
<ul>
<li><a href="#/logout">Logout</a></li>
<li><a href="#/">Home</a></li>
<li><a href="#/login">Login</a></li>
<li><a href="#/register">Register</a></li>
</ul>
</nav>
</header>
<!-- Home -->
<section id="home-logged">
<section class="first-section">
<section class="background-container">
<form action="/create-post" method="POST">
<h1>Create Post</h1>
<label for="title">Title</label>
<input type="text" name="title">
<label for="category">Category</label>
<input type="text" name="category">
<label for="content">Content</label>
<textarea name="content" cols="30" rows="7"></textarea>
<button>Submit</button>
</form>
</section>
</section>
<section class="second-section">
<h3>Articles</h3>
<hr>
<div class="posts-row">
</div>
</section>
</section>
<section id="home">
<section class="background-container">
<h1>Welcome to MyBlog!</h1>
<div class="auth-buttons">
<a href="#/login">Login</a>
<a href="#/register">Register</a>
</div>
</section>
</section>
<!-- Login -->
<section id="login">
<div class="color">
<div class="login-form">
<h1>Login</h1>
<form action="/login" method="POST" id="form">
<label for="email">Email</label>
<input type="text" name="email">
<label for="password">Password</label>
<input type="password" name="password">
<button>Submit</button>
<a href="#/register" class="option">Don't have an account?</a>
</form>
</div>
</div>
</section>
<!-- Register -->
<section id="register">
<div class="color">
<div class="register-form">
<h1>Register</h1>
<form action="/register" method="POST" id="form">
<label for="email">Email</label>
<input type="text" name="email">
<label for="password">Password</label>
<input type="password" name="password">
<label for="repeat-password">Repeat Password</label>
<input type="password" name="repeatPassword">
<button>Submit</button>
<a href="#/login" class="option">Already have an account?</a>
</form>
</div>
</div>
</section>
<!-- Post -->
<article class="post">
<h1>Javascript</h1>
<h2><span>Programming</span></h2>
<p>Javascript is the best language!</p>
<a href="" id="delete-button">Delete</a>
<a href="" id="details-button">Details</a>
<a href="" id="edit-button">Edit</a>
</article>
<!-- Details -->
<section class="details">
<div class="detail">
<h1>Title: Javascript</h1>
<h2>Category: Programming</h2>
<h3>Content: Javascript is the best language!</h3>
<a href="">Back to Home</a>
</div>
</section>
<!-- Edit -->
<main id="home-logged">
<section class="first-section">
<section class="background-container">
<form action="" method="" class="edit-form">
<h1>Edit Post</h1>
<label for="title">Title</label>
<input type="text" name="title" value="Javascript">
<label for="category">Category</label>
<input type="text" name="category" value="Programming">
<label for="content">Content</label>
<textarea name="content" cols="30" rows="7">Javascript is the best language!</textarea>
<button>Edit</button>
<a href="" id="close-btn"><img src="../../images/close.png"></a>
</form>
</section>
</section>
<section class="second-section">
<h3>Posts</h3>
<hr>
<div class="posts-row">
</div>
</section>
</main>
</body>
</html>