Skip to content

Commit 1e9b4cd

Browse files
committed
Refactor team section layout and improve responsiveness ✨
1 parent 217f14f commit 1e9b4cd

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

src/about.njk

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,17 @@ layout: base.njk
177177
<!-- Team Section -->
178178
<div class="min-h-screen bg-gray-50 py-16 mb-16">
179179
<div class="container mx-auto px-8">
180-
<!-- Section Header -->
181180
<div class="flex flex-col justify-start items-start gap-3.5 mb-16">
182181
<h1 class="text-4xl md:text-3xl lg:text-4xl font-bold text-black leading-tight">The Team</h1>
183182
</div>
184183

185-
<!-- Team Grid - 5 cols desktop, 2 cols mobile -->
186-
<div class="grid grid-cols-2 lg:grid-cols-5 gap-6 lg:gap-8">
184+
<!-- Team Grid -->
185+
<div class="grid grid-cols-2 lg:grid-cols-5 gap-4 lg:gap-8">
187186
{% for member in teamMembers %}
188-
<div class="team-card-3d">
189-
<div class="team-card-content w-48 inline-flex flex-col justify-start items-start">
187+
<div class="team-card-3d w-full">
188+
<div class="team-card-content w-full flex flex-col justify-start items-start">
190189
<!-- Image Container -->
191-
<div class="w-48 h-[147px] bg-[#8385f2] overflow-hidden relative">
190+
<div class="w-full h-32 sm:h-36 lg:h-[147px] bg-[#8385f2] overflow-hidden relative">
192191
{% if member.imagelink %}
193192
<img src="{{ member.imagelink }}"
194193
alt="{{ member.name }}"
@@ -197,65 +196,64 @@ layout: base.njk
197196
onerror="this.style.display='none'">
198197
{% endif %}
199198
</div>
200-
201-
<!-- Info Container -->
202-
<div class="self-stretch flex flex-col justify-start items-start gap-3 pt-3">
199+
200+
<div class="w-full flex flex-col justify-start items-start gap-2 lg:gap-3 pt-3">
203201
<!-- Name -->
204-
<div class="self-stretch justify-start text-black text-2xl font-normal acid-grotesk leading-7">
202+
<div class="w-full text-black text-sm sm:text-base lg:text-2xl font-normal acid-grotesk leading-tight lg:leading-7">
205203
{{ member.name }}
206204
</div>
207205

208206
<!-- Role -->
209-
<div class="self-stretch justify-start text-slate-400 text-base font-normal acid-grotesk leading-7">
207+
<div class="w-full text-slate-400 text-xs sm:text-sm lg:text-base font-normal acid-grotesk leading-tight lg:leading-7">
210208
{{ member.role }}
211209
</div>
212210

213211
<!-- Social Icons -->
214-
<div class="h-6 inline-flex justify-start items-start gap-4">
212+
<div class="w-full flex justify-start items-center gap-2 lg:gap-4 flex-wrap">
215213
{% if member.socials.insta %}
216214
<a href="{{ member.socials.insta }}" target="_blank" rel="noopener noreferrer"
217-
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center">
218-
<svg class="w-4 h-4 text-slate-400" fill="currentColor" viewBox="0 0 24 24">
215+
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center flex-shrink-0">
216+
<svg class="w-3 h-3 lg:w-4 lg:h-4 text-slate-400" fill="currentColor" viewBox="0 0 24 24">
219217
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
220218
</svg>
221219
</a>
222220
{% endif %}
223221

224222
{% if member.socials.linkedin %}
225223
<a href="{{ member.socials.linkedin }}" target="_blank" rel="noopener noreferrer"
226-
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center">
227-
<svg class="w-4 h-4 text-slate-400" fill="currentColor" viewBox="0 0 24 24">
224+
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center flex-shrink-0">
225+
<svg class="w-3 h-3 lg:w-4 lg:h-4 text-slate-400" fill="currentColor" viewBox="0 0 24 24">
228226
<path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/>
229227
</svg>
230228
</a>
231229
{% endif %}
232230

