MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); | box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); | ||
background: center / cover no-repeat url(/images/SuperJoyBanner.png); | background: center / cover no-repeat url(/images/a/a8/SuperJoyBanner.png); | ||
margin-bottom: 32px; | margin-bottom: 32px; | ||
} | } | ||
Revision as of 20:19, 4 October 2025
/* ===========================
SUPERJOY WIKI FRONT PAGE HERO
=========================== */
/* Hero container */
.page-Main_Page .sj-hero {
position: relative;
height: 260px;
border-radius: 14px;
overflow: hidden;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
background: center / cover no-repeat url(/images/a/a8/SuperJoyBanner.png);
margin-bottom: 32px;
}
/* Subtle gradient overlay for readability */
.page-Main_Page .sj-hero::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
}
/* Text overlay styling */
.page-Main_Page .sj-hero__text {
position: absolute;
inset: 0;
display: grid;
place-items: center;
text-align: center;
color: #ffffff;
padding: 18px;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}
/* Headline inside hero */
.page-Main_Page .sj-hero__text h1 {
margin: 0 0 6px 0;
font-weight: 800;
font-size: clamp(28px, 4.5vw, 44px);
letter-spacing: 0.5px;
}
/* Subtitle or tagline */
.page-Main_Page .sj-hero__text p {
margin: 0;
font-size: clamp(14px, 2vw, 18px);
opacity: 0.9;
}
/* ===========================
BUTTON ROW BELOW HERO
=========================== */
.page-Main_Page .sj-links {
text-align: center;
margin: 20px 0 40px;
}
.page-Main_Page .sj-links a {
display: inline-block;
margin: 6px 10px;
padding: 10px 20px;
border-radius: 8px;
font-weight: 600;
color: #fff;
text-decoration: none;
transition: all 0.2s ease-in-out;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* Discord blue */
.page-Main_Page .sj-links a.discord {
background-color: #5865f2;
}
.page-Main_Page .sj-links a.discord:hover {
background-color: #4752c4;
}
/* Feedback green */
.page-Main_Page .sj-links a.feedback {
background-color: #3ba55d;
}
.page-Main_Page .sj-links a.feedback:hover {
background-color: #2c8748;
}
/* Twitter blue */
.page-Main_Page .sj-links a.twitter {
background-color: #1da1f2;
}
.page-Main_Page .sj-links a.twitter:hover {
background-color: #178bd6;
}
/* ===========================
PROJECT GRID
=========================== */
.page-Main_Page .sj-projects {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin-top: 40px;
}
.page-Main_Page .sj-project-card {
display: block;
width: 320px;
border-radius: 14px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
text-decoration: none;
color: inherit;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-Main_Page .sj-project-card:hover {
transform: translateY(-6px);
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.page-Main_Page .sj-project-card img {
width: 100%;
height: 200px;
object-fit: cover;
filter: brightness(78%);
}
.page-Main_Page .sj-project-card h3 {
background: #111827;
color: #fff;
margin: 0;
padding: 14px;
font-weight: 600;
text-align: center;
font-size: 18px;
}