-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
236 lines (179 loc) · 9.93 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href='style.css'>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
<div id="page-wrapper">
<!-- header section -->
<header id="header" >
<div class="logo" >
<img onclick="location.href='index.html';" id="header-img" src="images/KT.png"/>
</div>
<button id="openbtn" class="openbtn"style="font-size:30px;cursor:pointer" onclick="openNav()">☰ </button>
<nav id="nav-bar" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<ul class="overlay-content">
<li><a class="nav-link home" href="index.html">HOME</a></li>
<li><a class="nav-link other" href="snowboard.html">SNOWBOARD</a></li>
<li><a class="nav-link other" href="skate.html">SKATE</a></li>
<li><a class="nav-link other" href="surf.html">SURF</a></li>
</ul>
</nav>
</header>
<section id = "hero">
<h2>Konstantinos Tzirvelakis</h2>
</section>
<section id="upper" class="container">
<div class="slider">
<div class="slides">
<input type="radio" name="radio-btn" id="radio1">
<input type="radio" name="radio-btn" id="radio2">
<input type="radio" name="radio-btn" id="radio3">
<input type="radio" name="radio-btn" id="radio4">
<div class="slide first">
<img id="surf-img" src="images/slideshow/1.jpg" alt="">
</div>
<div class="slide">
<img src="images/slideshow/2.jpg" alt="">
</div>
<div class="slide">
<img src="images/slideshow/3.jpg" alt="">
</div><div class="slide">
<img src="images/slideshow/4.jpg" alt="">
</div>
<!-- automatic navigation -->
<div class="navigation-auto">
<div class="auto-btn1"></div>
<div class="auto-btn2"></div>
<div class="auto-btn3"></div>
<div class="auto-btn4"></div>
</div>
<!-- manual navigation -->
<div class="navigation-manual">
<label for="radio1" class="manual-btn"></label>
<label for="radio2" class="manual-btn"></label>
<label for="radio3" class="manual-btn"></label>
<label for="radio4" class="manual-btn"></label>
</div>
</div>
</div>
</section>
<!-- <div id="downer" class="container">
<div class="image-credit-wrapper">
<span class="image-credit"><p id="inside">Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum
Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem</p>
</span><img id="img-caption" style="width:100%" src="images/self.png">
</div>
</div> -->
<section id="s2">
<div class="photo">
<div class="grid-container">
<div class="grid-item">
</div>
<div class="grid-item" id="text">
Ever since I was a little kid I was passionate about sports, especially snowboarding, skateboarding and surfing. I started snowboarding at fifteen years old and I knew from the first moment that I had made the right decision. As I got better through the years I realized that the adrenaline rush that it gives me lights a fire inside my soul and I know it will be something I do for the rest of my life.
Just like with snowboarding, I felt that surfing and skateboarding were definately for me so I started learning when I was in college. Since all three are board sports they encompass an entire lifestyle. Right now I can’t imagine my life without these sports and everything they offered me. Peace of mind, commitment and self-improvement are the most important.
</div>
<div class="grid-item">
</div>
</div>
</div>
<div class="mobile">
Ever since I was a little kid I was passionate about sports, especially snowboarding, skateboarding and surfing. I started snowboarding at fifteen years old and I knew from the first moment that I had made the right decision. As I got better through the years I realized that the adrenaline rush that it gives me lights a fire inside my soul and I know it will be something I do for the rest of my life.
Just like with snowboarding, I felt that surfing and skateboarding were defenately for me so I started learning when I was in college. Since all three are board sports they encompass an entire lifestyle. Right now I can’t imagine my life without these sports and everything they offered me. Peace of mind, commitment and self-improvement are the most important.
</div>
</section>
<!-- grid container -->
<section id="s3">
<div class="grid-container2">
<div id="grid-buttons">
<div class="grid-button">
<div class="photo-container">
<img class="grid-images" src="images/grid/5.jpg">
<div class="middle">
<div class="image-text"><a href="snowboard.html">View gallery</a></div>
</div>
</div>
<h3 class="grid-text">SNOWBOARD</h3>
</div>
<div class="grid-button">
<div class="photo-container">
<img class="grid-images" src="images/grid/7.jpg">
<div class="middle">
<div class="image-text" ><a href="skate.html">View gallery</a></div>
</div>
</div>
<h3 class="grid-text" >SKATE</h3>
</div>
<div class="grid-button">
<div class="photo-container">
<img class="grid-images" src="images/grid/6.jpg">
<div class="middle">
<div class="image-text"><a href="surf.html">View gallery</a></div>
</div>
</div>
<h3 class="grid-text" >SURF</h3>
</div>
</div>
</div>
<div id="closing">
<img id="footer-img" src="images/footer.jpg">
<button id="scrollToTopBtn" class="scrollToTopBtn"><p id="button-text">Back to top</p></button>
</div>
</section>
</div>
<script type="text/javascript">
var counter=1;
setInterval(function(){
document.getElementById('radio'+counter).checked=true;
counter++;
if(counter>4){
counter=1;
}
},5000);
</script>
<script type="text/javascript">
var rootElement=document.documentElement;
function scrollToTop() {
rootElement.scrollTo({top:0,behavior:"smooth"})
}
var scrollToTopBtn = document.getElementById("scrollToTopBtn");
scrollToTopBtn.addEventListener("click", scrollToTop);
function handleScroll() {
if (window.innerWidth>650){
var scrollTotal = rootElement.scrollHeight - rootElement.clientHeight;
if ((rootElement.scrollTop/scrollTotal)>0.80) {
scrollToTopBtn.classList.add("showBtn")
} else {
scrollToTopBtn.classList.remove("showBtn")
}}
}
document.addEventListener("scroll",handleScroll)
</script>
<script>
function openNav() {
document.getElementById("nav-bar").style.width = "100%";
document.getElementById('openbtn').style.display="none"
}
function closeNav() {
document.getElementById("nav-bar").style.width = "0%";
if (window.innerWidth<650){
setTimeout(function(){document.getElementById("openbtn").style.display="block"},500)}
}
function handleResize() {
if (window.innerWidth>650) {
document.getElementById('openbtn').style.display="none"
closeNav()
}else {
document.getElementById('openbtn').style.display="block"
}
}
window.addEventListener("resize",handleResize)
</script>
</body>
</html>