-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle_qr.css
160 lines (142 loc) · 3.72 KB
/
style_qr.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
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
/* Reseteo básico de márgenes y padding */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Fondo animado para la página */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #74b9ff, #81ecec, #a29bfe);
background-size: 300% 300%;
animation: backgroundAnimation 12s ease infinite;
color: #2d3436;
}
/* Animación del fondo */
@keyframes backgroundAnimation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* Contenido principal */
h1, h2 {
text-align: center;
margin-bottom: 20px;
}
p {
text-align: center;
font-size: 18px;
max-width: 800px;
line-height: 1.6;
}
/* Estilo para el encabezado principal */
h1 {
font-size: 36px;
color: #1c2732;
margin-bottom: 10px;
}
/* Estilo para el subtítulo */
h2 {
font-size: 24px;
color: #191e1e;
margin-bottom: 20px;
}
/* Estilo de la imagen del código QR */
img {
width: 300px;
height: 300px;
border: 5px solid #2c3e50;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Sombra y bordes para el contenedor */
.container {
max-width: 800px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Botón grande y estilizado */
.button-home {
display: inline-block;
background: linear-gradient(135deg, #3498db, #2c3e50);
color: white;
font-size: 24px;
font-weight: bold;
text-align: center;
text-decoration: none;
padding: 15px 40px;
border-radius: 12px;
border: none;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
cursor: pointer;
transition: all 0.4s ease-in-out; /* Transición suave */
background-size: 200%; /* Para permitir el desplazamiento del gradiente */
}
/* Efecto hover */
.button-home:hover {
background-position: right center; /* Mueve el gradiente */
transform: translateY(-5px) scale(1.05); /* Eleva y amplía ligeramente el botón */
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
}
/* Efecto de clic */
.button-home:active {
transform: translateY(2px) scale(0.98); /* Simula el clic al presionar */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
.button-home {
font-size: 20px;
padding: 12px 30px;
}
}/* Botón descargas */
.button-download {
display: inline-block;
background: linear-gradient(135deg, #3498db, #2c3e50);
color: white;
font-size: 24px;
font-weight: bold;
text-align: center;
text-decoration: none;
padding: 15px 40px;
border-radius: 12px;
border: none;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
cursor: pointer;
transition: all 0.4s ease-in-out; /* Transición suave */
background-size: 200%; /* Para permitir el desplazamiento del gradiente */
}
/* Efecto hover */
.button-download:hover {
background-position: right center; /* Mueve el gradiente */
transform: translateY(-5px) scale(1.05); /* Eleva y amplía ligeramente el botón */
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
}
/* Efecto de clic */
.button-download:active {
transform: translateY(2px) scale(0.98); /* Simula el clic al presionar */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
.button-download {
font-size: 20px;
padding: 12px 30px;
}
}