-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.css
118 lines (108 loc) · 2.4 KB
/
home.css
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
/* Basic Css needed for all the pages */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bad+Script&family=Borel&family=Bungee&family=Bungee+Spice&family=Nabla&family=Playfair+Display+SC&family=Press+Start+2P&family=Reenie+Beanie&family=Rock+Salt&family=Rubik+80s+Fade&display=swap");
/* The fonts selected on the 2nd line are in order by,(Press Start 2P, Bungee,
Playfair Display SC, Bad Script, Rock Salt Reenie Beanie, Borel, Rubik 80s fade, Nabla, Bungee Spice) */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Reenie Beanie";
display: grid;
place-items: center;
background-color: rgba(243,230,251,255);
}
button {
border: 0;
outline: none;
background: none;
}
.menu-btn {
position: fixed;
top: 20px;
left: 20px;
width: 40px;
height: 40px;
background-image: url("./src/menu.png");
background-size: cover;
cursor: pointer;
z-index: 3;
}
body.open .menu-btn {
background-image: url("./src/close.png");
}
.menu {
position: fixed;
inset: 0;
display: grid;
place-items: center;
z-index: 2;
}
.menu nav {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 24px;
visibility: hidden;
}
body.open .menu nav {
visibility: visible;
}
.menu nav a {
text-decoration: none;
font-size: 55px;
font-weight: 900;
color: rgb(255, 255, 255);
padding: 10px 20px;
text-align: center;
opacity: 1;
transition: 0.25s;
font-style: italic;
text-decoration: underline;
}
body.open .menu a {
animation: show 0.3s backwards;
}
.menu nav:hover a:not(:hover) {
opacity: 0.5;
}
@keyframes show {
0% {
opacity: 0;
translate: 0 -30px;
}
100% {
opacity: 1;
translate: 0 0;
}
}
.backdrop {
position: fixed;
top: 20px;
left: 20px;
height: 100vh;
aspect-ratio: 1/1;
translate: -50% -50%;
scale: 0;
opacity: 0;
background-color: rgba(0, 0, 0, 0.824);
border-radius: 50%;
z-index: 1;
transition: all 0.6s;
}
body.open .backdrop {
opacity: 1;
scale: 5;
}
/* The end of the Nav bar for all the Html/Css Pages*/
.home {
background-image: url("./src/cover.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: contain;
background-position-x: center;
}