-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
262 lines (208 loc) · 6.12 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!-- aaron elcheson: 261047851-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Aesbin Home</title>
<link rel="stylesheet" href="./animation.css" />
<link rel="stylesheet" href="./general_styles.css">
<!-- <style>
* {
margin: 0;
padding: 0;
box-sizing: border-box; /* ensures the box elements resize well */
font-family: "Courier New", Courier, monospace, sans-serif;
}
body {
display: flex; /* using flexbox for the page elements */
flex-direction: column;
min-height: 100vh;
}
/* NAV BAR STYLE BELOW -> logo and links*/
.navbar {
height: 100px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 30px;
background-color: #bfb8bd; /* light pink color */
color: black;
position: relative;
}
.logo {
flex: 0 0 auto; /* keep on left side */
margin: 5px;
margin-right: 5rem;
}
/* view settings for logo */
.logo img {
width: 105px;
height: auto;
display: block;
border-radius: 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
padding: 15px, 20px;
background-color: #bfb8bd;
border: 2px solid white;
transform: scale(1.1); /* logo zoom */
}
.nav-links {
flex: 1;
list-style: none; /* remove dots from list elements */
display: flex;
justify-content: space-evenly;
align-items: center;
gap: 30px; /* space between items and space away from edges of screen */
margin-right: 60rem;
}
.nav-links a {
text-decoration: none;
color: black;
font-size: 1.5rem;
font-weight: bold;
font-variant: small-caps;
transition: color 0.3s;
}
.nav-links a:hover {
color: white;
}
/* style for main page elements -> inner content box, text entry */
.main-content {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
border: 25px solid white;
background-color: #bfb8bd; /* light pink */
}
/* inner content box for style -> paste main submission area */
.content-inner {
width: 100%;
max-width: 600px;
padding: 20px;
border: 10px solid #bfb8bd;
border-radius: 15px;
background-color: #4d5859;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.text-area-container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
max-width: 600px;
text-align: center;
}
/* responsive sizing for text box area */
textarea {
width: 100%;
height: auto;
min-height: 150px;
padding: 10px;
border: 2px solid #ccc;
border-radius: 5px;
font-size: 1rem;
resize: both;
box-sizing: border-box;
}
/* styles for the footer: password entry and submit button */
.footer {
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
background-color: #bfb8bd; /* Footer brand color */
color: #bfb8bd;
gap: 10px;
}
.footer input[type="password"] {
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
}
.footer button {
padding: 5px 10px;
background-color: #f39c12; /* Accent color */
border: none;
border-radius: 5px;
color: #fff;
cursor: pointer;
}
.footer button:hover {
background-color: #363f40;
}
/* responsive elements */
@media (max-width: 600px) {
.nav-links {
flex-direction: column;
gap: 10px;
}
.footer {
flex-direction: column;
gap: 5px;
}
}
</style> -->
</head>
<body>
<script src="common.js"></script>
<header class="navbar">
<div class="logo">
<img src="./logo.PNG" />
</div>
<nav>
<ul class="nav-links">
<li><a href="./index.html">Home</a></li>
<li><a href="./about.html">About</a></li>
<li><a href="./recent_pastes_v2.html" id="recent-link">Recent</a></li>
<li><a href="./login.php" id="login-button">Login</a></li>
<li><a href="./dashboard.html">Dashboard</a></li>
<li>
<a href="./logout.php" id="logout-button" style="cursor: pointer; font-weight: bold;">Logout</a>
</li>
</ul>
</nav>
<!--css animation for falling lettesr: a, e, s, b, i , n-->
<div class="falling-letters">
<span class="letter">A</span>
<span class="letter">E</span>
<span class="letter">S</span>
<span class="letter">b</span>
<span class="letter">i</span>
<span class="letter">n</span>
</div>
</header>
<div class="picture-box">
<img class = "picture-box" src="./nebula.jpg" alt="image of the horsehead nebula">
</div>
<form action="submit.php" method="POST">
<main class="main-content" >
<p style ="font-family: 'Courier New', Courier, monospace; color: white; ">
Type your paste here and hit the submit button below. Provide an
optional password below.
</p>
<div class="content-inner">
<div class="text-area-container">
<textarea name="content" rows="10" cols="50" required ></textarea>
</div>
</div>
</main>
</div>
<footer class="footer">
<div>
<label for="password">Password: </label>
<input
name="password"
type="password"
id="password"
placeholder="Enter password"
/>
<button type="submit">Submit</button>
</div>
</footer>
</form>
</body>
</html>