created ImageSubtitle element; added content to blog post 1
This commit is contained in:
21
src/lib/image-subtitle.svelte
Normal file
21
src/lib/image-subtitle.svelte
Normal file
@@ -0,0 +1,21 @@
|
||||
<script lang="ts">
|
||||
let {
|
||||
content
|
||||
}: {
|
||||
content: string;
|
||||
} = $props();
|
||||
</script>
|
||||
|
||||
<span class="image-subtitle">{content}</span>
|
||||
|
||||
<style>
|
||||
.image-subtitle::before {
|
||||
content: "↳ ";
|
||||
}
|
||||
.image-subtitle {
|
||||
display: block;
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
font-size: 1rem;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user