Home: Difference between revisions
From Treeverse
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<!DOCTYPE html> | |||
<html lang="en"> | <html lang="en"> | ||
<head> | <head> | ||
| Line 20: | Line 20: | ||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); | box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); | ||
overflow: hidden; | overflow: hidden; | ||
margin: 12px 0; | margin: 12px 0; | ||
width: 100%; | width: 100%; | ||
max-width: 900px; | max-width: 900px; | ||
} | } | ||
.season2-inner { | .season2-inner { | ||
display: grid; | display: grid; | ||
grid-template-columns: 130px auto; | grid-template-columns: 130px auto; | ||
gap: 12px; | gap: 12px; | ||
padding: 8px 12px; | padding: 8px 12px; | ||
align-items: center; | align-items: center; | ||
} | } | ||
.season2-media img { | .season2-media img { | ||
width: 112px; | width: 112px; | ||
height: auto; | height: auto; | ||
border-radius: 8px; | border-radius: 8px; | ||
| Line 57: | Line 51: | ||
color: #111827; | color: #111827; | ||
margin: 0; | margin: 0; | ||
} | } | ||
| Line 65: | Line 58: | ||
color: #4b5563; | color: #4b5563; | ||
margin: 0; | margin: 0; | ||
} | } | ||
| Line 83: | Line 75: | ||
border-radius: 8px; | border-radius: 8px; | ||
transition: transform 0.15s ease; | transition: transform 0.15s ease; | ||
width: fit-content; | width: fit-content; | ||
} | } | ||
.season2-button:hover { transform: scale(1.03); } | .season2-button:hover { | ||
transform: scale(1.03); | |||
} | |||
/* Mobile: stack | /* ✅ Mobile fix: stack image above text */ | ||
@media (max-width: 640px) { | @media (max-width: 640px) { | ||
.season2-inner { | .season2-inner { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
gap: 8px; | |||
} | } | ||
.season2- | .season2-media { | ||
justify-content: center; /* center the image */ | |||
.season2- | } | ||
.season2-content { | |||
text-align: center; /* center-align text/buttons for mobile */ | |||
} | } | ||
} | } | ||
| Line 115: | Line 109: | ||
<p class="season2-headline">🔥 Alpha: Season 2</p> | <p class="season2-headline">🔥 Alpha: Season 2</p> | ||
<p id="season2-heading" class="season2-subtitle">Sneak peek at what's to come</p> | <p id="season2-heading" class="season2-subtitle">Sneak peek at what's to come</p> | ||
<a href=" | <a href="Season 2" class="season2-button">Learn More ➜</a> | ||
</div> | </div> | ||
</div> | </div> | ||
| Line 121: | Line 115: | ||
</body> | </body> | ||
</html> | </html> | ||