Skip to content

Commit

Permalink
Homepage layout and styling improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jackreimers committed Jan 17, 2024
1 parent 0f2f03c commit 4ee421f
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 35 deletions.
34 changes: 27 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.4.2",
"vite-plugin-mkcert": "^1.16.0"
},
"type": "module",
"dependencies": {
"vite-plugin-mkcert": "^1.16.0",
"lucide-svelte": "^0.311.0"
}
},
"type": "module"
}
4 changes: 2 additions & 2 deletions src/lib/components/layout/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<div class="flex-1"></div>
<div class="flex items-center gap-0.5 sm:gap-1 md:gap-2 lg:gap-4">
<Button href="/" classes="p-2 hover:bg-gray-100">
<Home size="30" strokeWidth="3" />
<Home strokeWidth="3" />
</Button>
<!--
<Button onClick={() => {}}>
Expand All @@ -44,7 +44,7 @@
-->
<Button onClick={() => {}} classes="p-2 hover:bg-gray-100">
<div class="text-gb">
<Menu size="30" strokeWidth="3" />
<Menu strokeWidth="3" />
</div>
</Button>
</div>
Expand Down
65 changes: 44 additions & 21 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,54 @@
<title>Jack Reimers</title>
</svelte:head>

<div class="mb-14 flex flex-col gap-2 leading-normal sm:mb-20 sm:gap-3">
<!-- 2xl -->
<p class="text-sm text-gray-500 sm:text-base md:text-2xl">Hi, my name is</p>
<!-- 7xl -->
<h1 class="text-gb text-5xl font-semibold md:text-6xl lg:text-7xl">Jack Reimers</h1>
<!-- 4xl -->
<p class="text-2xl font-medium md:text-3xl lg:text-4xl">
I'm a full-stack Software Engineer at
<Button
href="https://ssw.com.au"
target="_blank"
classes="whitespace-nowrap bg-gradient-to-b from-red-500 to-red-900 bg-clip-text font-bold text-transparent"
>
SSW Consulting
</Button>
</p>
<!-- 1xl -->
<p class="max-w-prose text-sm text-gray-500 sm:text-base">
<div class="mb-8 flex flex-col gap-2 leading-normal">
<p class="text-sm text-gray-500 md:text-base">Hi, my name is</p>
<h1
class="bg-gradient-to-r from-blue-600 to-blue-800 bg-clip-text text-4xl font-bold text-transparent sm:text-5xl md:text-6xl lg:text-7xl"
>
Jack Reimers
</h1>
<p class="mb-4 font-medium md:text-2xl">I'm a full-stack Software Engineer.</p>
<p class="max-w-prose">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.
</p>
</div>
<div class="grid w-full max-w-2xl gap-4 sm:grid-cols-3">
<!-- TODO: Put these cards into components -->
<div class="flex flex-col gap-4">
<Button href="blog">
<div class="w-full rounded-[4px] bg-gradient-to-r from-blue-600 to-blue-800 p-0.5">
<div class="h-full w-full rounded-[2px] bg-white">
<span class="flex flex-col px-3.5 py-2.5">
<span class="font-semibold">Blog</span>
<span class="text-sm text-gray-500">Read my latest posts.</span>
</span>
</div>
</div>
</Button>
<Button href="projects">
<div class="w-full rounded-[4px] bg-gradient-to-r from-blue-600 to-blue-800 p-0.5">
<div class="h-full w-full rounded-[2px] bg-white">
<span class="flex flex-col px-3.5 py-2.5">
<span class="font-semibold">Projects</span>
<span class="text-sm text-gray-500">View projects I've worked on.</span>
</span>
</div>
</div>
</Button>
<Button href="about">
<div class="w-full rounded-[4px] bg-gradient-to-r from-blue-600 to-blue-800 p-0.5">
<div class="h-full w-full rounded-[2px] bg-white">
<span class="flex flex-col px-3.5 py-2.5">
<span class="font-semibold">About</span>
<span class="text-sm text-gray-500">Learn more about me.</span>
</span>
</div>
</div>
</Button>
</div>

<!--
<div class="grid w-full">
<Button
href="blog"
classes="flex w-full flex-col overflow-hidden rounded border border-gray-200"
Expand Down Expand Up @@ -72,7 +96,6 @@
</Button>
</div>
<!--
<Button href="blog">Go to blog</Button>
<Button href="blog/test">Go to blog post</Button>
-->

0 comments on commit 4ee421f

Please sign in to comment.