-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
188 lines (149 loc) · 8.97 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>BarkBond</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,499;1,499&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Caveat:[email protected]&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="../BarkBond/src/main/webapp/pub/css/index.css">
<link rel="stylesheet" href="../BarkBond/src/main/webapp/pub/css/global.css">
</head>
<body>
<header>
<div class="headerContainer">
<a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-white text-decoration-none justify-content-start">
<div class="logoContainer">
<img width="210" class="logo" src="../BarkBond/src/main/webapp/pub/images/logo.png" alt="logo">
</div>
</a>
<div class="mainNavContainer">
<nav class="mainnav">
<ul class="menuItems">
<li><a href="../BarkBond/index.html">Home</a></li>
<li><a href="../BarkBond/about.html">About</a></li>
<li><a href="../BarkBond/adopt.html">Adopt</a></li>
<li><a href="../BarkBond/resources.html">Resources</a></li>
<li><a href="../BarkBond/blog.html">Blog</a></li>
<li><a href="../BarkBond/help.html">Ways to give</a></li>
</ul>
</nav>
</div>
<div class="loginsign-btn-div">
<a href="../BarkBond/account.html?view=signin" class="btn btn-outline-secondary btn-sm login-btn" id="login-header">Login</a>
<a href="../BarkBond/account.html?view=signup" class="btn btn-sm text-white signup-btn" id="signup-header">Sign-up</a>
</div>
</div>
</header>
<div class="page-container">
<div class="index-hero">
<div class="phrase-container">
<div class="box">
<div class="title">
<span class="block"></span>
<h1 id="hero-phrase">Filling homes with happiness, one bond at a time<span></span></h1>
</div>
</div>
</div>
<div class="hero-container">
<div class="index-img-container">
<ul class="index-hero-ul">
<li><div class="image-container"><img class="hero-img-size-1" src="../BarkBond/src/main/webapp/pub/images/hero1.png" alt="featured pet #1"><div class="feature-pet-name">Violet</div></div></li>
<li><div class="image-container"><img class="hero-img-size-2" src="../BarkBond/src/main/webapp/pub/images/hero2.png" alt="featured pet #1"><div class="feature-pet-name">Nala</div></div></li>
<li><div class="image-container"><img class="hero-img-size-2" src="../BarkBond/src/main/webapp/pub/images/hero3.png" alt="featured pet #1"><div class="feature-pet-name">Jem</div></div></li>
<li><div class="image-container"><img class="hero-img-size-2" src="../BarkBond/src/main/webapp/pub/images/hero4.png" alt="featured pet #1"><div class="feature-pet-name">Winky</div></div></li>
<li><div class="image-container"><img class="hero-img-size-3" src="../BarkBond/src/main/webapp/pub/images/hero5.png" alt="featured pet #1"><div class="feature-pet-name">Leo</div></div></li>
<li><div class="image-container"><img class="hero-img-size-4" src="../BarkBond/src/main/webapp/pub/images/hero6.png" alt="featured pet #1"><div class="feature-pet-name">Dani</div></div></li>
<li><div class="image-container"><img class="hero-img-size-5" src="../BarkBond/src/main/webapp/pub/images/hero7.png" alt="featured pet #1"><div class="feature-pet-name">Luka</div></div></li>
<li><div class="image-container"><img class="hero-img-size-6" src="../BarkBond/src/main/webapp/pub/images/hero8.png" alt="featured pet #1"><div class="feature-pet-name">Buddy</div></div></li>
<li><div class="image-container"><img class="hero-img-size-7" src="../BarkBond/src/main/webapp/pub/images/hero9.png" alt="featured pet #1"><div class="feature-pet-name">Luna</div></div></li>
<li><div class="image-container"><img class="hero-img-size-2" src="../BarkBond/src/main/webapp/pub/images/hero4.png" alt="featured pet #1"><div class="feature-pet-name">Winky</div></div></li>
<li><div class="image-container"><img class="hero-img-size-2" src="../BarkBond/src/main/webapp/pub/images/hero4.png" alt="featured pet #1"><div class="feature-pet-name">Winky</div></div></li>
<li><div class="image-container"><img class="hero-img-size-2" src="../BarkBond/src/main/webapp/pub/images/hero4.png" alt="featured pet #1"><div class="feature-pet-name">Winky</div></div></li>
</ul>
</div>
</div>
</div>
</div>
<div class="search-container" style="background-image: url('src/main/webapp/pub/images/index-search-bg.png');">
<div class="img-container">
<img class="dogs-img" src="../BarkBond/src/main/webapp/pub/images/dogs.png" alt="dog cat">
</div>
<div class="col-md-6 search-box">
<div class="img-">
<div class="container">
<div class="row g-12 mt-2 searchbar-contents">
<div class="col-md-12">
<div class="row g-2">
<div class="h-100 p-5 bg-body-tertiary border rounded-3">
<h3>Make a Difference, Adopt a Friend</h3>
<div class="col-md-12 mt-2 location-search">
<input type="text" class="form-control border-0" placeholder="Location">
</div>
<div class="col md-3 mt-2">
<select class="form-select border-0">
<option selected="">Dogs</option>
<option value="1">Cats</option>
<option value="2">Birds</option>
<option value="3">Rabbits</option>
<option value="3">Small & Furry</option>
<option value="3">Horses</option>
<option value="3">Scales Fins & Others</option>
</select>
</div>
<div class="center-button">
<button class="btn mt-2 search-btn" type="button">Search</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function hideDogs() {
const dogsImg = document.querySelector('.dogs-img');
const imgContainer = document.querySelector('.img-container');
const searchBox = document.querySelector('.search-box');
if (dogsImg) {
console.log(`Current screen width: ${window.innerWidth}`);
if (window.innerWidth <= 767) {
dogsImg.style.display = 'none';
imgContainer.style.width = '100%';
searchBox.style.padding = '0';
console.log('Dogs image hidden');
} else {
dogsImg.style.display = ''; // Reset display property if screen width is greater than 405px
}
} else {
console.log('Dogs image not found');
}
if (imgContainer) {
if (window.innerWidth > 767) {
imgContainer.style.display = 'flex';
console.log('Image container display set to flex');
} else {
imgContainer.style.display = ''; // Reset display property if screen width is less than or equal to 750px
}
} else {
console.log('Image container not found');
}
}
// Call the function on page load and resize
window.addEventListener('load', hideDogs);
window.addEventListener('resize', hideDogs);
</script>
</body>
</html>