-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created UI for exhibitions Added function to get only current exhibitions Refined transition effects for search overlay
- Loading branch information
Showing
6 changed files
with
212 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.glass-shadow { | ||
/* Your existing box-shadow styles */ | ||
box-shadow: | ||
0 1px 3px rgba(18, 18, 18, 0.2), | ||
inset 0 1px 0.5px rgba(255, 255, 255, 0.06), | ||
inset 0 -1px 0 rgba(18, 18, 18, 0.08); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<template> | ||
<!-- EXHIBITIONS --> | ||
<div | ||
class="flex flex-col gap-4 pt-2 pb-4 px-10 bg-white rounded-full glass-shadow border border-neutral-100 w-full" | ||
> | ||
<p class="text-sm text-neutral-950 font-semibold">Current Exhibitions</p> | ||
<Carousel class="p-0" v-bind="settings" :breakpoints="breakpoints"> | ||
<Slide v-for="exhibition in exhibitions" :key="exhibition.id"> | ||
<div | ||
class="carousel__item bg-white overflow-hidden border glass-shadow rounded-full" | ||
> | ||
<div class="flex gap-4"> | ||
<img | ||
class="size-12 rounded-full glass-shadow" | ||
:src="exhibition.image_url" | ||
:alt="exhibition.title" | ||
v-if="exhibition.image_url" | ||
/> | ||
<h1 class="font-bold text-sm line-clamp-2 text-left"> | ||
{{ exhibition.title }} | ||
</h1> | ||
</div> | ||
</div> | ||
</Slide> | ||
|
||
<template #addons> | ||
<Navigation /> | ||
</template> | ||
</Carousel> | ||
</div> | ||
<!-- EXHIBITIONS --> | ||
</template> | ||
<script> | ||
import { defineComponent } from "vue"; | ||
// import "vue3-carousel/dist/carousel.css"; | ||
import { Carousel, Slide, Pagination, Navigation } from "vue3-carousel"; | ||
export default defineComponent({ | ||
props: ["exhibitions"], | ||
name: "Breakpoints", | ||
components: { | ||
Carousel, | ||
Slide, | ||
Navigation, | ||
}, | ||
data: () => ({ | ||
// carousel settings | ||
settings: { | ||
itemsToShow: 1, | ||
snapAlign: "center", | ||
}, | ||
// breakpoints are mobile first | ||
// any settings not specified will fallback to the carousel settings | ||
breakpoints: { | ||
// 700px and up | ||
700: { | ||
itemsToShow: 3.5, | ||
snapAlign: "center", | ||
}, | ||
// 1024 and up | ||
1024: { | ||
itemsToShow: 5, | ||
snapAlign: "start", | ||
}, | ||
}, | ||
}), | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters