Skip to content

Commit

Permalink
responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
peucastro committed Nov 26, 2024
1 parent c479ac4 commit b1ec9b6
Showing 1 changed file with 32 additions and 25 deletions.
57 changes: 32 additions & 25 deletions src/routes/(app)/user/[id]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,44 +1,51 @@
<script lang="ts">
import Icon from '../../../../lib/components/icons/icon.svelte';
import Icons from '../../../../lib/components/icons/icons';
import Icon from '@/lib/components/icons/icon.svelte';
import Icons from '@/lib/components/icons/icons';
</script>

<section>
<div class="flex w-full justify-center">
<div class="w-1/2 content-center">
<div class="flex h-10 justify-end">
<div class="rounded-md bg-muted-red-500 p-2">
<a href="google.com">
<div class="flex w-full justify-center px-4 sm:px-6 lg:px-8">
<div class="w-full content-center sm:w-4/5 md:w-2/3 lg:w-1/2 xl:w-1/2">
<div class="flex h-12 justify-end">
<div class="rounded-md bg-muted-red-500 p-3">
<a href="https://www.lipsum.com/">
<Icon src={Icons.Pencil} color="white" size="100%" />
</a>
</div>
</div>
<div class="flex">
<img src="/images/default_profile_pic.png" alt="User pic" class="size-48 rounded-lg" />
<div class="mx-8 flex flex-grow flex-col" style="margin-x: 2em;">
<div class="flex gap-x-3" style="margin-bottom: 1em;">
<h3 class="text-3xl font-bold">Vasco Guedes</h3>
<div class="rounded-2xl bg-green-200/20 p-2">
<div class="flex content-center justify-center gap-x-1">
<div class="h-3 w-3 self-center rounded-full bg-green-200" />
<p class="self-center font-semibold">Membro ativo</p>
</div>
<div class="flex flex-col items-center gap-6 sm:flex-row sm:items-start">
<img
src="/images/default_profile_pic.png"
alt="User pic"
class="h-32 w-32 rounded-lg sm:h-52 sm:w-52"
/>
<div class="flex flex-grow flex-col">
<div class="mb-5 flex flex-col items-center gap-3 sm:flex-row sm:gap-6">
<h3 class="text-2xl font-bold lg:text-lg xl:text-xl 2xl:text-2xl">Vasco Guedes</h3>
<div class="flex items-center rounded-2xl bg-green-200/20 px-5 py-2">
<div class="mr-2 h-4 w-4 rounded-full bg-green-200"></div>
<p class="text-sm font-semibold sm:text-base">Membro ativo</p>
</div>
</div>
<p style="margin-bottom: 1em;">No meu tempo livre gosto de blabalbaba</p>
<div class="flex gap-2" id="socials">
<div class="h-12 rounded-md bg-white/20 p-3">
<a href="google.com">
<p
class="text-md lg:text-md mb-6 text-center sm:text-left sm:text-base xl:text-lg 2xl:text-xl"
>
No meu tempo livre gosto de perseguir arco-íris, porque alguém tem que encontrar o pote
de ouro, certo?
</p>
<div class="flex justify-center gap-3 sm:justify-start">
<div class="h-12 w-12 rounded-md bg-white/20 p-3 sm:h-14 sm:w-14 sm:p-4">
<a href="https://www.lipsum.com/">
<Icon src={Icons.Linkedin} color="white" size="100%" />
</a>
</div>
<div class="h-12 rounded-md bg-white/20 p-3">
<a href="google.com">
<div class="h-12 w-12 rounded-md bg-white/20 p-3 sm:h-14 sm:w-14 sm:p-4">
<a href="https://www.lipsum.com/">
<Icon src={Icons.Linkedin} color="white" size="100%" />
</a>
</div>
<div class="h-12 rounded-md bg-white/20 p-3">
<a href="google.com">
<div class="h-12 w-12 rounded-md bg-white/20 p-3 sm:h-14 sm:w-14 sm:p-4">
<a href="https://www.lipsum.com/">
<Icon src={Icons.Linkedin} color="white" size="100%" />
</a>
</div>
Expand Down

0 comments on commit b1ec9b6

Please sign in to comment.