-
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.
Merge pull request #1 from ethanfox/Search-Overlay
Refined Search Overlay
- Loading branch information
Showing
6 changed files
with
251 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,106 @@ | ||
<template> | ||
<!-- EXHIBITIONS --> | ||
<div | ||
class="flex flex-col gap-0 pt-4 pb-4 px-4 lg:px-10 bg-neutral-950/80 rounded-md glass-shadow w-full" | ||
> | ||
<p class="text-2xl text-white">Current Exhibitions</p> | ||
<div></div> | ||
<Carousel | ||
:autoplay="3000" | ||
:wrap-around="true" | ||
class="p-4" | ||
v-bind="settings" | ||
:breakpoints="breakpoints" | ||
> | ||
<Slide v-for="exhibition in exhibitions" :key="exhibition.id"> | ||
<div | ||
class="carousel__item bg-neutral-50/10 mx-2 backdrop-blur-md flex w-full glass-shadow rounded-sm" | ||
> | ||
<div class="flex 2xl:flex-row w-full flex-col gap-4"> | ||
<img | ||
class="h-36 w-full rounded-sm glass-shadow object-cover" | ||
:src="exhibition.image_url" | ||
:alt="exhibition.title" | ||
v-if="exhibition.image_url" | ||
/> | ||
<div class="flex flex-col w-full h-36 p-2 justify-between gap-2"> | ||
<div class="flex flex-col"> | ||
<h1 class="text-lg text-white line-clamp-2 text-left"> | ||
{{ exhibition.title }} | ||
</h1> | ||
<h1 class="text-lg text-neutral-400 line-clamp-2 text-left"> | ||
{{ exhibition.gallery_title }} | ||
</h1> | ||
</div> | ||
|
||
<h3 class="text-neutral-400 text-left"> | ||
{{ formatDate(exhibition.aic_start_at) }} - | ||
{{ formatDate(exhibition.aic_end_at) }} | ||
</h3> | ||
</div> | ||
</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, | ||
}, | ||
methods: { | ||
formatDate(dateString) { | ||
const date = new Date(dateString); | ||
const month = ("0" + (date.getMonth() + 1)).slice(-2); | ||
const day = ("0" + date.getDate()).slice(-2); | ||
const year = date.getFullYear(); | ||
return `${month}/${day}/${year}`; | ||
}, | ||
}, | ||
data: () => ({ | ||
// carousel settings | ||
settings: { | ||
itemsToShow: 1.5, | ||
snapAlign: "center", | ||
}, | ||
// breakpoints are mobile first | ||
// any settings not specified will fallback to the carousel settings | ||
breakpoints: { | ||
// 700px and up | ||
640: { | ||
itemsToShow: 1.5, | ||
snapAlign: "center", | ||
}, | ||
768: { | ||
itemsToShow: 2, | ||
snapAlign: "center", | ||
}, | ||
// 1024 and up | ||
1200: { | ||
itemsToShow: 2, | ||
snapAlign: "start", | ||
}, | ||
1280: { | ||
itemsToShow: 3, | ||
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