recreate pages and tweak fullname displays
This commit is contained in:
parent
3fc5512ea2
commit
ceb0c42812
5 changed files with 18 additions and 15 deletions
|
|
@ -7,6 +7,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
let { photo, titles, name, description }: Props = $props();
|
let { photo, titles, name, description }: Props = $props();
|
||||||
|
|
||||||
|
let [first, rest] = $derived([name.split(' ')[0], name.split(' ').slice(1).join(' ')]);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="hero bg-base-200">
|
<div class="hero bg-base-200">
|
||||||
|
|
@ -15,7 +17,7 @@
|
||||||
<div class="flex-0">
|
<div class="flex-0">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<div
|
<div
|
||||||
class="ring-offset-base-100 ring-base-100 w-56 rounded-full shadow-2xl ring-8 ring-offset-2 dark:shadow-none"
|
class="ring-offset-base-100 ring-base-100 dark:ring-primary w-56 rounded-full shadow-2xl ring-8 ring-offset-2 dark:shadow-none"
|
||||||
>
|
>
|
||||||
<img src={photo} alt="Its me!" />
|
<img src={photo} alt="Its me!" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -23,12 +25,15 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-1 flex-col">
|
<div class="flex flex-1 flex-col">
|
||||||
<p>{titles.join(', ')}</p>
|
<p>{titles.join(', ')}</p>
|
||||||
<h1 class="text-5xl font-bold">{name}</h1>
|
<h1 class="text-primary text-5xl font-light">
|
||||||
|
<span class="text-base-content font-semibold">{first}</span>
|
||||||
|
{rest}
|
||||||
|
</h1>
|
||||||
<p class="block py-6">
|
<p class="block py-6">
|
||||||
{description}
|
{description}
|
||||||
</p>
|
</p>
|
||||||
<div class="flex justify-end gap-4">
|
<div class="flex justify-end gap-4">
|
||||||
<a href="/portfolio" class="btn btn-outline btn-primary btn-wide">Portfolio</a>
|
<a href="/resume" class="btn btn-outline btn-primary btn-wide">Resume</a>
|
||||||
<a href="/contact" class="btn btn-primary btn-wide">Contact</a>
|
<a href="/contact" class="btn btn-primary btn-wide">Contact</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
interface Props {
|
interface Props {
|
||||||
|
title: string;
|
||||||
pages: { slug: string; name: string }[];
|
pages: { slug: string; name: string }[];
|
||||||
route: { id: string | null };
|
route: { id: string | null };
|
||||||
}
|
}
|
||||||
|
|
||||||
let { pages, route }: Props = $props();
|
let { title, pages, route }: Props = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav class="navbar px-12">
|
<nav class="navbar px-12">
|
||||||
|
|
@ -12,13 +13,16 @@
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<div class="avatar avatar-placeholder w-12">
|
<div class="avatar avatar-placeholder w-12">
|
||||||
<div
|
<div
|
||||||
class="ring-primary ring-offset-base-100 bg-base-200 text-base-content mx-auto w-10 rounded-full text-xl ring-2 ring-offset-2 transition-all ease-in hover:w-12 hover:text-2xl"
|
class="ring-primary ring-offset-base-100 bg-base-200 text-base-content mx-auto w-10 rounded-full ring-2 ring-offset-2 transition-all ease-in hover:w-12 hover:text-2xl"
|
||||||
>
|
>
|
||||||
<b>B</b>
|
<span class="text-2xl"> {title.at(0)} </span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<h2 class="text-3xl"><b>Benjamin</b> Palko</h2>
|
<h2 class="text-primary text-3xl font-light">
|
||||||
|
<span class="text-base-content font-semibold">Benjamin</span>
|
||||||
|
Palko
|
||||||
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-4 text-lg">
|
<div class="flex gap-4 text-lg">
|
||||||
{#each pages as page (page.slug)}
|
{#each pages as page (page.slug)}
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,9 @@
|
||||||
|
|
||||||
const pages = [
|
const pages = [
|
||||||
{ slug: '/about', name: 'About Me' },
|
{ slug: '/about', name: 'About Me' },
|
||||||
{ slug: '/portfolio', name: 'Portfolio' },
|
{ slug: '/resume', name: 'Resume' },
|
||||||
{ slug: '/blog', name: 'Blog' },
|
{ slug: '/blog', name: 'Blog' },
|
||||||
{ slug: '/projects', name: 'Projects' },
|
{ slug: '/projects', name: 'Projects' },
|
||||||
{ slug: '/experience', name: 'Experience' },
|
|
||||||
{ slug: '/contact', name: 'Contact' }
|
{ slug: '/contact', name: 'Contact' }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -25,7 +24,7 @@
|
||||||
|
|
||||||
<div class="h-screen w-screen p-12">
|
<div class="h-screen w-screen p-12">
|
||||||
<div class="bg-base-200 flex min-h-full flex-col rounded-4xl p-8">
|
<div class="bg-base-200 flex min-h-full flex-col rounded-4xl p-8">
|
||||||
<Navbar {pages} route={page.route} />
|
<Navbar title="Benjamin Palko" {pages} route={page.route} />
|
||||||
<div class="flex flex-1 items-stretch p-8">{@render children()}</div>
|
<div class="flex flex-1 items-stretch p-8">{@render children()}</div>
|
||||||
<div>
|
<div>
|
||||||
<Footer links={socialLinks} />
|
<Footer links={socialLinks} />
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<script>
|
|
||||||
import Wip from '$lib/components/WIP.svelte';
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<Wip />
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue