personal-website-sveltekit/src/lib/components/logo/index.svelte

83 lines
1.5 KiB
Svelte
Raw Normal View History

2023-01-30 07:48:55 +00:00
<script lang="ts">
import beeIcon from '$lib/assets/images/bee.svg';
import nutIcon from '$lib/assets/images/hazelnut.svg';
import shellIcon from '$lib/assets/images/shell.svg';
const bee: string = beeIcon;
const shell: string = shellIcon;
const nut: string = nutIcon;
2023-01-30 07:48:55 +00:00
</script>
<div>
<a href="/" class="center">
2025-08-22 22:51:15 +00:00
<img src={bee} alt="Bee Icon" width="30" height="30" />
2023-01-30 07:48:55 +00:00
<p>Bradley</p>
</a>
<a href="/" class="center">
2025-08-22 22:51:15 +00:00
<img src={shell} alt="Shell Icon" width="30" height="30" />
2023-01-30 07:48:55 +00:00
<p>Shell</p>
</a>
<a href="/" class="center">
2025-08-22 22:51:15 +00:00
<img src={nut} alt="Nut Icon" width="30" height="30" />
2023-01-30 07:48:55 +00:00
<p>Nut</p>
</a>
</div>
<style lang="postcss">
div {
text-transform: uppercase;
display: grid;
grid-template-columns: repeat(3, auto);
justify-content: center;
align-items: center;
grid-gap: 1rem;
padding: 0rem;
font-size: 2rem;
--scale: 0;
& p::after {
2025-08-22 22:51:15 +00:00
content: "";
2023-01-30 07:48:55 +00:00
position: absolute;
width: 100%;
height: 2px;
bottom: -0.5px;
left: 0px;
background: var(--linkHover);
transition: transform 0.3s ease 0s;
transform: scale(var(--scale));
}
& a {
2023-01-30 07:48:55 +00:00
display: grid;
justify-items: center;
text-decoration: none;
font-weight: bold;
margin-right: 0;
padding: 0;
padding-right: 0.3rem;
&:hover {
--scale: 1;
}
& p {
2023-01-30 07:48:55 +00:00
position: relative;
font-size: 0.5em;
/* padding-top: 0.3rem; */
margin: 0.5rem 0 0 0;
&:hover {
--scale: 1;
}
&:after {
transform: scale(var(--scale));
}
}
& img {
2023-01-30 07:48:55 +00:00
width: 3rem;
}
}
}
2025-08-22 22:51:15 +00:00
</style>