-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
177 lines (159 loc) · 8.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="js/scriptIndex.js"></script>
<link rel="icon" href="images/dog_icon.png" type="image/x-icon">
<!-- font roboto -->
<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=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet">
<!-- bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<!-- Font Awesome for icons-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="css/styles.css" type="text/css">
<title>Happy tails adopt</title>
</head>
<body>
<!-- navigation bar -->
<nav class="navbar navbar-expand-md shadow-sm">
<div class="container-md">
<img id="dog-icon" src="images/dog_icon.png" alt="dog_icon">
<a class="navbar-brand" href="#">Happy tails adopt</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav w-75 justify-content-around">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="favouritelDogs.html">Favourite dogs</a>
</li>
<li class="nav-item">
<a class="nav-link" href="adoptionForm.html">Adoption forms</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="text-section container">
<h2 class="title">Find your new best friend</h2>
<p class="centered-text">Discover a wide variety of lovable dogs waiting for a forever home.
Browse pets from our site and find your perfect companion today.
</p>
<h4 class="title">Dogs Available for Adoption <i class="fa-solid fa-angle-right"></i></h4>
</div>
<div class="container">
<!-- g-5 spacing between elements -->
<div class="row g-5" id="dog-list">
</div>
</div>
<footer>©2024 Adam Dawidziuk</footer>
<!-- Modal -->
<div class="modal fade" id="adoptionModal" tabindex="-1" aria-labelledby="adoptionModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="adoptionModalLabel">Adoption Form</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="adoptionForm">
<!-- Full Name field with pattern for letters only and required name, surname -->
<div class="mb-3"> <!-- margin bottom 3 -->
<label for="adopterName" class="form-label">Full Name</label>
<input type="text" class="form-control" id="adopterName" pattern="^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ]+( [a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ]+)+$" title="Please enter at name and surname" required>
</div>
<!-- Email field with type email -->
<div class="mb-3">
<label for="adopterEmail" class="form-label">Email</label>
<input type="email" class="form-control" id="adopterEmail" title="Please enter a valid email address (e.g., [email protected])." required>
</div>
<!-- Disabled Dog Name field -->
<div class="mb-3">
<label for="dogName" class="form-label">Dog Name</label>
<input type="text" class="form-control" id="dogName" disabled required>
</div>
<!-- Reason for Adoption textarea -->
<div class="mb-3">
<label for="adoptionReason" class="form-label">Why do you want to adopt this dog?</label>
<textarea class="form-control" id="adoptionReason" rows="3" title="Please provide a reason for adoption." required></textarea>
</div>
<!-- Radio buttons for other pets -->
<div class="mb-3">
<label for="petsYes" class="form-label">Do you have other pets?</label><br>
<input type="radio" id="petsYes" name="otherPets" value="Yes" title="Please select whether you have other pets." required>
<label for="petsYes">Yes</label><br>
<input type="radio" id="petsNo" name="otherPets" value="No">
<label for="petsNo">No</label>
</div>
<!-- Select for type of home -->
<div class="mb-3">
<label for="homeType" class="form-label">Type of Home</label>
<select class="form-select" id="homeType" title="Please select a type of home." required>
<option value="">Select...</option>
<option value="Apartment">Apartment</option>
<option value="House">House</option>
<option value="Other">Other</option>
</select>
</div>
<!-- Checkboxes for adoption aspects -->
<div class="mb-3">
<label for="aspect1" class="form-label">Please check all that apply:</label><br>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="aspect1" value="HasYard">
<label class="form-check-label" for="aspect1">I have a yard</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="aspect2" value="HasChildren">
<label class="form-check-label" for="aspect2">I have children</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="aspect3" value="HasExperience">
<label class="form-check-label" for="aspect3">I have experience with pets</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="aspect4" value="Renting">
<label class="form-check-label" for="aspect4">I am renting my home</label>
</div>
</div>
<!-- Checkbox for terms and conditions -->
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="agreeTerms" title="You must agree to the terms and conditions." required>
<label class="form-check-label" for="agreeTerms">I agree to the terms and conditions</label>
</div>
<button id="sub" type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</div>
<!-- Toast -->
<div class="position-fixed bottom-0 start-50 translate-middle-x p-3" style="z-index: 11">
<div id="favoriteToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<img src="images/dog_icon.png" class="rounded me-2" alt="dog_icon" style="width: 20px; height: 20px;">
<strong class="me-auto">Favorite Dog</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
Dog added to your favorites!
</div>
</div>
</div>
<!-- bootstrap -->
<!-- prevent loading bootstrap javascript from blocking page loading -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"></script>
</body>
</html>