diff options
| author | Alam Guardin <alamguardin@gmail.com> | 2024-08-05 22:17:34 -0500 |
|---|---|---|
| committer | Alam Guardin <alamguardin@gmail.com> | 2024-08-05 22:17:34 -0500 |
| commit | 6becb8cf09c02c93e0f5030957015ed4ea07789d (patch) | |
| tree | 9b45e3e7e42f1c0903c4c080df59bf729d7503ef /src/components/Profile.astro | |
| parent | 989c8d6e947c56f0241a169da02ba2558653a4b0 (diff) | |
style: basic styles and create profile component
Diffstat (limited to 'src/components/Profile.astro')
| -rw-r--r-- | src/components/Profile.astro | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/components/Profile.astro b/src/components/Profile.astro new file mode 100644 index 0000000..d174a9c --- /dev/null +++ b/src/components/Profile.astro @@ -0,0 +1,60 @@ +--- +import UserProfileImage from '../assets/user-profile-image.png' +--- + +<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">Kelly Bowlin</h1> + <p class="profile-profession">Web Designer</p> + </div> +</header> + +<style> + .profile { + margin-top: 6rem; + 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); + } + + .profile-picture { + width: 6rem; + height: 6rem; + border-radius: 100%; + border: 1px solid var(--zinc-800); + 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: 1.125rem; + font-weight: normal; + } + + .profile-profession { + font-size: 0.875rem; + color: var(--zinc-400); + } +</style>
\ No newline at end of file |
