-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
123 lines (101 loc) · 3.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/src/assets/identity/icon-logo2.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Olivia Green Psychology</title>
<!----------- FONTS ----------->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Belleza&family=Bellota+Text:wght@400;700&family=Playfair+Display:wght@400;500;700&display=swap" rel="stylesheet">
<!----------- /FONTS ----------->
<!----------- BOOTSTRAP 5 ----------->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!---------- /BOOTSTRAP 5 ----------->
<!----------- FONTAWESOME ----------->
<script src="https://kit.fontawesome.com/e0df5df9e9.js" crossorigin="anonymous"></script>
<!---------- /FONTAWESOME ----------->
</head>
<body>
<div class="superior-banner" id="superior-banner">
<div>
<a href="https://virtualblux.com">
<i class="fa-solid fa-chevron-left"></i> Return to Virtual Blux
</a>
</div>
<div>
<i class="fa-solid fa-circle-exclamation"></i>
The person named in this website and its content are entirely fictitious and have been created for demonstration purposes only.
</div>
<div>
<a href="#" onClick="closeBanner()">
I understand <i class="fa-solid fa-xmark"></i>
</a>
</div>
</div>
<button id="btn-top" onclick="scrollToTop()">
<i class="fa-solid fa-chevron-up"></i>
</button>
<div id="app"></div>
<style>
.superior-banner {
width:100%;
background-color: var(--primary);
display:flex;
justify-content: space-around;
align-items:center;
padding:5px;
color:white;
}
.superior-banner a {
color:yellow;
}
#btn-top {
position: fixed;
bottom:20px;
right:20px;
z-index:999;
border:0;
background-color: var(--primary);
padding: 10px 14px 8px;
color:white;
border-radius:50%;
opacity: 0.7;
}
@media (max-width: 1024px){ /* laptop */
.superior-banner {
flex-direction: column;
justify-content: center;
text-align:center;
align-items:center;
gap:10px;
padding:10px;
}
}
</style>
<script type="module" src="/src/main.js"></script>
<script>
function closeBanner() {
var banner = document.getElementById("superior-banner");
banner.classList.add("hidden");
setTimeout(function() {
banner.style.display = "none";
}, 150);
}
var btnTop = document.getElementById("btn-top");
window.onscroll = function() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
btnTop.style.opacity = 0.7;
} else {
btnTop.style.opacity = 0;
}
};
function scrollToTop() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
</body>
</html>