|
3 | 3 | import aboutImg from '$lib/assets/images/about.svg' |
4 | 4 | </script> |
5 | 5 |
|
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> |
11 | 10 | <div class="text-content"> |
12 | 11 | <h3>{$_('about.subtitle1')}</h3> |
13 | 12 | <p> |
|
22 | 21 | {$_('about.subpar3')} |
23 | 22 | </p> |
24 | 23 | </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 | + /> |
34 | 31 | <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> |
39 | 36 | </div> |
40 | 37 | </div> |
41 | 38 | </div> |
42 | 39 | </div> |
43 | 40 |
|
44 | 41 | <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%; |
54 | 44 | display: flex; |
| 45 | + align-items: center; |
55 | 46 | 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%; |
66 | 47 | } |
67 | 48 |
|
68 | | - .page-title { |
69 | | - text-align: center; |
70 | | - margin-bottom: 2rem; |
| 49 | + .grid-item { |
| 50 | + height: 100%; |
| 51 | + display: flex; |
| 52 | + flex-direction: column; |
71 | 53 | } |
72 | 54 |
|
73 | | - .content-grid { |
| 55 | + .grid-container { |
74 | 56 | display: grid; |
75 | | - grid-template-columns: 1fr 1fr; |
76 | | - gap: 4rem; |
| 57 | + grid-template-columns: repeat(2, minmax(0, 550px)); |
| 58 | + height: auto; |
77 | 59 | align-items: start; |
| 60 | + overflow-y: auto; |
78 | 61 | } |
79 | 62 |
|
80 | | - .text-content { |
81 | | - text-align: left; |
| 63 | + img { |
| 64 | + width: 90%; |
| 65 | + margin-bottom: 1rem; |
| 66 | + } |
82 | 67 |
|
| 68 | + .text-content { |
83 | 69 | h3 { |
84 | 70 | margin-top: 1.5rem; |
85 | 71 | margin-bottom: 0.5rem; |
86 | | - font-size: 1.1rem; |
87 | | - font-weight: 700; |
88 | | - color: var(--pg-text); |
89 | 72 | } |
90 | 73 |
|
91 | 74 | h3:first-child { |
|
99 | 82 | } |
100 | 83 | } |
101 | 84 |
|
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; |
109 | 90 | } |
110 | 91 |
|
111 | 92 | #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; |
115 | 96 |
|
116 | 97 | h3 { |
117 | 98 | margin-top: 0; |
|
126 | 107 | } |
127 | 108 |
|
128 | 109 | @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 { |
138 | 111 | grid-template-columns: 1fr; |
139 | | - gap: 2rem; |
140 | 112 | } |
141 | 113 | } |
142 | 114 | </style> |
0 commit comments