Made page a little mobile-friendlier

This commit is contained in:
Dionis
2026-03-01 10:02:37 +01:00
parent a829cf2533
commit dd8a404b98
3 changed files with 93 additions and 25 deletions

View File

@@ -28,20 +28,10 @@ function About() {
<div style={{ marginTop: '8rem' }}> <div style={{ marginTop: '8rem' }}>
<h2 style={{ marginBottom: '4rem' }}>{t.team.title}</h2> <h2 style={{ marginBottom: '4rem' }}>{t.team.title}</h2>
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(280px, 1fr))', gap: '4rem' }}> <div className="team-grid">
{[t.team.member1, t.team.member2, t.team.member3].map((member, i) => ( {[t.team.member1, t.team.member2, t.team.member3].map((member, i) => (
<div key={i} style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}> <div key={i} className="team-member">
<div style={{ <div className="team-member-avatar" style={{ borderRadius: '50%' }}>
width: '180px',
height: '180px',
borderRadius: '50%',
backgroundColor: 'var(--bg-light)',
marginBottom: '1.5rem',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
border: '1px solid var(--border-color)'
}}>
<span className="material-icons" style={{ fontSize: '4rem', opacity: 0.2 }}>person</span> <span className="material-icons" style={{ fontSize: '4rem', opacity: 0.2 }}>person</span>
</div> </div>
<h3 style={{ marginBottom: '0.5rem', fontSize: '1.3rem' }}>{member.name}</h3> <h3 style={{ marginBottom: '0.5rem', fontSize: '1.3rem' }}>{member.name}</h3>

View File

@@ -28,7 +28,7 @@ function ProductPage({ title, description, icon, trademark, children }: ProductP
<section className="section"> <section className="section">
<div className="container"> <div className="container">
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))', gap: '4rem', alignItems: 'center' }}> <div className="product-details-grid">
<div> <div>
<h2>{t.detailsTitle}</h2> <h2>{t.detailsTitle}</h2>
<p>{t.detailsText}</p> <p>{t.detailsText}</p>

View File

@@ -49,6 +49,11 @@ h2::after {
background-color: var(--accent-color); background-color: var(--accent-color);
} }
h3 {
text-align: center;
margin-bottom: 1rem;
}
p { p {
margin-bottom: 1rem; margin-bottom: 1rem;
color: var(--text-secondary); color: var(--text-secondary);
@@ -246,18 +251,29 @@ a:hover {
/* About Grid */ /* About Grid */
.about-grid { .about-grid {
display: grid; display: flex;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); flex-wrap: wrap;
gap: 3rem; gap: 3rem;
margin-top: 4rem; 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 Section */
.products-grid { .products-grid {
display: grid; display: flex;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); flex-wrap: wrap;
gap: 2.5rem; gap: 2.5rem;
margin-top: 3rem; margin-top: 3rem;
justify-content: center;
} }
.product-card { .product-card {
@@ -271,6 +287,8 @@ a:hover {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
text-align: center; text-align: center;
flex: 1 1 320px;
min-width: 320px;
} }
.product-card:hover { .product-card:hover {
@@ -353,6 +371,36 @@ a:hover {
background-color: #004080; 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 { .vienna-signet {
margin-top: 5rem; margin-top: 5rem;
font-size: 0.75rem; 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) { @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 { .container {
padding: 0 1.5rem; padding: 0 1.5rem;
} }
@@ -462,22 +531,31 @@ html {
.about-grid, .products-grid { .about-grid, .products-grid {
gap: 2rem; 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; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
width: 100%;
} }
.about-grid > div, .product-card { .about-grid > div, .product-card {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; 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 { .product-icon {