-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
265 lines (183 loc) · 9.87 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
<!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="Fresco wallpapers hd quality.">
<title>FRESCO WALLPAPERS</title>
<link rel="stylesheet" href="output.css">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="assets/favicon.svg" type="image/x-icon" id="favicon">
</head>
<body id="bg">
<div class="loader-container" id="LOADER">
<div class="loader">
<div class="loader-inner"></div>
</div>
<div class="loading-text">Loading...</div>
</div>
<div class="MAIN">
<div id="NAVBAR-SECTION">
<nav class="navbar flex flex-row gap-2 justify-between h-20 items-center">
<div class="flex flex-row justify-center p-2" id="maineu">
<div class="flex flex-row justify-center w-fit" id="LOGO">
<a href="#NAVBAR-SECTION">
<img src="assets/favicon.svg" alt="Wallpaper-img" class="w-8 rounded-full ">
</a>
<span class="favdes">Fresco Wallpapers</span>
</div>
</div>
<div class="flex flex-row justify-between border-solid border-2 rounded-full" id="surch2">
<input type="text" placeholder="search wallpapers" id="display2">
<div class="surcher bg-cyan-300" onclick="fetchImages()">
<img src="assets/search.svg" alt="" id="search2">
</div>
</div>
<!--The list of buttons on the navigation bar-->
<ul class="flex flex-row gap-2 justify-center items-center" id="NAV-LIST">
<a href="#NAVBAR-SECTION">
<button class="home font-bold border-black border-solid p-2 ">Home</button>
</a>
<a href="#FOOT">
<button class="home font-bold border-black border-solid p-2 ">About</button>
</a>
<a href="#CONTENT-SECTION">
<button class="home font-bold border-black border-solid p-2 ">Trending</button>
</a>
</ul>
<!--the invisible menu button that pops on smaller screens-->
<img src="assets/menu.svg" alt="MENU" class="w-8 hover:cursor-pointer" id="hideonpc"
onclick="toggleNavbar()">
</nav>
<!--The popup after pressing the menu button-->
<div class="" id="MENUPOP">
<div id="MP2">
<div>
</div>
</div>
<div class="MP3">
<img src="assets/favicon.svg" alt="" class="icon2">
<br>
<ul class="flex flex-col justify-center items-center gap-2" id="NAV-LIST2">
<a href="#NAVBAR-SECTION">
<li class="text-white rounded-md w-fit m-1 p-2 hover:text-black cursor-pointer hover:bg-white">
Home</li>
</a>
<a href="#FOOT">
<li class="text-white rounded-md w-fit m-1 p-2 hover:text-black cursor-pointer hover:bg-white">
About</li>
</a>
<a href="#wallpapers" >
<li class="text-white rounded-md w-fit m-1 p-2 hover:text-black cursor-pointer hover:bg-white" onclick="reloaderImg()">
Trending</li>
</a>
<br>
<button class="text-white" onclick="switcher()">Dark/light Mode</button>
</ul>
</div>
</div>
</div>
<div class="flex flex-col w-full h-full p-10" id="landing-page">
<div class="flex flex-col ">
<p class="Heading"><span class="text-black">FRESCO </span><span class="walls">WALLPAPERS</span>.
</p>
<br>
</div>
<div class="flex flex-row gap-1 border-solid border-2 p-2 w-fit justify-between" id="surch">
<input type="text" placeholder="search wallpapers"
class="bg-transparent border-none h-10 w-100 p-2 border-black" id="display">
<div id="search"><img src="assets/search.svg" alt="" class="p-1 w-7"></div>
</div>
</div>
<!--The main content-goes below here-->
<div id="CONTENT-SECTION" class="justify-center items-center flex flex-col p-3 w-full">
<br>
<br>
<div class="flex flex-row w-full justify-between" id="headersorter">
<div >
<p class="heading" id="search-result">Trending</p>
</div>
<div class="flex flex-row gap-1">
<p class="heading2 border-solid border-black border-2 p-1 " id="SC"><span>⚎</span> Sort</p>
<p class="heading2 border-solid border-black border-2 p-1 " id="FC"><span>☂</span>Filter</p>
<p class="heading2 border-solid border-black border-2 p-1 " id="CT"><span>ǂ</span>General</p>
</div>
</div>
<div id="sort-controls" class="p-5">
<button id="date-added">Date</button>
<button id="randomizer">Random</button>
<button id="relevancer">Relevance</button>
</div>
<div id="Filter-controls" class="p-5">
<button id="phonesize" onclick="changetoPhone()">soon</button>
</div>
<div id="categories" class="p-5">
<button id="people">People</button>
<button id="anime">Anime</button>
<button id="general">General</button>
</div>
<br>
<div id="wallpapers" class="p-5 m-0 w-full h-fit ">
<img src="assets/loader2.gif" alt="LOADING" id="loader2">
<img src="assets/loader2.gif" alt="LOADING" id="loader3">
<img src="assets/loader2.gif" alt="LOADING" id="loader4">
</div>
<div id="no-more-images" style="display: none;" class="w-full justify-center items-center flex-col gap-5">
<p class="heading" id="ENDER1">Woops!! Nothing here!!</p>
<img src="assets/spaceman.gif" alt="" class="endIMg" id="EI">
<p class="heading" id="ENDER2">No more Images</p>
</div>
</div>
<div class="PAGINATOR w-full flex flex-row justify-between items-center gap-5 p-5 bg-white">
<div>
<button class="pagebutton" id="back"><</button>
</div>
<div class="w-full flex flex-row justify-center items-center gap-5">
<div class="PP12">
<p class="Page">Page</p>
</div>
<button class="pagebutton1"id="1">1</button>
</div>
<div>
<button class="pagebutton p-1 flex justify-center" id="NXT1">></button>
<button class="pagebutton p-1 flex justify-center" id="NXT2">></button>
</div>
</div>
</div>
<!--contacts section-->
<footer class="footer" id="FOOT">
<div class="flex flex-col p-5 items-center border-none justify-center gap-3"
id="CONTACTS">
<div class="flex flex-row gap-5" id="contact-images">
<a href="https://github.com/gamerfunky78" target="_blank">
<img src="assets/github.svg" alt="github" class="cimg w-10 hover:cursor-pointer">
</a>
<a href="https://www.instagram.com/bryce._.six/">
<img src="assets/instagram.svg" alt="instagram" class="cimg w-10 hover:cursor-pointer">
</a>
<a href="https://twitter.com/BrianAli427" target="_blank">
<img src="assets/twitter.svg" alt="twitter" class="cimg w-10 hover:cursor-pointer">
</a>
<a href="https://brianali.netlify.app/" target="_blank">
<img src="assets/bag.svg" alt="Linkedin" class="cimg w-10 hover:cursor-pointer">
</a>
</div>
<div class="flex flex-col items-center justify-center gap-2" id="CONTACTS">
<p>Contact Me on +254795328270.</p>
<p>Fresco Wallpapers use the wallhaven Api therefore none of the wallpapers belong to © Fresco
wallpapers.</p>
<p class="text-black"><span>©</span>2024 || All rights reserved || Brian Ali</p>
</div>
<a href="#NAVBAR-SECTION">
<div id="UP-TOP">
<img src="assets/up-arrow.svg" alt="back to top" id="BTTP">
</div>
</a>
</div>
<div>
<img src="assets/Mul.png" alt="switch to dark" id="switchToDark">
</div>
</footer>
<script src="index.js"></script>
</body>
</html>