-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
235 lines (209 loc) · 11.2 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>QuickPic</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- You can add your styles and scripts here -->
<link rel="stylesheet" type="text/css" media="screen" href="styles/provided.css" />
<script type="module" src="src/helpers.js"></script>
<script type="module" src="src/api.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" type="text/css" href="styles/bootstrap.min.css">
<script src="src/bootstrap.min.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" href="img/favicon.png"/>
</head>
<body class="d-flex flex-column h-100">
<!-- This is an example app structure, you can modify this as much as you choose -->
<div class="invisible">
<div class="p-5 bg-light border">Block</div>
<div class="p-4 bg-light border d-md-none">Block</div>
</div>
<div class="container fixed-top">
<header class="d-flex flex-wrap align-items-center justify-content-center justify-content-md-between py-3 mb-4 border-bottom">
<a href="/index.html" class="d-flex align-items-center col-md-3 mb-2 mb-md-0 text-dark text-decoration-none">
<span style="font-family: 'Dancing Script', cursive; font-size: 28px;">QuickPic</span>
</a>
<ul class="nav col-12 col-md-auto mb-2 justify-content-center mb-md-0 d-none" name="dashNav">
<li><a href="#" class="nav-link px-2 link-dark" name="homePage">Home</a></li>
<li><a href="#" class="nav-link px-2 link-dark" name="profilePage">Profile</a></li>
<li><a href="#" class="nav-link px-2 link-dark" name="UploadPage">Upload</a></li>
</ul>
<div class="col-md-3 text-end">
<button type="button" class="btn btn-outline-primary me-2" id="login_button">Login</button>
<button type="button" class="btn btn-primary" id="signup_button">Sign up</button>
<button type="button" class="btn btn-secondary d-none" id="signOut_button">Sign Out</button>
</header>
</div>
<main role="main" class="container">
<!-- app goes here -->
<div class="row justify-content-center d-flex" id="signPage">
<div class="col-md-4 col-sm-auto">
<!-- Login page -->
<form name="login" class="row g-3">
<h3 class="h3 mb-3 fw-normal text-center">Please Login</h3>
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<input type="text" class="form-control" name="username" id="username" value="Sophia">
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" name="password" id="password" value="cluttered">
<div class="form-text">
Your password must be 8-20 characters long.
</div>
</div>
<div class="mb-3">
<label for="confirmPassword" class="form-label">Confirm Password</label>
<input type="password" class="form-control" name="confirmPassword" id="confirmPassword" value="cluttered">
<div class="form-text">
Your confirm password should be same as password.
</div>
</div>
<div class="d-grid gap-2 d-md-flex justify-content-md-center">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
<!-- signup page -->
<form name="signup" class="row g-3 d-none">
<h3 class="h3 mb-3 fw-normal text-center">Sign Up here</h3>
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<input type="text" class="form-control" name="username">
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" name="password">
<div class="form-text">
Your password must be 8-20 characters long.
</div>
</div>
<div class="mb-3">
<label for="confirmPassword" class="form-label">Confirm Password</label>
<input type="password" class="form-control" name="confirmPassword">
<div class="form-text">
Your confirm password should be same as password.
</div>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email address</label>
<input type="email" class="form-control" id="email" placeholder="name@example.com">
</div>
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input type="text" class="form-control" name="name">
</div>
<div class="d-grid gap-2 d-md-flex justify-content-md-center">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
<!-- dashboard -->
<div class="row justify-content-center d-none" id="dashBoard">
<!-- if not feed -->
<div class="col-lg-10 col-sm-auto d-none" id="noFeed">
<div class="bg-light p-5 rounded">
<h1>No post yet</h1>
<p class="lead">Post not found, why not follow someone?</p>
<a class="btn btn-outline-success" href="#" role="button">To follow</a>
</div>
</div>
<!-- for the post thumbnail -->
<div class="col-lg-8 col-md-6 col-sm-auto" id="Feed">
<!-- For feed reference -->
</div>
</div>
<div class="row justify-content-center d-flex d-none" id="profile">
<!-- profile text -->
<div py-5 text-center container>
<div class="row py-lg-5">
<div class="col-lg-6 col-md-8 mx-auto">
<h3 class="row fw-light" name="profile_name">Hi, name</h3>
<div class="row">
<button class="col-1 btn btn-sm btn-outline-primary" type="button" name='profile_button'>+</button>
<p class="col-2 font-monospace lead text-muted" name="profile_username">@username</p>
</div>
<div class="row">
<p class="lead" name="profile_follow">Following: xxx | Follower: xxx</p>
<a class="text-decoration-none" href="#" name="profile_email">Temple@email.com</a>
</div>
</div>
</div>
</div>
<div class="album py-5 bg-light">
<div class="container">
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3" name="profile_pic">
<!-- <div class="col">
<div class="card shadow-sm">
<svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false"><title>Placeholder</title><rect width="100%" height="100%" fill="#55595c"></rect><text x="50%" y="50%" fill="#eceeef" dy=".3em">Thumbnail</text></svg>
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div> -->
</div>
</div>
</div>
</div>
<div class="row justify-content-center d-flex d-none" id="uploadPage">
<form name="uploadPost" class="row g-3">
<h3 class="h3 mb-3 fw-normal text-center">Upload Post</h3>
<div class="input-group mb-3">
<input type="file" class="form-control" id="imageUpload">
<label class="input-group-text" for="Upload file">Upload Image</label>
</div>
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2">
<label class="input-group-text" for="Upload file">Input description</label>
</div>
<div class="d-grid gap-2 d-md-flex justify-content-md-center">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</main>
<!-- Alert -->
<div class="modal fade" id="Alert" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" name="alertTitle" id="alertTitle">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" name="alertText" id="alertText">
Text
</div>
</div>
</div>
</div>
<div class="modal fade" id="modal_display" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" name="modalTitle" id="modalTitle">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" name="modalText" id="modalText">
Text
</div>
</div>
</div>
</div>
<div class="invisible">
<div class="p-2 bg-light border">Grid item 1</div>
</div>
<!-- footer -->
<footer class="footer fixed-bottom mt-auto py-3 bg-light text-center" id="footer">
<div>
<span class="text-muted">© Quickpic 2021</span>
</div>
</footer>
<!-- js stuff -->
<script type="module" src="src/main.js"></script>
<script src="src/bootstrap.min.js"></script>
</body>
</html>