Skip to content

Commit 4b456cb

Browse files
committed
added contact footer
1 parent 7c95b7f commit 4b456cb

File tree

8 files changed

+39
-45
lines changed

8 files changed

+39
-45
lines changed

components/ContactFooter.vue

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<template>
2+
<NuxtLayout name="card">
3+
<div class="grid lg:grid-cols-4 items-center justify-between gap-3">
4+
<div class="w-full">
5+
<p class="text-stone-400">{{ description }}</p>
6+
</div>
7+
8+
<div
9+
v-for="(item, index) in contactItems"
10+
:key="index"
11+
class="flex items-center lg:justify-end"
12+
>
13+
<OptionsRedirect
14+
:option="item"
15+
additional-class="text-4xl font-bold !items-start w-full flex items-center"
16+
/>
17+
</div>
18+
</div>
19+
</NuxtLayout>
20+
</template>
21+
22+
<script setup lang="ts">
23+
import { description, contactItems } from "~/constants/contact-items";
24+
</script>

components/cards/Contact.vue

-33
This file was deleted.

components/cards/Timeline.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<NuxtLayout name="card">
2+
<NuxtLayout name="card" class="min-h-60">
33
<div class="relative h-full w-full flex justify-center">
44
<div class="flex items-center justify-center h-full w-full">
55
<!--Main line-->

components/options/Redirect.vue

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<NuxtLink
33
class="flex text-white underline-link white-underline whitespace-nowrap items-center"
4+
:class="additionalClass"
45
:to="option.link"
56
:download="option.download"
67
target="_blank"
@@ -19,5 +20,6 @@ import type { OptionsItem } from "~/constants/project-items";
1920
2021
defineProps<{
2122
option: OptionsItem;
23+
additionalClass?: string;
2224
}>();
2325
</script>

components/swiper/Content.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:to="project.link"
77
target="_blank"
88
>
9-
<img :src="project.img" :alt="project.title" loading="lazy" />
9+
<img :src="project.img" :alt="project.title" loading="eager" />
1010
</NuxtLink>
1111
<div class="flex flex-col gap-3 w-full bottom-0">
1212
<h3 class="uppercase text-lime">

constants/contact-items.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
interface ContactItem {
2-
title: string;
3-
link: string;
4-
}
1+
import type { OptionsItem } from "~/constants/project-items";
52

63
export const contactItems = [
74
{
8-
title: "Github",
5+
text: "Github",
96
link: "https://github.com/Barabasbalazs",
107
},
118
{
12-
title: "Email",
9+
text: "Email",
1310
1411
},
1512
{
16-
title: "LinkedIn",
13+
text: "LinkedIn",
1714
link: "https://www.linkedin.com/in/balazs-barabas-6a8946292/",
1815
},
19-
] as ContactItem[];
16+
] as OptionsItem[];
17+
18+
export const description =
19+
"I am available for hire in Romania as well as abroad remotely. \nDo not hesitate to contact me!";

layouts/card.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="bg-dark rounded-3xl p-6 min-h-60 min-w-80">
2+
<div class="bg-dark rounded-3xl p-6 min-w-80">
33
<slot />
44
</div>
55
</template>

layouts/default.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
2-
<div class="p-5 text-white h-full">
2+
<div class="p-5 text-white h-full flex flex-col gap-5">
33
<NuxtLayout name="cardwrapper" class="w-full h-full" cols>
44
<slot
55
/></NuxtLayout>
6+
<ContactFooter />
67
</div>
78
</template>

0 commit comments

Comments
 (0)