forked from Anjaliavv51/Retro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Coverpage.html
156 lines (145 loc) · 4.43 KB
/
Coverpage.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
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animated Title and Explore Button</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
height: 100%;
font-family: 'Arial', sans-serif;
}
.container {
background-image: url('RETRO.png');
background-size: cover;
background-position: center;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
position: relative; /* Ensure container can position children absolutely */
}
.explore-btn {
margin-left: 35%;
margin-top: 20px;
padding: 15px 30px;
font-size: 1.6rem;
color: rgb(115, 45, 45);
background-color: #ff6347;
border: none;
border-radius: 15px;
cursor: pointer;
transition: all 0.3s ease-in-out;
animation: pulse 1.5s infinite;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.explore-btn:hover {
background-color: #ff4500;
transform: scale(1.1);
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
/* SVG Styles */
svg {
margin-left: 35%;
font-family: Algerian;
width: 100%;
height: auto; /* Maintain aspect ratio */
max-width: 600px; /* Limit size */
}
svg text {
animation: stroke 5s infinite alternate;
stroke-width: 2;
stroke: #582f0e;
font-size: 100px;
}
@keyframes stroke {
0% {
fill: rgba(72,138,204,0);
stroke: #582f0e;
stroke-dashoffset: 25%;
stroke-dasharray: 0 50%;
stroke-width: 2;
}
70% {
fill: rgba(72,138,204,0);
stroke: rgb(253, 137, 137);
}
80% {
fill: rgba(72,138,204,0);
stroke: #582f0e;
stroke-width: 3;
}
100% {
fill: #582f0e;
stroke: rgb(0, 0, 0);
stroke-dashoffset: -25%;
stroke-dasharray: 50% 0;
stroke-width: 0;
}
}
@media screen and (max-width: 1095.54px) {
svg text {
font-size: 100px; /* Adjust font size for smaller screens */
}
}
.small-text {
font-size: 1.5rem; /* Smaller font size for "Welcome to" */
color: rgb(136, 9, 9);
text-transform: uppercase;
text-decoration-thickness: 50px;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
display: block;
margin-top: 70px;
margin-left: 35%;
}
</style>
</head>
<body>
<div class="container">
<span class="small-text">Welcome to</span><br>
<!-- Animated SVG Title -->
<svg viewBox="0 0 800 200">
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">
Retro World
</text>
</svg>
<button class="explore-btn" onclick="explore()">Explore</button>
</div>
<script>
function explore() {
alert("Let's explore the Retro World!");
// Redirect to index.html
window.location.href = "index.html";
}
</script>
<script>
window.embeddedChatbotConfig = {
chatbotId: "dGlQ5bP-F7GodLWzgrVAx",
domain: "www.chatbase.co"
}
</script>
<script
src="https://www.chatbase.co/embed.min.js"
chatbotId="dGlQ5bP-F7GodLWzgrVAx"
domain="www.chatbase.co"
defer>
</script>
</body>
</html>