-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
122 lines (122 loc) · 4.74 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
<!DOCTYPE html>
<html>
<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">
<title> Ayush Gupta</title>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="ayushgupta.js"></script>
<link rel="stylesheet" href="ayushgupta.css">
<style>
#livebtn{
background-color: #000506;
border-radius: 2rem;
border: none;
color: #fafafa;
font-size: 15px;
font-weight: bold;
display: inline-block;
padding: 1rem 2.5rem;
transition: background-color 250ms;
outline: 0;
}
#livebtn:hover{
background-color: rgb(82, 131, 255);
}
</style>
</head>
<body>
<!-- fixed navigation for easy access -->
<nav>
<div class="logo">
<a href="ayushgupta.html"><h3 class="logo">Ayush Gupta</h3></a>
</div>
<ul class="nav-links">
<li><a href="ayushgupta.html#bio">About Me</a></li>
<li><a href="ayushgupta_family.html">Family</a></li>
<li><a href="ayushgupta_hobbies.html">Hobbies</a></li>
</ul>
<div class="burger">
<div class="line1"></div>
<div class="line2"></div>
<div class="line3"></div>
</div>
</nav>
<!-- activates mobile navigation menu toggle -->
<script>
const navSlide = () => {
const burger = document.querySelector(".burger");
const nav = document.querySelector(".nav-links");
const navLinks = document.querySelectorAll('.nav-links li');
//Toggle Nav
burger.addEventListener('click', () => {
nav.classList.toggle('nav-active');
//Animate links
navLinks.forEach((link, index)=>{
if(link.style.animation){
link.style.animation = ''
} else {
link.style.animation = `navLinkFade 0.5s ease forwards ${index / 7 + 0.3}s`;
}
});
//Burger animation
burger.classList.toggle('toggle');
});
}
navSlide()
</script>
<!-- landing text -->
<div id="home">
<div class="landing-text">
<h1>Ayush Gupta</h1>
<h3>APCSP P4</h3>
</div>
</div>
<!-- biography -->
<div class="bio" id="bio">
<img class="zoom" src="http://ayushgupta.art/ayush.jpg">
<h3>About Me</h3>
<!-- moving carousel -->
<div class="carousel">
<ul>
<li>
<text class="title">Name:</text><h3 class="info" id="bioname"> </h3>
</li>
<hr>
<li>
<text class="title">Age:</text><h3 class="info" id="bioage"> </h3>
</li>
<hr>
<li>
<text class="title">Grade:</text><h3 class="info" id="biograde"> </h3>
</li>
<hr>
<li>
<text class="title">Height:</text><h3 class="info" id="bioheight"> </h3>
</li>
<hr>
<li>
<text class="title">School:</text><h3 class="info" id="bioschool"> </h3>
</li>
</ul>
</div>
</div>
<!-- section for where I live -->
<div class="house"><br><br>
<button id="housebtn" class="btn">Click To See Where I Live</button><br><br>
<img id="houseimg" class="zoom" src="">
<h3 class="livetitle" id="earth">The Earth</h3>
</div>
<!-- section for where I want to live -->
<div class="live"><br><br>
<button id="livebtn">Click To See Where I Want To Live</button><br><br>
<img id="liveimg" class="zoom" src="">
<h3 class="livetitle" id="moon">The Moon</h3>
</div>
<!-- footer -->
<footer>
<h3>AYUSH GUPTA</h3>
<p>APCSP</p><p>Period: 4</p>
</footer>
</body>
</html>