Skip to content

Commit 0dca0ec

Browse files
committed
Fix page about
1 parent 84844fb commit 0dca0ec

1 file changed

Lines changed: 40 additions & 68 deletions

File tree

src/routes/about/+page.svelte

Lines changed: 40 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import aboutImg from '$lib/assets/images/about.svg'
44
</script>
55

6-
<div class="about-container">
7-
<div class="about-content">
8-
<h2 class="page-title"><span>{$_('about.title')}</span></h2>
9-
10-
<div class="content-grid">
6+
<div class="page-wrapper">
7+
<div class="grid-container">
8+
<div class="grid-item header">
9+
<h2><span>{$_('about.title')}</span></h2>
1110
<div class="text-content">
1211
<h3>{$_('about.subtitle1')}</h3>
1312
<p>
@@ -22,70 +21,54 @@
2221
{$_('about.subpar3')}
2322
</p>
2423
</div>
25-
26-
<div class="image-content">
27-
<img
28-
src={aboutImg}
29-
alt="about"
30-
class="invert"
31-
/>
32-
33-
</div>
24+
</div>
25+
<div class="grid-item content-box">
26+
<img
27+
src={aboutImg}
28+
alt="about"
29+
class="invert"
30+
/>
3431
<div id="team">
35-
<h3>{$_('about.team.header')}</h3>
36-
<p>
37-
{@html $_('about.team.par')}
38-
</p>
32+
<h3>{$_('about.team.header')}</h3>
33+
<p>
34+
{@html $_('about.team.par')}
35+
</p>
3936
</div>
4037
</div>
4138
</div>
4239
</div>
4340

4441
<style lang="scss">
45-
.image-content{
46-
display: flex;
47-
justify-content: center
48-
}
49-
50-
img {
51-
width: 100%;
52-
}
53-
.about-container {
42+
.page-wrapper {
43+
height: 100%;
5444
display: flex;
45+
align-items: center;
5546
justify-content: center;
56-
align-items: flex-start;
57-
width: 100%;
58-
height: calc(100vh - 52px - 0.5rem - 1rem);
59-
overflow-y: auto;
60-
padding: 2rem 1rem;
61-
}
62-
63-
.about-content {
64-
max-width: 1100px;
65-
width: 100%;
6647
}
6748
68-
.page-title {
69-
text-align: center;
70-
margin-bottom: 2rem;
49+
.grid-item {
50+
height: 100%;
51+
display: flex;
52+
flex-direction: column;
7153
}
7254
73-
.content-grid {
55+
.grid-container {
7456
display: grid;
75-
grid-template-columns: 1fr 1fr;
76-
gap: 4rem;
57+
grid-template-columns: repeat(2, minmax(0, 550px));
58+
height: auto;
7759
align-items: start;
60+
overflow-y: auto;
7861
}
7962
80-
.text-content {
81-
text-align: left;
63+
img {
64+
width: 90%;
65+
margin-bottom: 1rem;
66+
}
8267
68+
.text-content {
8369
h3 {
8470
margin-top: 1.5rem;
8571
margin-bottom: 0.5rem;
86-
font-size: 1.1rem;
87-
font-weight: 700;
88-
color: var(--pg-text);
8972
}
9073
9174
h3:first-child {
@@ -99,19 +82,17 @@
9982
}
10083
}
10184
102-
.image-content {
103-
text-align: left;
104-
105-
img {
106-
max-width: 100%;
107-
height: auto;
108-
}
85+
.content-box {
86+
height: 100%;
87+
display: flex;
88+
flex-direction: column;
89+
justify-content: space-evenly;
10990
}
11091
11192
#team {
112-
border: 1px dashed var(--pg-text);
113-
border-radius: 16px;
114-
padding: 1.5rem 2rem;
93+
border: 1px dashed black;
94+
border-radius: 8px;
95+
padding: 20px;
11596
11697
h3 {
11798
margin-top: 0;
@@ -126,17 +107,8 @@
126107
}
127108
128109
@media only screen and (max-width: 800px) {
129-
.about-container {
130-
padding: 1rem 0.5rem;
131-
}
132-
133-
.about-content {
134-
width: 96%;
135-
}
136-
137-
.content-grid {
110+
.grid-container {
138111
grid-template-columns: 1fr;
139-
gap: 2rem;
140112
}
141113
}
142114
</style>

0 commit comments

Comments
 (0)