233231
{% if member.socials.web %}
234232
<a href="{{ member.socials.web }}" target="_blank" rel="noopener noreferrer"
235-
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center">
236-
<svg class="w-4 h-4 text-slate-400" fill="currentColor" viewBox="0 0 24 24">
233+
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center flex-shrink-0">
234+
<svg class="w-3 h-3 lg:w-4 lg:h-4 text-slate-400" fill="currentColor" viewBox="0 0 24 24">
237235
<path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm1 16.057v-3.057h2.994c-.059 1.143-.212 2.24-.456 3.279-.823-.12-1.674-.188-2.538-.222zm1.957 2.162c-.499 1.33-1.159 2.497-1.957 3.456v-3.62c.666.028 1.319.081 1.957.164zm-1.957-7.219v-3.015c.868-.034 1.721-.103 2.548-.224.238 1.027.389 2.111.446 3.239h-2.994zm0-5.014v-3.661c.806.969 1.471 2.15 1.971 3.496-.642.084-1.3.137-1.971.165zm2.703-3.267c1.237.496 2.354 1.228 3.29 2.146-.642.234-1.311.442-2.019.607-.344-.992-.775-1.91-1.271-2.753zm-7.241 13.56c-.244-1.039-.398-2.136-.456-3.279h2.994v3.057c-.865.034-1.714.102-2.538.222zm2.538 1.776v3.62c-.798-.959-1.458-2.126-1.957-3.456.638-.083 1.291-.136 1.957-.164zm-2.994-7.055c.057-1.128.207-2.212.446-3.239.827.121 1.68.19 2.548.224v3.015h-2.994zm1.024-5.179c.5-1.346 1.165-2.527 1.97-3.496v3.661c-.671-.028-1.329-.081-1.97-.165zm-2.005-.35c-.708-.165-1.377-.373-2.018-.607.937-.918 2.053-1.65 3.29-2.146-.496.844-.927 1.762-1.272 2.753zm-.549 1.918c-.264 1.151-.434 2.36-.492 3.611h-3.933c.165-1.658.739-3.197 1.617-4.518.88.361 1.816.67 2.808.907zm.009 9.262c-.988.236-1.92.542-2.797.9-.89-1.328-1.471-2.879-1.637-4.551h3.934c.058 1.265.231 2.488.5 3.651zm.553 1.917c.342.976.768 1.881 1.257 2.712-1.223-.49-2.326-1.211-3.256-2.115.636-.229 1.299-.435 1.999-.597zm9.924 0c.7.163 1.362.367 1.999.597-.931.903-2.034 1.625-3.257 2.116.489-.832.915-1.737 1.258-2.713zm.553-1.917c.27-1.163.442-2.386.501-3.651h3.934c-.167 1.672-.748 3.223-1.638 4.551-.877-.358-1.81-.664-2.797-.9zm.501-5.651c-.058-1.251-.229-2.46-.492-3.611.992-.237 1.929-.546 2.809-.907.877 1.321 1.451 2.86 1.616 4.518h-3.933z"/>
238236
</svg>
239237
</a>
240238
{% endif %}
241239

242240
{% if member.socials.github %}
243241
<a href="{{ member.socials.github }}" target="_blank" rel="noopener noreferrer"
244-
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center">
245-
<svg class="w-4 h-4 text-slate-400" fill="currentColor" viewBox="0 0 24 24">
242+
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center flex-shrink-0">
243+
<svg class="w-3 h-3 lg:w-4 lg:h-4 text-slate-400" fill="currentColor" viewBox="0 0 24 24">
246244
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
247245
</svg>
248246
</a>
249247
{% endif %}
250248

251-
{% if member.socials.twitter %}
252-
<a href="{{ member.socials.twitter }}" target="_blank" rel="noopener noreferrer"
253-
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center">
254-
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
255-
<path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/>
256-
</svg>
257-
</a>
258-
{% endif %}
249+
{% if member.socials.twitter %}
250+
<a href="{{ member.socials.twitter }}" target="_blank" rel="noopener noreferrer"
251+
class="social-icon-3d p-1 rounded-full border border-slate-400 flex justify-center items-center flex-shrink-0">
252+
<svg class="w-3 h-3 lg:w-4 lg:h-4" fill="currentColor" viewBox="0 0 48 48">
253+
<path d="M36.6526 3.80782H43.3995L28.6594 20.6548L46 43.5798H32.4225L21.7881 29.6759L9.61989 43.5798H2.86886L18.6349 25.56L2 3.80782H15.9222L25.5348 16.5165L36.6526 3.80782ZM34.2846 39.5414H38.0232L13.8908 7.63408H9.87892L34.2846 39.5414Z" />
254+
</svg>
255+
</a>
256+
{% endif %}
259257
</div>
260258
</div>
261259
</div>

0 commit comments

Comments
 (0)