aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Profile.astro
blob: a23246371d90a90783e8b01a332988bcc8ae797f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
import UserProfileImage from "../assets/profile-pfp.jpg";
import dataList from "../data/user.json";
---

<header class="profile">
    <div class="profile-picture-content">
        <figure class="profile-picture">
            <img src={UserProfileImage.src} alt="This is me!" />
        </figure>
    </div>
    <div class="profile-data">
        <h1 class="profile-name">{dataList.name}</h1>
        <p class="profile-profession">{dataList.profession}</p>
    </div>
</header>

<style>
    .profile {
        margin-top: 0.5rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-picture-content {
        padding: 0.5rem;
        border-radius: 100%;
        border: 1px solid var(--zinc-800);
        background-color: var(--pink-lighter);
    }

    .profile-picture {
        width: 10rem;
        height: 10rem;
        border-radius: 75%;
        overflow: hidden;
    }

    .profile-picture img {
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .profile-data {
        margin-top: 1.125rem;
        text-align: center;
    }

    .profile-name {
        font-size: 2.125rem;
        font-weight: bold;
        color: var(--zinc-900);
    }

    .profile-profession {
        font-size: 1.2rem;
        color: var(--zinc-900);
    }
</style>
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage