-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (138 loc) · 5.18 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>HackSpace</title>
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/base.css">
<link href="https://fonts.googleapis.com/css?family=Blinker&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
</head>
<style media="screen">
@media (max-width: 1200px) {
.home-image {
transform: scale(1.4);
}
.home-header {
font-size: 100px;
}
.header-sub-title {
margin-top: 100px;
font-size: 60px;
}
.x {
font-size: 45px;
}
.sidebar {
width: 40vw;
}
.links-list li {
font-size: 40px;
}
.sidebar-button {
height: 125px;
width: 125px;
font-size: 75px;
}
.sidebar-item {
padding: 17.5px 20px;
}
}
</style>
<body class="home-body">
<div id="sidebar" class="sidebar">
<ul style="margin-bottom: none;" class="links-list">
<li style="color: lightgrey; font-size: 20px; background-color: rgb(60,60,60);" class="sidebar-item sidebar-header"><a class="x" href="#">☰</a><a class="x hackspace" href="#">HackSpace</a></li>
<li class="sidebar-item">
<div class="slider" onclick="window.location.href = 'index.html';"></div>
<a href="index.html" class="sidebar-link">Home</a>
</li>
<li class="sidebar-item">
<div class="slider" onclick="window.location.href = 'our-mission.html';"></div>
<a href="our-mission.html" class="sidebar-link">Our Mission</a>
</li>
<li class="sidebar-item">
<div class="slider" onclick="window.location.href = 'join.html';"></div>
<a href="join.html" class="sidebar-link">Why Join?</a>
</li>
<li class="sidebar-item">
<div class="slider" onclick="window.location.href = 'about-us.html';"></div>
<a href="about-us.html" class="sidebar-link">About Us</a>
</li>
<li class="sidebar-item">
<div class="slider" onclick="window.location.href = 'contact-us.html';"></div>
<a href="contact-us.html" class="sidebar-link">Contact Us</a>
</li>
<li class="sidebar-item">
<div class="slider" onclick="window.location.href = 'requirements.html';"></div>
<a href="requirements.html" class="sidebar-link">Requirements</a>
</li>
<li class="sidebar-item">
<div class="slider" onclick="window.location.href = 'projects.html';"></div>
<a href="projects.html" class="sidebar-link">Our Projects</a>
</li>
<li class="sidebar-item">
<div class="slider" onclick="window.location.href = 'faq.html';"></div>
<a href="faq.html" class="sidebar-link">FAQ</a>
</li>
</ul>
</div>
<div class="overlay"></div>
<a class="sidebar-button" href="#sidebar"><span style="top: 47%;" class="center">☰</span></a>
<div class="typing-container">
<h1 class="home-header">HackSpace</h1>
<img class="home-image" src="https://images.unsplash.com/photo-1468436139062-f60a71c5c892?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60" alt="">
<div class="flex">
<p class="header-sub-title" id="word"></p><p class="blink">|</p>
</div>
</div>
<!-- a -->
<script>
const words = ["Innovate", "Collaborate", "Communicate", "Develop", "Inspire"];
let i = 0;
let timer;
function typingEffect() {
let word = words[i].split("");
var loopTyping = function() {
if (word.length > 0) {
document.getElementById('word').innerHTML += word.shift();
} else {
sleep(500)
deletingEffect();
return false;
};
timer = setTimeout(loopTyping, 300);
};
loopTyping();
};
function deletingEffect() {
let word = words[i].split("");
var loopDeleting = function() {
if (word.length > 0) {
word.pop();
document.getElementById('word').innerHTML = word.join("");
} else {
if (words.length > (i + 1)) {
i++;
} else {
i = 0;
};
sleep(250)
typingEffect();
return false;
};
timer = setTimeout(loopDeleting, 100);
};
loopDeleting();
};
function sleep(miliseconds) {
var currentTime = new Date().getTime();
while (currentTime + miliseconds >= new Date().getTime()) {
}
}
typingEffect();
</script>
</body>
</html>