More actions
Admornstein (talk | contribs) No edit summary |
Admornstein (talk | contribs) No edit summary Tag: Reverted |
||
| Line 15: | Line 15: | ||
} | } | ||
.home-header { | |||
. | text-align: center; | ||
padding: 60px 20px 30px; | |||
} | |||
.home-header h1 { | |||
font-size: 48px; | |||
color: #cceeff; | |||
margin: 0; | |||
} | |||
.home-header p { | |||
color: #aaaaaa; | |||
margin-top: 8px; | |||
} | |||
.event-banner { | |||
margin: 20px auto; | |||
background: linear-gradient(to right, #1c1e2b, #3a1f4f); | |||
border-radius: 10px; | |||
padding: 16px; | |||
max-width: 1100px; | |||
text-align: center; | |||
} | |||
.tiles { | |||
display: grid; | |||
grid-template-columns: repeat(7, 1fr); | |||
gap: 2rem; | gap: 2rem; | ||
padding: 0 20px; | |||
box-sizing: border-box; | |||
width: 100%; | |||
} | } | ||
.big-box { | .big-box { | ||
grid-column: span 2; | |||
width: 100%; | |||
aspect-ratio: 1 / 3; | |||
background-size: contain; | background-size: contain; | ||
background-repeat: no-repeat; | |||
background-position: center; | background-position: center; | ||
position: relative; | |||
border-radius: 12px; | border-radius: 12px; | ||
color: white; | color: white; | ||
text-align: center; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: flex-end; | justify-content: flex-end; | ||
box-shadow: 0 0 10px #00000088; | |||
overflow: hidden; | |||
padding: 10px; | padding: 10px; | ||
} | } | ||
.small-box { | .small-box { | ||
width: | grid-column: span 1; | ||
width: 100%; | |||
aspect-ratio: 4 / 1; | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
position: relative; | position: relative; | ||
border-radius: 12px; | border-radius: 12px; | ||
color: white; | color: white; | ||
text-align: center; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: flex-end; | justify-content: flex-end; | ||
box-shadow: 0 0 10px #00000088; | |||
overflow: hidden; | |||
padding: 10px; | padding: 10px; | ||
} | } | ||
/* shared overlay */ | |||
.big-box::before, | |||
.small-box::before { | .small-box::before { | ||
content: ""; | content: ""; | ||
| Line 119: | Line 94: | ||
z-index: 1; | z-index: 1; | ||
} | } | ||
.overlay-title, | |||
.overlay-desc { | |||
position: relative; | position: relative; | ||
z-index: 2; | z-index: 2; | ||
} | } | ||
.overlay-title { | |||
font-family: 'AngerStyles', serif; | font-family: 'AngerStyles', serif; | ||
border-bottom: | font-size: 20px; | ||
border-bottom: 2px solid white; | |||
padding-bottom: 2px; | padding-bottom: 2px; | ||
transition: color 0.2s ease, border-color 0.2s ease; | transition: color 0.2s ease, border-color 0.2s ease; | ||
} | } | ||
.overlay-desc { | |||
font-size: 14px; | |||
font-size: | |||
margin-top: 6px; | margin-top: 6px; | ||
color: # | color: #e0e0e0; | ||
text-shadow: 1px 1px 3px black; | text-shadow: 1px 1px 3px black; | ||
opacity: 0; | opacity: 0; | ||
transition: opacity 0.3s ease; | transition: opacity 0.3s ease; | ||
} | } | ||
.big-box:hover .overlay-title, | |||
.small-box:hover .overlay-title { | |||
color: #c9a500; | |||
border-color: #c9a500; | |||
} | |||
.big-box:hover .overlay-desc, | |||
.small-box:hover .overlay-desc { | .small-box:hover .overlay-desc { | ||
opacity: 1; | opacity: 1; | ||
} | } | ||
/* | /* backgrounds */ | ||
.bg-classes { background-image: url('https://cathedralofblades.com/wiki/images/7/7e/Classes.jpg'); } | .bg-classes { background-image: url('https://cathedralofblades.com/wiki/images/7/7e/Classes.jpg'); } | ||
.bg-weapons { background-image: url('https://cathedralofblades.com/wiki/images/9/9c/Weapons.jpg'); } | .bg-weapons { background-image: url('https://cathedralofblades.com/wiki/images/9/9c/Weapons.jpg'); } | ||
| Line 163: | Line 135: | ||
.bg-abyss { background-image: url('https://cathedralofblades.com/wiki/images/c/c0/Abyss.jpg'); } | .bg-abyss { background-image: url('https://cathedralofblades.com/wiki/images/c/c0/Abyss.jpg'); } | ||
/* | /* responsive */ | ||
@media (max-width: 1024px) { | |||
.tiles { | |||
grid-template-columns: repeat(2, 1fr); | |||
gap: 1rem; | |||
} | } | ||
.big-box { grid-column: span 2; aspect-ratio: 2 / 3; height: auto; } | |||
. | .small-box { grid-column: span 2; aspect-ratio: 4 / 1; height: auto; } | ||
} | |||
. | |||
} | } | ||
Revision as of 14:14, 26 June 2025
@font-face {
font-family: 'AngerStyles';
src: url('https://cathedralofblades.com/wiki/resources/AngerStyles.woff2') format('woff2'),
url('https://cathedralofblades.com/wiki/resources/AngerStyles.woff') format('woff');
font-weight: normal;
font-style: normal;
}
body {
background-color: #0e1117;
font-family: 'AngerStyles', sans-serif;
color: white;
margin: 0;
padding: 0;
}
.home-header {
text-align: center;
padding: 60px 20px 30px;
}
.home-header h1 {
font-size: 48px;
color: #cceeff;
margin: 0;
}
.home-header p {
color: #aaaaaa;
margin-top: 8px;
}
.event-banner {
margin: 20px auto;
background: linear-gradient(to right, #1c1e2b, #3a1f4f);
border-radius: 10px;
padding: 16px;
max-width: 1100px;
text-align: center;
}
.tiles {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2rem;
padding: 0 20px;
box-sizing: border-box;
width: 100%;
}
.big-box {
grid-column: span 2;
width: 100%;
aspect-ratio: 1 / 3;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
position: relative;
border-radius: 12px;
color: white;
text-align: center;
display: flex;
flex-direction: column;
justify-content: flex-end;
box-shadow: 0 0 10px #00000088;
overflow: hidden;
padding: 10px;
}
.small-box {
grid-column: span 1;
width: 100%;
aspect-ratio: 4 / 1;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
position: relative;
border-radius: 12px;
color: white;
text-align: center;
display: flex;
flex-direction: column;
justify-content: flex-end;
box-shadow: 0 0 10px #00000088;
overflow: hidden;
padding: 10px;
}
/* shared overlay */
.big-box::before,
.small-box::before {
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 1;
}
.overlay-title,
.overlay-desc {
position: relative;
z-index: 2;
}
.overlay-title {
font-family: 'AngerStyles', serif;
font-size: 20px;
border-bottom: 2px solid white;
padding-bottom: 2px;
transition: color 0.2s ease, border-color 0.2s ease;
}
.overlay-desc {
font-size: 14px;
margin-top: 6px;
color: #e0e0e0;
text-shadow: 1px 1px 3px black;
opacity: 0;
transition: opacity 0.3s ease;
}
.big-box:hover .overlay-title,
.small-box:hover .overlay-title {
color: #c9a500;
border-color: #c9a500;
}
.big-box:hover .overlay-desc,
.small-box:hover .overlay-desc {
opacity: 1;
}
/* backgrounds */
.bg-classes { background-image: url('https://cathedralofblades.com/wiki/images/7/7e/Classes.jpg'); }
.bg-weapons { background-image: url('https://cathedralofblades.com/wiki/images/9/9c/Weapons.jpg'); }
.bg-signets { background-image: url('https://cathedralofblades.com/wiki/images/6/61/Signets.jpg'); }
.bg-quests { background-image: url('https://cathedralofblades.com/wiki/images/9/98/Damarossa.jpg'); }
.bg-maidens { background-image: url('https://cathedralofblades.com/wiki/images/6/61/Sorrow.jpg'); }
.bg-dungeons { background-image: url('https://cathedralofblades.com/wiki/images/d/db/Obscuradungeon.jpg'); }
.bg-rhapsody { background-image: url('https://cathedralofblades.com/wiki/images/4/4a/Rhapsody.jpg'); }
.bg-railways { background-image: url('https://cathedralofblades.com/wiki/images/1/12/Railways.jpg'); }
.bg-abyss { background-image: url('https://cathedralofblades.com/wiki/images/c/c0/Abyss.jpg'); }
/* responsive */
@media (max-width: 1024px) {
.tiles {
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.big-box { grid-column: span 2; aspect-ratio: 2 / 3; height: auto; }
.small-box { grid-column: span 2; aspect-ratio: 4 / 1; height: auto; }
}