Files
continuwuity/packages/website/src/lib/Hero.svelte
T

70 lines
1.6 KiB
Svelte
Raw Normal View History

2024-02-19 13:14:55 +00:00
<script lang="ts">
import url from "./logo.svg?url";
2024-07-23 19:45:51 +01:00
import { SITE_URL } from "$lib/metadata";
2024-02-19 13:14:55 +00:00
</script>
2024-07-23 19:45:51 +01:00
<div class="hero card edge h-card">
2024-02-19 13:14:55 +00:00
<div class="logo">
2024-07-23 19:45:51 +01:00
<a href={SITE_URL} class="u-url"><img class="u-photo" src={url} alt="Logo" /></a>
2024-02-19 13:14:55 +00:00
</div>
<div class="content">
2024-07-23 19:45:51 +01:00
<div>
<h1 class="title p-name"><span class="p-given-name">Jade</span> <span class="p-family-name">Ellis</span></h1>
<div role="doc-subtitle"><span class="p-nickname">JadedBlueEyes</span></div></div>
<div class="description p-note">Student, Computer Scientist and Creative</div>
2024-02-19 13:14:55 +00:00
</div>
</div>
2024-02-14 12:52:52 +00:00
<style>
.hero {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
gap: var(--spacing);
margin: 48px auto;
max-width: 320px;
2024-05-03 15:45:47 +01:00
padding: 3rem .5rem;
2024-02-14 12:52:52 +00:00
}
.logo {
width: 160px;
height: 160px;
flex-shrink: 0;
}
.content {
display: flex;
2024-02-19 13:14:55 +00:00
flex-direction: column;
gap: calc(var(--spacing) / 2);
2024-02-14 12:52:52 +00:00
}
.title {
text-align: center;
font-size: 32px;
margin: 0;
}
2024-07-23 19:45:51 +01:00
[role="doc-subtitle"] {
padding-block-start: 0;
font-size: 18px;
font-weight: 600;
}
2024-02-14 12:52:52 +00:00
.description {
text-align: center;
}
@media screen and (min-width: 540px) {
.hero {
flex-direction: row;
margin: 96px auto;
max-width: 520px;
}
2024-02-19 13:14:55 +00:00
.title,
2024-07-24 01:34:16 +00:00
[role="doc-subtitle"],
2024-02-19 13:14:55 +00:00
.description {
2024-02-14 12:52:52 +00:00
text-align: left;
}
}
</style>