-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
208 lines (193 loc) · 7.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<link
href="https://fonts.googleapis.com/css2?family=Piazzolla:ital,opsz,wght@0,8..30,100..900;1,8..30,100..900&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="style.css">
<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=Averia+Serif+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap"
rel="stylesheet">
</head>
<body>
<header>
<img src="https://www.fordfoundation.org/wp-content/uploads/2023/05/Ford-Foundation.svg">
<nav>
<ul>
<a href="#">Projects</a>
<a href="#">Minutes</a>
<a href="#">Leadership</a>
<a href="#">Feedback</a>
</ul>
</nav>
</header>
<main>
<section aria-label="Who we are">
<div>
<h2>
Connecting Students to Solutions Schoolwide
</h2>
<p>
The HVJ Student Council — more affectionately known as the Warrior Council — is a club and organization
serving the student body and community of Jenkins High School.
With monthly meetings, we're comprised of students across all four grades with diverse and unique
perspectives.
Our student leaders help plan school-wide events and provide students with leadership skills found nowhere
else.
Our Council is constantly committed to building a strong sense of community among our student body, so that
everyone feels welcomed and included.
</p>
<button>More about us</button>
<hr>
</div>
<picture>
<source
srcset="https://imagescdn.homes.com/i2/x4NtWiQSZ99n7ZB3TDxEju6hK2gMImSoJpiYSdX-lRw/116/savannah-arts-academy-savannah-ga-3.jpg?p=1"
media="(max-width: 1350px)" />
<img
src="https://imagescdn.homes.com/i2/OGUzdve15_UG-U2avoKN1CGMLIfqt7oE2epYk56WpHM/111/savannah-arts-academy-savannah-ga-7.jpg?p=1">
</picture>
</section>
<section aria-label="Responsibilities">
<h2>Our Responsibilities:</h2>
<ul>
<div>
<figure>
<img src="https://i.imgur.com/wewD15D.png">
<figcaption>Planning events</figcaption>
</figure>
<p>
We create unforgettable experiences that enrich student life and foster community, from spirited pep rallies
to elegant dances. Our process starts with creativity and collaboration, seeking input to ensure events
reflect our diverse community. We meticulously plan every detail, from securing venues to coordinating
volunteers, aiming to entertain, inspire, and unite. We're constantly improving, learning from each
experience to exceed expectations. Join us in shaping our school's social calendar, making every event a
celebration of our unity and spirit.
</p>
</div>
<div id="middle">
<figure>
<img src="https://i.imgur.com/wewD15D.png">
<figcaption>Sharing information</figcaption>
</figure>
<p>
We are the source for news, updates, and important information that keeps our school community informed and
engaged. Through our newsletter and newspaper, we deliver stories that reflect the diverse interests and
achievements of our students. We aim to be a platform for student voices, sharing your ideas, opinions, and
accomplishments with the entire school. Our team works tirelessly to gather, write, and publish content that
informs, inspires, and entertains. Join us in shaping the narrative of our school community, ensuring that
every student has a voice and every story is told.
</p>
</div>
<div>
<figure>
<img src="https://i.imgur.com/wewD15D.png">
<figcaption>Bettering school</figcaption>
</figure>
<p>
We are dedicated to enhancing every aspect of our school community, from academics to extracurriculars. Our
goal is to create a positive and inclusive environment where every student can thrive. We collaborate with
students, teachers, and administrators to identify areas for improvement and develop innovative solutions.
Whether it's upgrading facilities, implementing new programs, or fostering a culture of inclusivity, we are
committed to making our school the best it can be. Join us in shaping the future of our school, where every
voice is heard, and every idea matters. Together, let's create a school we can all be proud of.
</p>
</div>
</ul>
</section>
<footer>
<h2>
Contact Us:
</h2>
<div>
<a class="instagram">
Instagram
</a>
<a class="email">
Email
</a>
</div>
</footer>
</main>
</body>
<script>
function cutTextFromPeriod(paragraph) {
let text = paragraph.textContent;
let index = text.indexOf('.');
if (index !== -1) {
let newText = text.slice(0, index + 1);
paragraph.textContent = newText;
}
}
function checkWidthAndCutText() {
if (window.innerWidth < 1350) {
let paragraphs = document.querySelectorAll('section[aria-label="Responsibilities"] div p');
paragraphs.forEach(paragraph => {
cutTextFromPeriod(paragraph);
});
}
}
checkWidthAndCutText();
window.addEventListener('resize', checkWidthAndCutText);
</script>
<script>
const img = document.querySelector('section[aria-label="Who we are"] picture');
const div = document.querySelector('section[aria-label="Who we are"] div');
function checkWidth() {
const screenWidth = window.innerWidth;
if (screenWidth < 750) {
img.remove();
div.classList.add('mobile');
}
}
checkWidth();
window.addEventListener('resize', checkWidth);
</script>
</script>
<script>
const header = document.querySelector('header');
function checkWidth() {
const screenWidth = window.innerWidth;
const ul = document.querySelector('header ul');
if (screenWidth < 750) {
var toggle = document.createElement('input');
toggle.setAttribute('id', 'toggle');
toggle.setAttribute('type', 'checkbox');
header.appendChild(toggle);
header.appendChild(createHamburgerMenu());
} else {
const toggle = document.getElementById('toggle');
if (toggle) {
toggle.remove();
}
}
}
function createHamburgerMenu() {
var label = document.createElement('label');
label.setAttribute('for', 'toggle');
label.classList.add('hamburger');
for (var i = 1; i <= 3; i++) {
var bar = document.createElement('div');
bar.classList.add('bar' + i);
label.appendChild(bar);
}
toggle.addEventListener('change', function () {
const nav = document.querySelector('nav');
if (this.checked) {
nav.style.top = '0';
nav.style.transform = 'scale(1)';
} else {
nav.style.top = '-100%';
nav.style.transform = 'scale(0)';
}
});
return label;
}
checkWidth();
</script>
</html>