Files
JuiceWorkStation/dashboard/src/components/Banner.css
T

77 lines
1.3 KiB
CSS

.banner {
position: relative;
min-height: 100svh;
display: flex;
align-items: center;
justify-content: center;
background-image: url('/banner.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.banner::before {
content: '';
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.45);
}
.banner-overlay {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 32px;
padding: 120px 24px 64px;
text-align: center;
}
.banner-title {
margin: 0;
font-size: 64px;
font-weight: 700;
letter-spacing: -1px;
color: #fff;
text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.banner-button {
display: inline-block;
padding: 14px 40px;
font-size: 18px;
font-weight: 600;
color: #fff;
background: rgba(17, 18, 23, 0.65);
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 999px;
text-decoration: none;
backdrop-filter: blur(6px);
transition:
background 0.25s,
transform 0.25s;
&:hover {
background: #c084fc;
border-color: #c084fc;
transform: translateY(-2px);
}
}
@media (max-width: 1024px) {
.banner-title {
font-size: 40px;
}
}
@media (max-width: 640px) {
.banner-title {
font-size: 32px;
}
.banner-button {
padding: 12px 32px;
font-size: 16px;
}
}