diff --git a/src/components/About.tsx b/src/components/About.tsx index 3a6ed3f..5aa227a 100644 --- a/src/components/About.tsx +++ b/src/components/About.tsx @@ -28,20 +28,10 @@ function About() {

{t.team.title}

-
+
{[t.team.member1, t.team.member2, t.team.member3].map((member, i) => ( -
-
+
+
person

{member.name}

diff --git a/src/components/ProductPage.tsx b/src/components/ProductPage.tsx index c54c436..4e2deaa 100644 --- a/src/components/ProductPage.tsx +++ b/src/components/ProductPage.tsx @@ -28,7 +28,7 @@ function ProductPage({ title, description, icon, trademark, children }: ProductP
-
+

{t.detailsTitle}

{t.detailsText}

diff --git a/src/style.css b/src/style.css index d84ed2a..2a0fee9 100644 --- a/src/style.css +++ b/src/style.css @@ -49,6 +49,11 @@ h2::after { background-color: var(--accent-color); } +h3 { + text-align: center; + margin-bottom: 1rem; +} + p { margin-bottom: 1rem; color: var(--text-secondary); @@ -246,18 +251,29 @@ a:hover { /* About Grid */ .about-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + display: flex; + flex-wrap: wrap; gap: 3rem; margin-top: 4rem; + justify-content: center; +} + +.about-grid > div { + flex: 1 1 280px; + min-width: 280px; + display: flex; + flex-direction: column; + align-items: center; + text-align: center; } /* Products Section */ .products-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); + display: flex; + flex-wrap: wrap; gap: 2.5rem; margin-top: 3rem; + justify-content: center; } .product-card { @@ -271,6 +287,8 @@ a:hover { flex-direction: column; align-items: center; text-align: center; + flex: 1 1 320px; + min-width: 320px; } .product-card:hover { @@ -353,6 +371,36 @@ a:hover { background-color: #004080; } +/* Team Section */ +.team-grid { + display: flex; + flex-wrap: wrap; + gap: 4rem; + justify-content: center; + margin-top: 4rem; +} + +.team-member { + flex: 1 1 280px; + min-width: 280px; + display: flex; + flex-direction: column; + align-items: center; + text-align: center; +} + +.team-member-avatar { + width: 180px; + height: 180px; + borderRadius: 50%; + background-color: var(--bg-light); + margin-bottom: 1.5rem; + display: flex; + align-items: center; + justify-content: center; + border: 1px solid var(--border-color); +} + .vienna-signet { margin-top: 5rem; font-size: 0.75rem; @@ -404,7 +452,28 @@ html { } } +.product-details-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 4rem; + align-items: center; +} + @media (max-width: 768px) { + .product-details-grid { + text-align: center; + justify-content: center; + } + + .product-details-grid h2 { + margin-bottom: 2rem; + } + + .product-details-grid ul { + display: flex; + flex-direction: column; + align-items: center; + } .container { padding: 0 1.5rem; } @@ -462,22 +531,31 @@ html { .about-grid, .products-grid { gap: 2rem; - text-align: center; - } - - /* Target the third child specifically to center it when stacking */ - .about-grid > div:nth-child(3), .products-grid > div:nth-child(3) { - grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; + width: 100%; } .about-grid > div, .product-card { display: flex; flex-direction: column; align-items: center; - max-width: 100%; + width: 100%; + max-width: 500px; + margin: 0 auto; + } + + .about-grid p, .product-card p { + text-align: center; + } + + /* Remove special grid centering since we switched to flex-column for mobile */ + .about-grid > div:nth-child(3), .products-grid > div:nth-child(3) { + grid-column: auto; + width: 100%; + max-width: 500px; + margin: 0 auto; } .product-icon {