-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add last year event photo showcase (#19)
* feat: add last year event photo showcase * fix: faqs to uppercase * fix: change name to gallery
- Loading branch information
1 parent
245d53d
commit 0180e17
Showing
29 changed files
with
81 additions
and
148 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,21 +1,25 @@ | ||
import { Disclosure } from '@headlessui/react' | ||
import { PlayIcon } from '@heroicons/react/24/solid' | ||
// import { getEntry } from 'astro:content'; | ||
import faqs from "~/data/faqs.json" | ||
import { Disclosure } from "@headlessui/react"; | ||
import { PlayIcon } from "@heroicons/react/24/solid"; | ||
import faqs from "~/data/faqs.json"; | ||
|
||
export default function Faqs() { | ||
return ( | ||
<div> | ||
<div className="mx-auto max-w-7xl px-6 pb-24 sm:pb-32 lg:px-8 lg:pb-40"> | ||
<div className="mx-auto max-w-4xl"> | ||
<h2 className="text-2xl font-bold leading-10 tracking-wide text-white">Frequently asked questions</h2> | ||
<p className="mt-6 text-justify text-xl leading-7"> | ||
Have a different question and can’t find the answer you’re looking for? | ||
Reach out to our support team by <a | ||
<h2 className="text-2xl font-bold leading-10 tracking-wide text-white"> | ||
Frequently asked questions | ||
</h2> | ||
<p className="mt-6 text-justify text-xl leading-7 uppercase"> | ||
Have a different question and can’t find the answer you’re looking | ||
for? Reach out to our support team by{" "} | ||
<a | ||
href="mailto:[email protected]" | ||
className="font-semibold text-indigo-400 hover:text-indigo-300" | ||
>sending us an email </a | ||
>and we’ll get back to you as soon as we can. | ||
> | ||
sending us an email{" "} | ||
</a> | ||
and we’ll get back to you as soon as we can. | ||
</p> | ||
</div> | ||
<div className="mx-auto max-w-4xl divide-y"> | ||
|
@@ -28,18 +32,27 @@ export default function Faqs() { | |
<Disclosure.Button className="flex w-full items-start justify-start text-left text-white"> | ||
<div> | ||
{open ? ( | ||
<PlayIcon fill="#66B22E" className="mt-2 mr-3 w-4 h-4 rotate-90" /> | ||
<PlayIcon | ||
fill="#66B22E" | ||
className="mt-2 mr-3 w-4 h-4 rotate-90" | ||
/> | ||
) : ( | ||
<PlayIcon fill="#66B22E" className="mt-2 mr-3 w-4 h-4" /> | ||
<PlayIcon | ||
fill="#66B22E" | ||
className="mt-2 mr-3 w-4 h-4" | ||
/> | ||
)} | ||
</div> | ||
<span className="text-xl text-white font-semibold leading-7">{faq.question}</span> | ||
<span className="ml-6 flex h-7 items-center"> | ||
<span className="text-xl text-white font-semibold leading-7 uppercase"> | ||
{faq.question} | ||
</span> | ||
<span className="ml-6 flex h-7 items-center"></span> | ||
</Disclosure.Button> | ||
</dt> | ||
<Disclosure.Panel as="dd" className="mt-2 pr-12"> | ||
<p className="font-sans text-base leading-7 text-white ml-7">{faq.answer}</p> | ||
<p className="font-sans text-base leading-7 text-white ml-7"> | ||
{faq.answer} | ||
</p> | ||
</Disclosure.Panel> | ||
</> | ||
)} | ||
|
@@ -49,5 +62,5 @@ export default function Faqs() { | |
</div> | ||
</div> | ||
</div> | ||
) | ||
); | ||
} |
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,16 @@ | ||
--- | ||
import ContentSection from "~/components/contentSection.astro"; | ||
import ShowcaseCard from "~/components/galleryCard.astro"; | ||
import gallery from "~/data/gallery.json"; | ||
--- | ||
|
||
<ContentSection title="Gallery" id="showcase"> | ||
<Fragment slot="lead"> | ||
Checkout some of the best moments from last year's event: | ||
</Fragment> | ||
<div class="max-w-6xl space-y-2"> | ||
<div class="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3"> | ||
{gallery.map((img) => <ShowcaseCard source={img} />)} | ||
</div> | ||
</div> | ||
</ContentSection> |
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,13 @@ | ||
--- | ||
const { source } = Astro.props; | ||
--- | ||
|
||
<div class="group aspect-video hover:!text-default"> | ||
<figure class="relative h-full w-full overflow-hidden"> | ||
<img | ||
class="h-full w-full bg-cover object-cover transition-all duration-300 group-hover:scale-110 group-focus:scale-110 group-focus:opacity-20" | ||
src={source} | ||
alt="" | ||
/> | ||
</figure> | ||
</div> |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
"/gallery/1.png", | ||
"/gallery/2.png", | ||
"/gallery/3.png", | ||
"/gallery/4.png", | ||
"/gallery/5.png", | ||
"/gallery/6.png" | ||
] |
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,8 +1,10 @@ | ||
--- | ||
import Intro from "~/components/intro.astro"; | ||
import Gallery from "~/components/gallery.astro"; | ||
import IndexLayout from "~/layouts/indexLayout.astro"; | ||
--- | ||
|
||
<IndexLayout> | ||
<Intro /> | ||
<Gallery /> | ||
</IndexLayout> |