MediaWiki:LandingPage.css: Difference between revisions
From The Seven Sages of Rome
(Created page with ".page-Main_Page .contentHeader { display: none; } .hero-container { padding-bottom: 2rem; } .mix-blend-multiply { mix-blend-mode: multiply; transition: opacity 0.5s ease; } .hero-section { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 0.25rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); height: calc(100dvh -...") |
No edit summary |
||
Line 3: | Line 3: | ||
} | } | ||
.hero-container { | |||
padding-bottom: 2rem; | |||
} | |||
.mix-blend-multiply { | |||
mix-blend-mode: multiply; | |||
transition: opacity 0.5s ease; | |||
} | |||
.hero-section { | |||
position: relative; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
overflow: hidden; | |||
border-radius: 0.25rem; | |||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |||
height: calc(100dvh - 100px); | |||
width: 100%; | |||
transition: transform 0.3s ease; | |||
} | |||
.hero-section:hover img { | |||
transform: scale(1.05); | |||
} | |||
.hero-section:hover .mix-blend-multiply { | |||
opacity: 0.8; | |||
} | |||
.hero-section img { | |||
transition: transform 0.3s ease; | |||
object-fit: cover; | |||
object-position: center; | |||
inset: 0; | |||
position: absolute; | |||
height: 100%; | |||
width: 100%; | |||
} | |||
.hero-overlay { | |||
position: absolute; | |||
height: 100%; | |||
width: 100%; | |||
inset: 0; | |||
background-color: black; | |||
opacity: 0.7; | |||
} | |||
.hero-text-container { | |||
position: relative; | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
padding: 1rem; | |||
} | |||
.hero-title { | |||
text-align: center; | |||
color: white; | |||
font-weight: 600; | |||
font-size: 3rem; | |||
line-height: 1; | |||
} | |||
.hero-subtitle { | |||
text-align: center; | |||
color: white; | |||
font-size: 1.3rem; | |||
line-height: 1; | |||
max-width: 70%; | |||
} | |||
.caret { | |||
position: absolute; | |||
bottom: 20px; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
font-size: 2rem; | |||
color: white; | |||
cursor: pointer; | |||
animation: bounce 2s infinite; | |||
} | |||
@keyframes bounce { | |||
0%, | |||
20%, | |||
50%, | |||
80%, | |||
100% { | |||
transform: translateY(0) translateX(-50%); | |||
} | |||
40% { | |||
transform: translateY(-10px) translateX(-50%); | |||
} | |||
60% { | |||
transform: translateY(-5px) translateX(-50%); | |||
} | |||
} | |||
@media (max-width: 400px) { | |||
.hero-title { | |||
font-size: 2.2rem; | |||
} | |||
.hero-subtitle { | |||
font-size: 1.4rem; | |||
} | |||
} | |||
@media (min-width: 768px) { | |||
.hero-title { | |||
font-size: 4rem; | |||
} | |||
.hero-subtitle { | |||
font-size: 1.8rem; | |||
} | |||
} | |||
.content-container { | |||
width: 100%; | |||
/* Match hero section width */ | |||
max-width: 1600px; | |||
/* or your preferred max width */ | |||
margin: 0 auto; | |||
/* Center the container */ | |||
padding: 20px; | |||
/* Add padding for content */ | |||
} | |||
.landing-page-row { | |||
border-radius: 0.25rem; | |||
background: oklch(0.374 0.01 67.558); | |||
color: white; | |||
padding: 1.5rem; | |||
margin-bottom: 5rem; | |||
ul { | |||
list-style: none; | |||
text-align: left; | |||
} | |||
} | |||
.fit-img img { | |||
border-radius: 0.25rem; | |||
} | |||
.editor-view { | .editor-view { | ||
display: none; | |||
} | } | ||
Line 132: | Line 162: | ||
} | } | ||
.fancy-underline { | |||
position: relative; | |||
} | |||
.fancy-underline::after { | |||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
Line 143: | Line 173: | ||
width: 110%; | width: 110%; | ||
height: 12px; | height: 12px; | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' fill='none'%3E%3Cpath d='M1 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' fill='none'%3E%3Cpath d='M1 4C50 7 100 1 199 4' stroke='%234B96FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-size: 100% 100%; | background-size: 100% 100%; | ||
} | } |
Revision as of 16:05, 12 March 2025
.page-Main_Page .contentHeader {
display: none;
}
.hero-container {
padding-bottom: 2rem;
}
.mix-blend-multiply {
mix-blend-mode: multiply;
transition: opacity 0.5s ease;
}
.hero-section {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 0.25rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
height: calc(100dvh - 100px);
width: 100%;
transition: transform 0.3s ease;
}
.hero-section:hover img {
transform: scale(1.05);
}
.hero-section:hover .mix-blend-multiply {
opacity: 0.8;
}
.hero-section img {
transition: transform 0.3s ease;
object-fit: cover;
object-position: center;
inset: 0;
position: absolute;
height: 100%;
width: 100%;
}
.hero-overlay {
position: absolute;
height: 100%;
width: 100%;
inset: 0;
background-color: black;
opacity: 0.7;
}
.hero-text-container {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem;
}
.hero-title {
text-align: center;
color: white;
font-weight: 600;
font-size: 3rem;
line-height: 1;
}
.hero-subtitle {
text-align: center;
color: white;
font-size: 1.3rem;
line-height: 1;
max-width: 70%;
}
.caret {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
font-size: 2rem;
color: white;
cursor: pointer;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0) translateX(-50%);
}
40% {
transform: translateY(-10px) translateX(-50%);
}
60% {
transform: translateY(-5px) translateX(-50%);
}
}
@media (max-width: 400px) {
.hero-title {
font-size: 2.2rem;
}
.hero-subtitle {
font-size: 1.4rem;
}
}
@media (min-width: 768px) {
.hero-title {
font-size: 4rem;
}
.hero-subtitle {
font-size: 1.8rem;
}
}
.content-container {
width: 100%;
/* Match hero section width */
max-width: 1600px;
/* or your preferred max width */
margin: 0 auto;
/* Center the container */
padding: 20px;
/* Add padding for content */
}
.landing-page-row {
border-radius: 0.25rem;
background: oklch(0.374 0.01 67.558);
color: white;
padding: 1.5rem;
margin-bottom: 5rem;
ul {
list-style: none;
text-align: left;
}
}
.fit-img img {
border-radius: 0.25rem;
}
.editor-view {
display: none;
}
#hero-title-database {
font-weight: 900;
}
.fancy-underline {
position: relative;
}
.fancy-underline::after {
content: '';
position: absolute;
left: -5%;
bottom: -5px;
width: 110%;
height: 12px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' fill='none'%3E%3Cpath d='M1 4C50 7 100 1 199 4' stroke='%234B96FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 100% 100%;
}