Skip to content

Commit f99a447

Browse files
committed
Changes to how the site looks on mobile
1 parent 45eaf88 commit f99a447

3 files changed

Lines changed: 19 additions & 10 deletions

File tree

src/app.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@
111111
--color-sidebar-ring: var(--sidebar-ring);
112112

113113
/*Custom*/
114+
--font-sans: 'Montserrat', sans-serif;
115+
--font-montserrat: 'Montserrat', sans-serif;
114116
--font-mono: 'JetBrains Mono', monospace;
115117
--font-philosopher: 'Philosopher', sans-serif;
116118
}

src/lib/components/custom/hero.svelte

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import { Linkedin, Github } from 'lucide-svelte';
44
import Routes from '$lib/contents/routes.json';
55
import { resolve } from '$app/paths';
6-
export let subtitle: string;
6+
7+
let { subtitle }: { subtitle: string } = $props();
78
</script>
89

910
<svelte:head>
@@ -18,16 +19,22 @@
1819
<img
1920
src="headshot.webp"
2021
alt="Ruán Murgatroyd"
21-
class="xs:w-2/3 aspect-square rounded-full p-10 sm:w-1/2 md:w-3/12"
22+
class="aspect-square w-3/4 rounded-full p-10 sm:w-1/2 md:w-3/12"
2223
/>
2324
<div class="items-left flex flex-col">
24-
<h1 class="pl-0 text-center text-4xl font-bold md:pl-10 md:text-left md:text-6xl">
25+
<h1 class="pl-0 text-center text-4xl font-black md:pl-10 md:text-left md:text-6xl">
2526
Ruán Murgatroyd
2627
</h1>
27-
<div class="subtitle-container pl-0 md:pl-10" style="height: 4rem">
28-
<h2 class="text-center text-2xl font-medium md:text-left md:text-4xl">{subtitle}</h2>
28+
<div class="subtitle-container pl-0 md:pl-10">
29+
<h2 class="text-center text-2xl font-light md:text-left md:text-4xl md:font-thin">
30+
{subtitle}
31+
</h2>
2932
<span class="flex flex-row items-center justify-center md:justify-start">
30-
<Button href="https://github.com/rjmurg" target="_blank" class="mt-5 mr-5">
33+
<Button
34+
href="https://github.com/rjmurg"
35+
target="_blank"
36+
class="mt-5 mr-5 bg-red-500 font-bold text-white hover:bg-red-300"
37+
>
3138
<Github class="mr-2 h-4 w-4" />
3239
GitHub
3340
</Button>
@@ -37,17 +44,17 @@
3744
variant="outline"
3845
class="mt-5"
3946
>
40-
<Linkedin class="mr-2 h-4 w-4" />
47+
<Linkedin class="mr-2 h-4 w-4 font-bold" />
4148
LinkedIn
4249
</Button>
4350
</span>
4451
</div>
4552
</div>
4653
</div>
4754

48-
<h2 class="xs:text-3xl pt-10 text-center text-6xl">Find out more about</h2>
55+
<h2 class="pt-10 text-center text-3xl md:mb-4 md:text-4xl">Find out more about</h2>
4956
<div
50-
class="flex w-screen flex-row items-center justify-center p-2 text-center text-4xl text-gray-400 md:flex-row"
57+
class="items-between flex w-screen flex-col justify-center p-2 text-center text-4xl text-gray-400 md:flex-row md:items-center"
5158
>
5259
{#each Routes.routes as route (route.name)}
5360
{#if route.name !== 'Home'}

src/routes/brand/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</div>
2929
</div>
3030

31-
<div class="font-montserrat h-screen w-screen border-b-4 border-neutral-900">
31+
<div class="h-screen w-screen border-b-4 border-neutral-900 font-montserrat">
3232
<div class="m-5 flex h-full flex-col items-start justify-end">
3333
<h1 class="mb-10 h-1/2 text-6xl font-bold">Montserrat</h1>
3434

0 commit comments

Comments
 (0)