-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
144 lines (139 loc) · 4.22 KB
/
contact.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- blablabla -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<link rel="stylesheet" href="style.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
:root{
--background: #0f182200;
--background-dark: #00000000;
--color: #0077ff;
--color-light: #3a96ff;
--black:#ffffff;
--white:#000000;
}
.logo, .logo * {
text-decoration: none;
color: var(--color);
cursor:pointer;
user-select: none;
font-family: 'Work Sans','sans-serif';
font-weight: 400;
}
body > img{
display: flex;
width: 95vw;
padding-top: 100px;
max-height: 80vh;
max-width: 80vh;
}
header{
background: var(--background);
text-align: center;
position: fixed;
width: 100%;
z-index: 999;
}
.nav-toggle{
display: none;
}
nav{
position:absolute;
text-align: left;
top: 100%;
left:0;
background-color: var(--background);
width: 100%;
transform: scale(1,0);
transform-origin: top;
transition: transform 400ms ease-in-out;
}
nav ul{
margin: 0;
padding: 0;
list-style: none;
}
nav li{
margin-bottom: 1em;
margin-left: 1em;
font-family: 'Work Sans','sans-serif';
font-weight: 400;
}
nav a{
color: var(--white);
text-decoration: none;
font-size: 1.2rem;
text-transform: uppercase;
opacity: 0;
transition: opacity 150ms ease-in-out;
}
nav a:hover{
color:var(--color);
}
.nav-toggle:checked ~ nav{
transform: scale(1,1);
}
.nav-toggle:checked ~ nav a{
opacity: 1;
transition: opacity 250ms ease-in-out 250ms;
}
.nav-toggle-label{
position: absolute;
top: 0;
left: 0;
margin-left: 1em;
height: 100%;
display: flex;
align-items: center;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after{
display: block;
background: var(--white);
height: 4px;
width: 2em;
border-radius: 999px;
background-color: var(--color);
position: relative;
margin-top: 3px;
margin-bottom: 3px;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after{
content: '';
position: absolute;
}
.nav-toggle-label span::before{
bottom:7px
}
.nav-toggle-label span::after{
top:7px
}
</style>
</head>
<body>
<header>
<h1 class="logo"><a href ="index.html">Logo</a></h1>
<input type="checkbox" name="nav-toggle" id="nav-toggle" class="nav-toggle">
<nav>
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<label for="nav-toggle" class="nav-toggle-label">
<span></span>
</label>
</header>
<img src="https://media1.tenor.com/images/ea96c313bbb74cc69abc861e21ee3098/tenor.gif?itemid=5350844" alt="">
</body>
</html>