mirror of
https://github.com/djkotowski/personal-website.git
synced 2026-09-13 14:00:39 -05:00
Add Hero element / header to app
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
<script>
|
||||
let count = 0
|
||||
const increment = () => {
|
||||
count += 1
|
||||
}
|
||||
</script>
|
||||
|
||||
<button on:click={increment}>
|
||||
count is {count}
|
||||
</button>
|
||||
@@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
export let title: string;
|
||||
export let text: string;
|
||||
export let imageUrl: string;
|
||||
export let imageAlt: string;
|
||||
</script>
|
||||
|
||||
<div class="px-6 py-1 pb-10 sm:py-32 lg:px-8">
|
||||
<div class="mx-auto max-w-2xl text-center">
|
||||
<img class="mx-auto mb-6 w-32 h-32 lg:w-48 lg:h-48 rounded-full" src={imageUrl} alt={imageAlt} />
|
||||
<h2 class="text-4xl lg:text-6xl font-bold tracking-tight text-gray-100 sm:text-6x1">{title}</h2>
|
||||
<p class="mt-6 text-lg lg:text-xl leading-8 text-gray-300">{text}</p>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user