-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
270 lines (267 loc) · 14.4 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
262
263
264
265
266
267
268
269
270
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="code louisville winter '22 final project" />
<title>Contrast - Design resources for developers.</title>
<link rel="stylesheet" href="./build/css/main.css" />
</head>
<body id="container">
<dialog id="modal">
<div class="overlay">
<div class="dialog-content">
<form action="#" method="dialog">
<header class="submit-resource">
<h1>Submit Resource</h1>
<button value="reset" class="cancel-btn">
<svg fill="none" viewBox="0 0 24 24" width="24">
<circle cx="12" cy="12" r="12" fill="#EFF0F3" />
<path stroke="#A7AAB3" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M14.5 9 9 14.5M9 9l5.5 5.5" />
</svg>
</button>
</header>
<ul>
<li>
<label for="name">Resource Name</label>
<input type="text" id="name" name="Title" placeholder="UI8" required />
</li>
<li class="desc-label">
<label for="desc">Resource Description</label>
<label class="asterisk">(Max. 150 char.)</label>
<textarea id="desc" name="Description" type="text" rows="6" maxlength="150"
placeholder="100% curated digital marketplace with a growing library of high quality UX/UI design resources and freebies for designers."
required></textarea>
</li>
<li>
<label for="link"> Resource Link</label>
<input type="url" id="link" name="Link" placeholder="https://ui8.net" required />
</li>
<li>
<label for="icon-link"> Resource Icon Link</label>
<input type="url" id="icon-link" name="Icon"
placeholder="https://scontent.faly2-2.fna.fbcdn.net/v/t1.6435-9/4642.........." required />
</li>
<li class="select-label">
<label for="resources-cat">Resource Category</label>
<select class="select-inner" name="Resource" id="resources-cat" required>
<option value="mockups" selected>Mockups</option>
<option value="fonts">Fonts</option>
<option value="illustrations">Illustrations</option>
<option value="icons">Icons</option>
<option value="books">Books</option>
<option value="inspiration">Inspiration</option>
</select>
</li>
<li>
<button value="submit" id="submit-form" class="submit-form" type="submit">Submit Resource</button>
</li>
</ul>
</form>
</div>
</div>
</dialog>
<header class="main">
<nav class="topnav">
<ul>
<li>
<a href="#" class="logo">
<img src="./src/assets/contrast-logo.svg" alt="contrast logo" />
</a>
</li>
<li class="screen-nav browse links"><a href="#browse">Browse</a></li>
<li class="screen-nav links"><a href="#">Sponsor</a></li>
<li class="screen-nav"><a href="#">Templates</a></li>
<li class="screen-nav">
<input class="nosubmit" type="search" placeholder="Search resources" name="search" />
</li>
<li class="screen-nav">
<button type="button" class="main-cta" id="header-button"> Submit Resource </button>
</li>
</ul>
<div class="accordion-wrapper active" id="parent" data-accordion-wrapper>
<div role="navigation" class="accordion-menu">
<ul id="myLinks" class="accordion-list">
<li class="accordion-item">
<a href="#menu-1" class="accordion-link" data-accordion-menu>
<span> Resources </span>
<span class="accordion-icon"><svg width="11" height="6" viewBox="0 0 11 6" fill="none">
<path d="M1 0.75L5.5 5.25L10 0.75" stroke="#595959" />
</svg>
</span>
</a>
<ul class="accordion-sublist accordion-hidden" id="menu-1">
<li>
<a href="#" class="accordion-sublink"> Fonts </a>
</li>
<li>
<a href="#" class="accordion-sublink"> Mockups </a>
</li>
<li>
<a href="#" class="accordion-sublink"> Illustrations </a>
</li>
<li>
<a href="#" class="accordion-sublink"> Icons </a>
</li>
<li>
<a href="#" class="accordion-sublink"> Books </a>
</li>
<li>
<a href="#" class="accordion-sublink"> Inspiration </a>
</li>
</ul>
</li>
<li class="accordion-item">
<a href="#menu-2" class="accordion-link" data-accordion-menu>
<span> Company </span>
<span class="accordion-icon"><svg width="11" height="6" viewBox="0 0 11 6" fill="none">
<path d="M1 0.75L5.5 5.25L10 0.75" stroke="#595959" />
</svg></span>
</a>
<ul class="accordion-sublist accordion-hidden" id="menu-2">
<li>
<a href="#" class="accordion-sublink"> About </a>
</li>
<li>
<a href="#" class="accordion-sublink"> Blog </a>
</li>
</ul>
</li>
<li class="accordion-item">
<a href="#menu-3" class="accordion-link" data-accordion-menu>
<span> Support </span>
<span class="accordion-icon"><svg width="11" height="6" viewBox="0 0 11 6" fill="none">
<path d="M1 0.75L5.5 5.25L10 0.75" stroke="#595959" />
</svg></span>
</a>
<ul class="accordion-sublist accordion-hidden" id="menu-3">
<li>
<a href="#" class="accordion-sublink"> FAQ </a>
</li>
<li>
<a href="#" class="accordion-sublink"> Contact </a>
</li>
</ul>
</li>
<li class="accordion-item">
<a href="#menu-4" class="accordion-link" data-accordion-menu>
<span> Sponsor </span>
<span class="accordion-icon"><svg width="11" height="6" viewBox="0 0 11 6" fill="none">
<path d="M1 0.75L5.5 5.25L10 0.75" stroke="#595959" />
</svg></span>
</a>
<ul class="accordion-sublist accordion-hidden" id="menu-4">
<li>
<a href="#" class="accordion-sublink"> Sponsor Resource </a>
</li>
</ul>
</li>
</ul>
</div>
</div>
<span class="hamburger-menu">
<svg width="24" height="20" viewBox="0 0 24 20" fill="none" style="display: block">
<path d="M24 4H0V0H24V4ZM24 8H0V12H24V8ZM24 16H0V20H24V16Z" fill="black" />
</svg>
</span>
</nav>
</header>
<main>
<section id="hero">
<h1>Design resources for developers.</h1>
<p> Explore a collection of 3400+ curated design resources, both free and paid, developers can use to create
landing pages quicker. </p>
<button type="button" class="cta-button" id="hero-button"> Submit Resource </button>
<p>Used by individuals in:</p>
<div class="logo-svgs">
<a href="https://google.com/" target="_blank" rel="nonreferrer noopener" style="display: block">
<img src="./src/assets/google.svg" alt="google logo" />
</a>
<a href="https://discord.com/" target="_blank" rel="nonreferrer noopener"><img src="./src/assets/discord.svg"
alt="discord logo" style="display: block" />
</a>
<a href="https://slack.com/" target="_blank" rel="nonreferrer noopener">
<img src="./src/assets/slack.svg" alt="slack logo" style="display: block" />
</a>
<a href="https://twitter.com/" target="_blank" rel="nonreferrer noopener">
<img src="./src/assets/twitter.svg" alt="twitter logo" style="display: block" />
</a>
</div>
</section>
<section id="resources">
<header class="selection-bar">
<ul class="vertical-align-middle scroll">
<li class="resource-item active-bar" id="fonts">Fonts</li>
<li class="resource-item" id="mockups">Mockups</li>
<li class="resource-item" id="illustrations">Illustrations</li>
<li class="resource-item" id="icons">Icons</li>
<li class="resource-item" id="books">Books</li>
<li class="resource-item" id="inspiration">Inspiration</li>
</ul>
<span class="sort-by">Sort by<svg width="11" height="6" viewBox="0 0 11 6" fill="none">
<path d="M1 0.75L5.5 5.25L10 0.75" stroke="#595959" />
</svg>
</span>
</header>
<!-- USER INPUT-->
<ul id="local-storage"></ul>
<!-- END USER INPUT-->
<!-- JSON DATA -->
<ul id="fonts-results"></ul>
<ul id="mockups-results"></ul>
<ul id="illustrations-results"></ul>
<ul id="icons-results"></ul>
<!-- END JSON DATA -->
</section>
<section id="newsletter" class="signup">
<h3>Receive design resources every week. Straight to your inbox.</h3>
<p> Discover dozens of design resources each week from educational material to illustrations. </p>
<form>
<input type="email" placeholder="[email protected]" /><button type="button" class="subscribe"> Subscribe
</button>
</form>
<p>*No spam, unsubscribe anytime.</p>
</section>
</main>
<footer>
<div class="footer-logo">
<a href="/">
<svg fill="none" height="32" viewBox="0 0 108 32" width="108" class="logo">
<g fill="#4d13d1">
<path
d="m16-.0000007c-4.2435.00000019-8.31313 1.6857107-11.31371 4.6862907s-4.68629056 7.07021-4.6862907 11.31371c-.00000013 4.2435 1.6857107 8.3131 4.6862907 11.3137s7.07021 4.6863 11.31371 4.6863v-16z" />
<path
d="m40.732 22.216c-3.984 0-5.976-2.13-5.976-6.39 0-2.136.522-3.732 1.566-4.788 1.044-1.068 2.514-1.602 4.41-1.602 1.044 0 1.98.18 2.808.54.84.348 1.5.888 1.98 1.62.492.72.738 1.602.738 2.646h-2.682c0-.804-.258-1.434-.774-1.89-.516-.468-1.188-.702-2.016-.702-1.128 0-1.968.336-2.52 1.008s-.828 1.638-.828 2.898v.54c0 2.604 1.116 3.906 3.348 3.906.876 0 1.572-.228 2.088-.684.528-.456.792-1.086.792-1.89h2.592c0 1.056-.24 1.944-.72 2.664-.48.708-1.134 1.242-1.962 1.602-.828.348-1.776.522-2.844.522zm11.7482 0c-1.62 0-2.826-.402-3.618-1.206s-1.188-2.052-1.188-3.744.396-2.94 1.188-3.744 1.998-1.206 3.618-1.206 2.826.402 3.618 1.206c.804.804 1.206 2.052 1.206 3.744s-.402 2.94-1.206 3.744c-.792.804-1.998 1.206-3.618 1.206zm0-2.016c.804 0 1.386-.228 1.746-.684.36-.468.54-1.17.54-2.106v-.288c0-.936-.18-1.632-.54-2.088-.36-.468-.942-.702-1.746-.702s-1.386.234-1.746.702c-.348.456-.522 1.152-.522 2.088v.288c0 .936.174 1.638.522 2.106.36.456.942.684 1.746.684zm6.7919-7.668h2.106l.18 1.242h.126c.768-.972 1.752-1.458 2.952-1.458.972 0 1.734.264 2.286.792.564.528.846 1.374.846 2.538v6.354h-2.466v-5.832c0-.588-.138-1.014-.414-1.278s-.684-.396-1.224-.396c-.552 0-1.014.198-1.386.594-.36.384-.54.864-.54 1.44v5.472h-2.466zm13.5419 9.684c-.888 0-1.524-.24-1.908-.72s-.576-1.086-.576-1.818v-5.13h-1.134v-2.016h1.188l.414-2.664h1.998v2.664h1.638v2.016h-1.638v4.878c0 .516.258.774.774.774h.864v1.728c-.204.072-.462.138-.774.198-.3.06-.582.09-.846.09zm3.4562-9.684h2.106l.198 1.53h.126c.204-.54.468-.966.792-1.278s.75-.468 1.278-.468c.348 0 .66.054.936.162v2.304h-.684c-.804 0-1.386.222-1.746.666-.36.432-.54 1.092-.54 1.98v4.572h-2.466zm9.1741 9.684c-.732 0-1.404-.192-2.016-.576s-.918-1.08-.918-2.088c0-1.212.498-2.07 1.494-2.574.996-.516 2.406-.774 4.23-.774v-.666c0-.42-.096-.744-.288-.972-.18-.228-.528-.342-1.044-.342-.552 0-.948.084-1.188.252-.228.168-.342.366-.342.594v.27h-2.376c-.012-.072-.018-.204-.018-.396 0-.792.348-1.428 1.044-1.908.708-.48 1.644-.72 2.808-.72 1.296 0 2.262.264 2.898.792.648.528.972 1.29.972 2.286v4.176c0 .216.06.378.18.486.12.096.27.144.45.144h.504v1.728c-.384.192-.858.288-1.422.288-.492 0-.906-.108-1.242-.324-.324-.216-.546-.522-.666-.918h-.108c-.348.408-.75.72-1.206.936-.444.204-1.026.306-1.746.306zm.774-1.944c.696 0 1.206-.192 1.53-.576.324-.396.486-.918.486-1.566v-.288c-2.148 0-3.222.48-3.222 1.44 0 .3.096.54.288.72.204.18.51.27.918.27zm10.8299 1.944c-1.32 0-2.358-.27-3.114-.81-.744-.552-1.116-1.284-1.116-2.196l.018-.216h2.394v.126c.012.42.198.726.558.918.372.18.822.27 1.35.27.492 0 .912-.066 1.26-.198s.522-.348.522-.648c0-.336-.18-.588-.54-.756-.348-.168-.9-.336-1.656-.504-.78-.18-1.416-.36-1.908-.54-.492-.192-.918-.486-1.278-.882s-.54-.924-.54-1.584c0-.924.384-1.632 1.152-2.124.78-.504 1.782-.756 3.006-.756 1.14 0 2.082.234 2.826.702.7438.456 1.1158 1.08 1.1158 1.872l-.018.414h-2.3938v-.108c0-.312-.15-.552-.45-.72-.288-.168-.678-.252-1.17-.252s-.882.066-1.17.198-.432.318-.432.558c0 .3.162.522.486.666.336.144.87.288 1.602.432.804.18 1.458.36 1.962.54.5038.18.9418.474 1.3138.882s.558.96.558 1.656c0 2.04-1.4458 3.06-4.3378 3.06zm8.7598 0c-.888 0-1.524-.24-1.908-.72s-.576-1.086-.576-1.818v-5.13h-1.134v-2.016h1.188l.414-2.664h1.998v2.664h1.638v2.016h-1.638v4.878c0 .516.258.774.774.774h.864v1.728c-.204.072-.462.138-.774.198-.3.06-.582.09-.846.09z" />
</g>
</svg>
</a>
<p> Explore a collection of 3400+ curated design resources, both free and paid, developers can use to create
landing pages quicker. </p>
</div>
<ul class="b">
<li class="categories">Resources</li>
<li><a href="#">Fonts</a></li>
<li><a href="#">Illustrations</a></li>
<li><a href="#">Mockups</a></li>
<li><a href="#">Icons</a></li>
<li><a href="#">Books</a></li>
</ul>
<ul class="c">
<li class="categories">Company</li>
<li><a href="#">About</a></li>
<li><a href="#">Blog</a></li>
</ul>
<ul class="d">
<li class="categories">Support</li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Contact</a></li>
</ul>
<ul class="e">
<li class="categories">Sponsor</li>
<li><a href="#">Sponsor Resource</a></li>
</ul>
</footer>
<script src="./src/js/main.js" type="module"></script>
</body>
</html>