Skip to content

Commit 239fe87

Browse files
committed
applied bg to whole body and updated pos of swiper buttons
1 parent b7aab50 commit 239fe87

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

components/swiper/Container.vue

+31-32
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
11
<template>
22
<div class="relative w-full wrapper-height">
3-
<div class="absolute z-10 bottom-0 right-0 flex gap-3">
4-
<button
5-
class="bg-black rounded-2xl"
6-
:class="[
7-
{ 'brightness-75 grow': currentIndex > 0 },
8-
{ 'brightness-50': currentIndex === 0 },
9-
]"
10-
@click="slideToIndex(currentIndex - 1)"
11-
>
12-
<img
13-
src="assets/app/icons/chevron-left.svg"
14-
alt="chevron-left-icon"
15-
class="w-10 h-10 md:w-16 md:h-16"
16-
/>
17-
</button>
18-
<button
19-
class="bg-black rounded-2xl"
20-
:class="[
21-
{
22-
'grow brightness-75': currentIndex < projectItems.length - 1,
23-
},
24-
{ 'brightness-50': currentIndex === projectItems.length - 1 },
25-
]"
26-
@click="slideToIndex(currentIndex + 1)"
27-
>
28-
<img
29-
src="assets/app/icons/chevron-right.svg"
30-
alt="chevron-right-icon"
31-
class="w-10 h-10 md:w-16 md:h-16"
32-
/>
33-
</button>
34-
</div>
3+
<button
4+
class="bg-black rounded-2xl absolute left-0 top-1/2 z-10"
5+
:class="[
6+
{ 'brightness-75 grow': currentIndex > 0 },
7+
{ 'brightness-50': currentIndex === 0 },
8+
]"
9+
@click="slideToIndex(currentIndex - 1)"
10+
>
11+
<img
12+
src="assets/app/icons/chevron-left.svg"
13+
alt="chevron-left-icon"
14+
class="w-10 h-10 md:w-16 md:h-16"
15+
/>
16+
</button>
17+
<button
18+
class="bg-black rounded-2xl absolute right-0 top-1/2 z-10"
19+
:class="[
20+
{
21+
'grow brightness-75': currentIndex < projectItems.length - 1,
22+
},
23+
{ 'brightness-50': currentIndex === projectItems.length - 1 },
24+
]"
25+
@click="slideToIndex(currentIndex + 1)"
26+
>
27+
<img
28+
src="assets/app/icons/chevron-right.svg"
29+
alt="chevron-right-icon"
30+
class="w-10 h-10 md:w-16 md:h-16"
31+
/>
32+
</button>
33+
3534
<swiper
3635
class="w-full h-full"
3736
@swiper="onSwiper"

constants/head-items.ts

+1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ export const defaultHeadItems = {
3030
],
3131
link: linkItems,
3232
title: "Barabás Balázs - Full Stack Developer",
33+
bodyAttrs: { class: "bg-black" },
3334
} as MetaObject;

layouts/default.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="p-5 bg-black text-white md:h-screen">
2+
<div class="p-5 text-white md:h-screen">
33
<NuxtLayout name="cardwrapper" class="w-full h-full" cols>
44
<slot
55
/></NuxtLayout>

0 commit comments

Comments
 (0)