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 | |
| parent | 989c8d6e947c56f0241a169da02ba2558653a4b0 (diff) | |
style: basic styles and create profile component
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Card.astro | 61 | ||||
| -rw-r--r-- | src/components/Profile.astro | 60 |
2 files changed, 60 insertions, 61 deletions
diff --git a/src/components/Card.astro b/src/components/Card.astro deleted file mode 100644 index bd6d597..0000000 --- a/src/components/Card.astro +++ /dev/null @@ -1,61 +0,0 @@ ---- -interface Props { - title: string; - body: string; - href: string; -} - -const { href, title, body } = Astro.props; ---- - -<li class="link-card"> - <a href={href}> - <h2> - {title} - <span>→</span> - </h2> - <p> - {body} - </p> - </a> -</li> -<style> - .link-card { - list-style: none; - display: flex; - padding: 1px; - background-color: #23262d; - background-image: none; - background-size: 400%; - border-radius: 7px; - background-position: 100%; - transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1); - box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); - } - .link-card > a { - width: 100%; - text-decoration: none; - line-height: 1.4; - padding: calc(1.5rem - 1px); - border-radius: 8px; - color: white; - background-color: #23262d; - opacity: 0.8; - } - h2 { - margin: 0; - font-size: 1.25rem; - transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1); - } - p { - margin-top: 0.5rem; - margin-bottom: 0; - } - .link-card:is(:hover, :focus-within) { - background-position: 0; - background-image: var(--accent-gradient); - } - .link-card:is(:hover, :focus-within) h2 { - color: rgb(var(--accent-light)); - } -</style> 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 |
