-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
186 lines (154 loc) · 4.17 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>
<body>
<div class="min-h-screen flex justify-center items-center bg-sea1 bg-fixed bg-no-repeat bg-cover bg-center">
</div>
<style>
.footer-btn {
transition: background-color 0.3s, transform 0.3s;
}
.footer-btn:hover {
transform: translateY(-2px);
}
body, html {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
.section {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 3em;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
border-radius: 20px;
margin: 20px;
padding: 20px;
opacity: 0.8;
}
.parallax {
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.bg1 {
background: linear-gradient(to right, #908785, #feb47b);
}
.bg2 {
background: linear-gradient(to right, #6a11cb, #2575fc);
}
.bg3 {
background: linear-gradient(to right, #ff512f, #dd2476);
}
.content {
padding: 50px;
text-align: center;
}
/* Dark mode styles */
.dark-mode {
background-color: #121212;
color: #e0e0e0;
}
.dark-mode .section {
background-color: #1e1e1e;
border: 1px solid #333;
}
.dark-mode .content {
color: #e0e0e0;
}
/* Botón de modo oscuro */
.dark-mode-button {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background: rgba(0, 0, 0, 0.5);
color: white;
border: none;
border-radius: 15px;
transition: background 0.3s, transform 0.3s;
}
.dark-mode-button:hover {
background: rgba(0, 0, 0, 0.8);
transform: scale(1.1);
}
/* Estilos del formulario */
.contact-form {
display: flex;
flex-direction: column;
align-items: center;
background: rgba(0, 0, 0, 0.5);
padding: 20px;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.contact-form input,
.contact-form button {
width: 100%;
padding: 10px;
margin: 10px 0;
border: none;
border-radius: 5px;
font-size: 16px;
}
.contact-form input {
background: #fff;
color: #000;
}
.contact-form button {
background: #6a11cb;
color: #fff;
cursor: pointer;
transition: background 0.3s;
}
.contact-form button:hover {
background: #2575fc;
}
</style>
<div class="section parallax bg1">
Gabriel Cerdio
</div>
<div class="content">
<h2>Sample Section</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisi inventore!</p>
</div>
<div class="section parallax bg2">
Get in touch
</div>
<div class="content">
<h2>Another Sample Section</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicinge!</p>
</div>
<div class="section parallax bg3">
<form class="contact-form">
<h2>Contact Us</h2>
<input type="email" placeholder="Your Email" required />
<button type="submit">Send</button>
</form>
</div>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<!-- Dark mode toggle script -->
<script>
const darkModeButton = document.createElement('button');
darkModeButton.innerText = 'Toggle Dark Mode';
darkModeButton.classList.add('dark-mode-button');
document.body.appendChild(darkModeButton);
darkModeButton.addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
});
</script>
</body>
</html>