pagetop/static/css/welcome.css
Manuel Cillero 3a3e3b810f Añade página de bienvenida y de comprobación
- Añade nueva hoja de estilos (normalize.css) al tema básico.
- Activa la extensión de la página de bienvenida por defecto en el
   registro de extensiones.
- Añade traducciones en inglés y español para el contenido de la página
  de bienvenida.
- Incluye estilos CSS y recursos gráficos para el diseño y disposición
  de la página de bienvenida.
2025-08-02 11:20:39 +02:00

460 lines
9.1 KiB
CSS

:root {
--bg-img: url('/img/welcome-header.jpg');
--bg-img-set: image-set(url('/img/welcome-header.avif') type('image/avif'), url('/img/welcome-header.webp') type('image/webp'), var(--bg-img) type('image/jpeg'));
--bg-img-sm: url('/img/welcome-header-sm.jpg');
--bg-img-sm-set: image-set(url('/img/welcome-header-sm.avif') type('image/avif'), url('/img/welcome-header-sm.webp') type('image/webp'), var(--bg-img-sm) type('image/jpeg'));
--bg-color: #8c5919;
--color: #1a202c;
--color-red: #fecaca;
--color-gray: #e4e4e7;
--color-link: #1e4eae;
--focus-outline: 2px solid var(--color-link);
--focus-outline-offset: 2px;
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
html {
min-height: 100%;
background-color: black;
}
body {
margin: auto;
position: relative;
min-height: 100%;
min-width: 350px;
background-color: var(--bg-color);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 1.125rem;
font-weight: 300;
color: var(--color);
line-height: 1.6;
}
header,
section {
position: relative;
text-align: center;
}
a {
color: currentColor;
text-decoration: underline;
transition: font-size 0.2s, text-decoration-color 0.2s;
}
a:focus-visible {
outline: var(--focus-outline);
outline-offset: var(--focus-outline-offset);
}
a:hover,
a:hover:visited {
text-decoration-color: var(--color-link);
}
#content {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#main-header {
display: flex;
flex-direction: column-reverse;
padding-bottom: 9rem;
max-width: 80rem;
width: 100%;
background-image: var(--bg-img-sm);
background-image: var(--bg-img-sm-set);
background-position: top center;
background-position-y: -1rem;
background-size: contain;
background-repeat: no-repeat;
}
#main-header header {
padding: 0;
background: none;
}
#header-title {
margin: 0 0 0 1.5rem;
text-align: left;
display: flex;
flex-direction: column;
box-sizing: border-box;
color: #dceefb;
padding: clamp(0rem, -5.4892rem + 23.4206vw, 9.5rem) 1rem 1rem;
font-size: clamp(1.5rem, 0.7231rem + 3.3149vw, 3.375rem);
font-style: italic;
font-weight: 600;
line-height: 110%;
text-shadow: 0 0.125rem 0.1875rem rgba(0, 0, 0, 0.3);
}
#header-title > span {
background: linear-gradient(180deg, #ddff95 30%, #ffb84b 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: clamp(2.25rem, 1.3177rem + 3.9779vw, 6.5rem);
font-style: normal;
font-weight: 700;
line-height: 110%;
text-shadow: none;
}
#header-image {
width: 100%;
text-align: right;
display: flex;
justify-content: flex-start;
}
#header-image #monster {
margin-right: 12rem;
margin-top: 1rem;
flex-shrink: 1;
}
@media (min-width: 64rem) {
#main-header {
background-image: var(--bg-img);
background-image: var(--bg-img-set);
}
#header-title {
padding: 1.2rem 2rem 2.6rem 2rem;
}
#header-image {
justify-content: flex-end;
}
}
#main-content {
height: auto;
margin-top: 1.6rem;
}
.content-body {
box-sizing: border-box;
max-width: 80rem;
}
.content-body:before,
.content-body:after {
content: '';
position: absolute;
left: 0;
right: 0;
background: linear-gradient(130deg, rgba(13, 44, 91, 0) 0%, #ddff95 77.4%);
margin: 0 -10.375rem;
filter: blur(2.75rem);
opacity: 0.8;
inset: 11.75rem;
z-index: 0;
}
.content-body:before {
top: -1rem;
}
.content-body:after {
bottom: -1rem;
}
@media (max-width: 48rem) {
.content-body {
margin-top: -9.8rem;
}
.content-body:before,
.content-body:after {
inset: unset;
}
}
@media (min-width: 64rem) {
#main-content {
margin-top: 0;
}
.content-body {
margin-top: -5.7rem;
}
}
#poweredby-button {
width: 100%;
margin: 0 auto 3rem;
z-index: 10;
}
#poweredby-link {
background: #7f1d1d;
background-image: linear-gradient(to bottom, rgba(255,0,0,0.8), rgba(255,255,255,0));
background-position: top left, center;
background-size: contain;
background-repeat: no-repeat;
border-radius: 0.75rem;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
font-size: 1.5rem;
line-height: 1.3;
text-decoration: none;
text-shadow: var(--shadow);
transition: transform 0.3s ease-in-out;
position: relative;
overflow: hidden;
min-width: 28.875rem;
min-height: 7.6875rem;
outline: none;
}
#poweredby-link::before {
content: '';
position: absolute;
top: -13.125rem;
left: -10rem;
height: 26.25rem;
width: 26.25rem;
background: linear-gradient(135deg, #ec7bae 50.41%, #9600b8 70.41%);
transform: rotate(45deg);
transition: transform 0.3s ease-in-out;
z-index: 5;
}
#poweredby-text {
display: flex;
flex-direction: column;
flex: 1;
transition: all 0.5s ease-in-out;
position: relative;
z-index: 10;
padding: 1rem 1.5rem;
text-align: left;
color: white;
text-shadow: 0 0.101125rem 0.2021875rem rgba(0, 0, 0, 0.25);
font-size: 1.65rem;
font-style: normal;
font-weight: 600;
line-height: 130.023%;
letter-spacing: 0.0075rem;
}
#poweredby-text strong {
font-size: 2.625rem;
font-weight: 600;
line-height: 130.023%;
letter-spacing: 0.013125rem;
}
#poweredby-link span {
position: absolute;
display: block;
pointer-events: none;
}
#poweredby-link span:nth-child(1) {
height: 8px;
width: 100%;
top: 0;
left: 0;
background: linear-gradient(to right, rgba(0, 0, 0, 0), #f6e58d);
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
transform: translateX(-100%);
animation: span1 8s linear infinite;
animation-delay: 1s;
}
@keyframes span1 {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
#poweredby-link span:nth-child(2) {
width: 8px;
height: 100%;
top: 0;
right: 0;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #f6e58d);
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
transform: translateY(100%);
animation: span2 4s linear infinite;
animation-delay: 5s;
}
@keyframes span2 {
0% {
transform: translateY(-100%);
}
100% {
transform: translateY(100%);
}
}
#poweredby-link span:nth-child(3) {
height: 8px;
width: 100%;
bottom: 0;
right: 0;
background: linear-gradient(to left, rgba(0, 0, 0, 0), #f6e58d);
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
transform: translateX(100%);
animation: span3 8s linear infinite;
animation-delay: 7s;
}
@keyframes span3 {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
#poweredby-link:hover {
transition: all .5s;
transform: rotate(-3deg) scale(1.1);
box-shadow: 0px 3px 5px rgba(0,0,0,.4);
}
#poweredby-link:hover span {
animation-play-state: paused;
}
@media (max-width: 48rem) {
#poweredby-link {
height: 6.25rem;
min-width: auto;
border-radius: 0;
}
#poweredby-text {
display: inline;
padding-top: .5rem;
}
}
@media (min-width: 48rem) {
#poweredby-button {
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -50%);
max-width: 29.375rem;
margin-bottom: 0;
}
}
.content-text {
z-index: 1;
width: 100%;
display: flex;
flex-direction: column;
box-sizing: border-box;
align-items: center;
text-align: left;
font-size: 1.3125rem;
font-weight: 400;
line-height: 1.5;
margin-top: -6rem;
background: #fff;
margin-bottom: 0;
position: relative;
padding: 6rem 1.063rem 0.75rem;
overflow: hidden;
}
.content-text p {
width: 100%;
line-height: 150%;
font-weight: 400;
font-size: 1.45rem;
margin: 0 0 1.5rem;
}
@media (min-width: 48rem) {
.content-text {
font-size: 1.375rem;
line-height: 2rem;
padding-top: 7rem;
}
}
@media (min-width: 64rem) {
.content-text {
border-radius: 0.75rem;
box-shadow: var(--shadow);
max-width: 60rem;
margin: 0 auto 6rem;
padding-left: 4.5rem;
padding-right: 4.5rem;
}
}
.subcontent {
position: relative;
}
.subcontent h1 {
margin: 1em 0 .8em;
}
.subcontent h1 span {
display: inline-block;
padding: 10px 30px 14px;
margin: 0 0 0 20px;
background: white;
border: 5px solid;
border-radius: 30px;
box-shadow: 0 0 0 5px white, inset 0 0 0 5px white;
border-color: orangered;
transform: rotate(-3deg) translateY(-25%);
}
.subcontent h1:before {
content: "";
height: 5px;
position: absolute;
top: 50px;
left: -15%;
width: 130%;
z-index: -5;
background: orangered;
box-shadow: 0 0 0 5px white, 0 -10px 0 5px white;
transform: rotate(2deg) translateY(-50%);
transform-origin: top left;
}
.subcontent h1:after {
content: "";
height: 70rem;
position: absolute;
top: 42px;
left: -15%;
width: 130%;
z-index: -10;
background: var(--color-red);
transform: rotate(2deg);
}
#footer {
width: 100%;
background-color: black;
color: var(--color-gray);
font-size: 1.15rem;
font-weight: 300;
line-height: 100%;
display: flex;
justify-content: center;
z-index: 10;
}
#footer a:visited {
color: var(--color-gray);
}
.footer-logo {
max-height: 12.625rem;
}
.footer-logo svg {
width: 100%;
}
.footer-logo,
.footer-links,
.footer-inner {
display: flex;
justify-content: center;
width: 100%;
}
.footer-links {
gap: 1.875rem;
flex-wrap: wrap;
margin-top: 2rem;
}
.footer-inner {
max-width: 80rem;
display: flex;
flex-direction: column;
padding: 0 10.625rem 2rem;
}
@media (max-width: 48rem) {
.footer-logo {
display: none;
}
}
@media (max-width: 64rem) {
.footer-inner {
padding: 0 1rem 2rem;
}
}