Skip to content

Commit e969d44

Browse files
committed
Added responsiveness
1 parent c797e09 commit e969d44

4 files changed

Lines changed: 221 additions & 6 deletions

File tree

2.17 MB
Loading

src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Hero } from './components/Hero';
33
import { MapShowcase } from './components/MapShowcase';
44
import { MapHighlights } from './components/MapHighlights';
55
import { Redstone } from './components/Redstone';
6-
import { Featured } from './components/Featured';
76
import { Footer } from './components/Footer';
87

98
function App() {
@@ -14,7 +13,6 @@ function App() {
1413
<MapShowcase />
1514
<MapHighlights />
1615
<Redstone />
17-
<Featured />
1816
<Footer />
1917
</>
2018
);

src/components/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface HeroProps {
88
const CELL_SIZE = 50; // Fixed 50x50 pixel squares
99

1010
export function Hero({
11-
backgroundImage = `${import.meta.env.BASE_URL}images/main render.jpg`,
11+
backgroundImage = `${import.meta.env.BASE_URL}images/render frost pursuit.webp`,
1212
logoSrc = `${import.meta.env.BASE_URL}images/logo 2.png`
1313
}: HeroProps) {
1414
const [isLoading, setIsLoading] = useState(true);

src/index.css

Lines changed: 220 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ ul {
355355
filter: brightness(0) invert(1);
356356
margin: -20px 0;
357357
position: relative;
358-
left: -100px;
358+
left: clamp(-50px, -5vw, -100px);
359359
}
360360

361361
.nav-links {
@@ -1832,17 +1832,36 @@ ul {
18321832
@media (max-width: 900px) {
18331833
.redstone-layout {
18341834
grid-template-columns: 1fr;
1835+
display: flex;
1836+
flex-direction: column;
18351837
}
18361838

18371839
.redstone-sticky {
1838-
position: relative;
1839-
top: 0;
1840+
order: -1;
1841+
position: sticky;
1842+
top: -155px;
18401843
text-align: center;
1844+
background: var(--white);
1845+
z-index: 10;
1846+
padding: 0 var(--space-sm) var(--space-md);
1847+
margin-top: 0;
1848+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
1849+
}
1850+
1851+
.redstone-scroll {
1852+
order: 1;
1853+
padding: var(--space-sm) 0;
1854+
align-items: center;
18411855
}
18421856

18431857
.redstone-belief {
18441858
max-width: 100%;
18451859
}
1860+
1861+
.redstone-current-label {
1862+
width: auto;
1863+
margin: 0 auto;
1864+
}
18461865
}
18471866

18481867
/* ========================================
@@ -2249,4 +2268,202 @@ ul {
22492268
justify-content: center;
22502269
padding-right: 0;
22512270
}
2271+
}
2272+
2273+
/* ========================================
2274+
ADDITIONAL RESPONSIVE FIXES
2275+
======================================== */
2276+
2277+
/* Tablet - 1024px and below */
2278+
@media (max-width: 1024px) {
2279+
.logo-img {
2280+
height: 35px;
2281+
}
2282+
2283+
.nav-cta {
2284+
padding: 0.5rem 1rem;
2285+
font-size: 0.85rem;
2286+
}
2287+
2288+
.map-image-container {
2289+
max-width: 100%;
2290+
padding: 0 var(--space-md);
2291+
}
2292+
2293+
.map-image {
2294+
max-width: 100%;
2295+
height: auto;
2296+
}
2297+
2298+
.view-buttons {
2299+
flex-wrap: wrap;
2300+
gap: 0.5rem;
2301+
}
2302+
2303+
.redstone-scroll-item {
2304+
max-width: 100%;
2305+
padding-right: var(--space-md);
2306+
}
2307+
2308+
.redstone-current-label {
2309+
font-size: 1.25rem;
2310+
}
2311+
2312+
.redstone-description {
2313+
max-width: 100%;
2314+
}
2315+
}
2316+
2317+
/* Tablet Portrait - 768px and below */
2318+
@media (max-width: 768px) {
2319+
.logo-img {
2320+
height: 30px;
2321+
left: 0;
2322+
}
2323+
2324+
.dark-mode-toggle {
2325+
width: 35px;
2326+
height: 35px;
2327+
font-size: 1rem;
2328+
}
2329+
2330+
/* MapShowcase */
2331+
.block-stat-item {
2332+
min-width: 60px;
2333+
}
2334+
2335+
.block-icon {
2336+
width: 24px;
2337+
height: 24px;
2338+
}
2339+
2340+
.block-name {
2341+
font-size: 0.7rem;
2342+
}
2343+
2344+
.block-count {
2345+
font-size: 0.65rem;
2346+
}
2347+
2348+
.view-btn {
2349+
padding: 0.5rem 1rem;
2350+
font-size: 0.8rem;
2351+
}
2352+
2353+
/* MapHighlights */
2354+
.highlight-card-title {
2355+
font-size: 1rem;
2356+
}
2357+
2358+
.gallery-overlay .gallery-content {
2359+
width: 95%;
2360+
max-height: 90vh;
2361+
}
2362+
2363+
.gallery-main img {
2364+
max-height: 50vh;
2365+
}
2366+
2367+
/* Redstone */
2368+
.redstone-title {
2369+
font-size: 1.75rem;
2370+
}
2371+
2372+
.redstone-subtitle {
2373+
font-size: 1rem;
2374+
}
2375+
2376+
.redstone-belief {
2377+
font-size: 0.9rem;
2378+
}
2379+
2380+
.redstone-current-label {
2381+
width: 100%;
2382+
}
2383+
2384+
.redstone-scroll {
2385+
padding: var(--space-lg) 0 var(--space-md) 0;
2386+
}
2387+
2388+
/* Footer */
2389+
.footer-links {
2390+
gap: var(--space-sm);
2391+
}
2392+
}
2393+
2394+
/* Mobile - 480px and below */
2395+
@media (max-width: 480px) {
2396+
.navbar {
2397+
padding: 0.75rem 0;
2398+
}
2399+
2400+
.logo-img {
2401+
height: 25px;
2402+
}
2403+
2404+
.nav-container {
2405+
padding: 0 var(--space-sm);
2406+
}
2407+
2408+
/* MapShowcase */
2409+
.total-count {
2410+
font-size: 2.5rem;
2411+
}
2412+
2413+
.total-label {
2414+
font-size: 1rem;
2415+
}
2416+
2417+
.view-buttons {
2418+
width: 100%;
2419+
justify-content: center;
2420+
}
2421+
2422+
.view-btn {
2423+
flex: 1;
2424+
text-align: center;
2425+
padding: 0.5rem;
2426+
}
2427+
2428+
/* MapHighlights */
2429+
.mode-toggle {
2430+
transform: scale(0.8);
2431+
}
2432+
2433+
.gallery-nav {
2434+
width: 30px;
2435+
height: 30px;
2436+
font-size: 1rem;
2437+
}
2438+
2439+
/* Redstone */
2440+
.redstone-sticky {
2441+
padding: var(--space-sm) 0;
2442+
}
2443+
2444+
.redstone-title {
2445+
font-size: 1.5rem;
2446+
}
2447+
2448+
.redstone-title-technical {
2449+
font-size: 0.8em;
2450+
padding: 0.1rem 0.4rem;
2451+
}
2452+
2453+
.redstone-scroll-item {
2454+
padding-right: 0;
2455+
}
2456+
2457+
/* Footer */
2458+
.footer-logo-img {
2459+
height: 40px;
2460+
}
2461+
2462+
.footer-tagline {
2463+
font-size: 0.75rem;
2464+
}
2465+
2466+
.footer-links a {
2467+
font-size: 0.85rem;
2468+
}
22522469
}

0 commit comments

Comments
 (0)