Skip to content

Commit 430714c

Browse files
committed
Update styling
1 parent f52b92b commit 430714c

6 files changed

Lines changed: 19 additions & 15 deletions

File tree

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Contact from './components/Contact.vue';
1010

1111
<template>
1212
<Header />
13-
<main class="mt-24 w-full">
13+
<main class="mt-16 w-full">
1414
<Section id="home" v-slot="slotProps">
1515
<Hero :class="slotProps.class" />
1616
</Section>
@@ -24,7 +24,7 @@ import Contact from './components/Contact.vue';
2424
<Contact :class="slotProps.class" />
2525
</Section>
2626
</main>
27-
<Footer class="mt-8" />
27+
<Footer />
2828
</template>
2929

3030
<style scoped>

src/components/Header.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ function toggleNavBar() {
1717
</script>
1818

1919
<template>
20-
<div class="z-20 fixed top-0 w-full text-white bg-slate-900/40 shadow">
20+
<div class="z-20 fixed top-0 w-full text-white bg-slate-900/60 shadow">
2121
<div class="h-16 flex flex-col max-w-screen-xl px-4 mx-auto md:items-center md:justify-between md:flex-row md:px-6 lg:px-8">
2222
<div class="flex flex-row items-center justify-between h-full">
2323
<a href="#home">
2424
<AppBrand class="h-10" />
2525
</a>
26-
<button class="rounded hover:bg-primary-100 hover:text-primary p-2 md:hidden focus:outline-none focus:shadow-outline" @click="toggleNavBar">
26+
<button class="rounded hover:bg-primary-300 hover:text-primary-950 p-2 md:hidden focus:outline-none focus:shadow-outline" @click="toggleNavBar">
2727
<i v-show="!isOpen" class="fa-solid fa-fw fa-bars"></i>
2828
<i v-show="isOpen" class="fa-solid fa-fw fa-times"></i>
2929
</button>
3030
</div>
3131
<nav class="h-full flex-col flex-grow hidden pb-4 md:ml-8 md:pb-0 md:flex md:items-center md:justify-end md:flex-row gap-4">
32-
<NavLink v-for="link in links" :label="link.label" :url="link.url" class="h-full flex items-center px-2 hover:bg-primary-100 font-bold" />
32+
<NavLink v-for="link in links" :label="link.label" :url="link.url" class="h-full flex items-center px-2" />
3333
<SocialIcons class="text-primary-300 text-2xl" />
3434
</nav>
3535
</div>
3636
</div>
3737
<!-- mobile menu -->
3838
<nav class="z-10 fixed top-16 md:hidden w-full shadow">
39-
<div class="absolute z-30 flex flex-col items-center justify-center w-full py-4 gap-2 text-center bg-slate-700/70"
39+
<div class="absolute z-30 flex flex-col items-center justify-center w-full py-4 gap-2 text-center bg-slate-700/80"
4040
:class="{ block: isOpen, hidden: !isOpen }">
41-
<NavLink v-for="link in links" :label="link.label" :url="link.url" @click="toggleNavBar" class="w-full py-1 hover:bg-primary-100 font-bold text-lg" />
41+
<NavLink v-for="link in links" :label="link.label" :url="link.url" @click="toggleNavBar" class="w-full py-1 text-lg" />
4242
<SocialIcons class="mx-auto text-primary-300 text-xl" />
4343
</div>
4444
</nav>

src/components/Hero.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
</script>
44

55
<template>
6-
<div class="space-y-20">
7-
<div class="text-6xl leading-[1.2] font-bold uppercase text-center text-white px-2 relative">
8-
<span class="text-primary-500 bg-slate-900/80 px-4">Experiences</span> that are unbounded from <span class="invisible px-10">reality</span>.
9-
<div class="drop-shadow-md absolute text-center right-[20%] sm:right-28 md:right-14 lg:right-28 bottom-1 text-primary-400 font-extrabold animate-font-cycle">reality</div>
6+
<div>
7+
<div class="py-24 px-2">
8+
<div class="text-4xl sm:text-6xl leading-[1.2] sm:leading-[1.2] font-bold uppercase text-center text-white relative">
9+
<span class="text-primary-500 bg-slate-900/80 px-4">Experiences</span> that are unbounded from <span class="invisible text-primary-400 font-extrabold drop-shadow-md px-8">reality</span>.
10+
<div class="-z-30 absolute text-center right-0 top-0 left-0 bottom-0">
11+
<span class="text-primary-500 invisible px-4">Experiences</span><span class="invisible"> that are unbounded from </span><span class="text-primary-400 font-extrabold drop-shadow-md px-8 animate-font-cycle">reality</span><span class="invisible">.</span>
12+
</div>
13+
</div>
1014
</div>
1115
<div class="font-text text-center text-white bg-slate-900/60 hover:bg-slate-800/60 shadow px-4 py-8">
1216
<p>

src/components/partials/NavLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defineProps({
1313
</script>
1414

1515
<template>
16-
<a class="text-white font-text transition duration-200 hover:text-primary hover:ease-in-out focus:text-primary-200 disabled:text-black/30 motion-reduce:transition-none lg:px-2 [&.active]:text-black/90"
16+
<a class="text-white font-text font-bold transition duration-200 hover:text-primary-950 hover:bg-primary-300/50 hover:ease-in-out focus:text-primary-200 motion-reduce:transition-none lg:px-2"
1717
:href="url"
1818
:title="label">{{ label }}</a>
1919
</template>

src/components/partials/Section.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
</script>
44

55
<template>
6-
<div class="w-full">
7-
<slot class="py-16 w-full sm:max-w-lg md:max-w-xl lg:max-w-2xl mx-auto" />
6+
<div class="w-full py-16 first:pt-0">
7+
<slot class="w-full sm:max-w-lg md:max-w-xl lg:max-w-2xl mx-auto" />
88
</div>
99
</template>
1010

src/components/partials/SectionTitle.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defineProps({
1717

1818
<template>
1919
<div class="text-center uppercase">
20-
<h1 class="font-bold text-5xl">
20+
<h1 class="font-bold text-3xl sm:text-5xl">
2121
<span class="text-primary-200 bg-slate-500/40 p-2">{{ number.toString(10).padStart(2, '0') }}</span><span class="ml-4 text-white">{{ title }}</span>
2222
</h1>
2323
<p v-if="subtitle" class="font-extralight text-2xl mt-6 text-primary-50">

0 commit comments

Comments
 (0)