-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
139 lines (136 loc) · 4.22 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>ScriBBler</title>
<link
href="https://fonts.googleapis.com/css?family=Montez&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./styles/common.css" />
<link rel="stylesheet" href="styles/index.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
</head>
<body>
<div class="header-container">
<header>
<div class="logo">
<h1 class="main-logo">ScriBBler</h1>
<p class="subheading">Explore, Imagine, Create</p>
</div>
<div class="buttons">
<button id="signUpBtn">Sign Up</button>
<button id="signInBtn">Sign In</button>
</div>
</header>
<!-- The Sign Up Modal -->
<div id="signUpModal" class="modal">
<<!-- Modal content -->
<div class="modal-content">
<span class="close"
><i class="fa fa-times" aria-hidden="true"></i
></span>
<h2>Get Started</h2>
<hr />
<form id="signUpForm">
<label for="name">Name</label>
<input
type="text"
id="name"
placeholder="Enter your name"
required
/>
<label for="username">Username</label>
<input
type="text"
id="username"
placeholder="Enter your username"
required
/>
<label for="password">Password</label>
<input
type="password"
id="password"
placeholder="Enter your password"
required
/>
<label for="confirmPassword">Confirm Password</label>
<input
type="password"
id="confirmPassword"
placeholder="Re-enter your password"
required
/>
<button type="submit" class="signUpBtn">Sign Up</button>
</form>
</div>
</div>
<!-- The Sign In Modal -->
<div id="signInModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close"
><i class="fa fa-times" aria-hidden="true"></i
></span>
<h2>Welcome Back!</h2>
<hr />
<form id="signInForm">
<label for="username">Username</label>
<input
type="text"
id="username"
placeholder="Enter your username"
required
/>
<label for="password">Password</label>
<input
type="password"
id="password"
placeholder="Enter your password"
required
/>
<button type="submit" class="signInBtn">Sign In</button>
<p>Not a member? <a href="#" id="signUpLink">Sign Up</a></p>
</form>
</div>
</div>
</div>
<div class="main-section">
<button class="main-btn" id="allPostsBtn">
<a href="./html/postslist.html" target="_blank">All Posts</a>
</button>
<button class="main-btn" id="createPostBtn">Create Post</button>
<div id="createPostModal" class="modal">
<!-- Modal content -->
<div class="modal-content create-post">
<span class="close"
><i class="fa fa-times" aria-hidden="true"></i
></span>
<h2>Pen Your Post</h2>
<hr />
<form id="createPostForm">
<label for="postTitle">Title</label>
<input
type="text"
id="postTitle"
placeholder="Enter title of your post"
required
/>
<label for="postContent">Contents</label>
<textarea
id="postContent"
placeholder="Enter the contents of your post"
required
></textarea>
<button type="submit" class="createBtn">Create</button>
</form>
</div>
</div>
</div>
<script src="scripts/index.js"></script>
<script src="scripts/common.js"></script>
</body>
</html>