diff --git a/src/lib/components/ui/dialog/dialog-content.svelte b/src/lib/components/ui/dialog/dialog-content.svelte new file mode 100644 index 0000000..9f78e8a --- /dev/null +++ b/src/lib/components/ui/dialog/dialog-content.svelte @@ -0,0 +1,36 @@ + + + + + + + + + Close + + + diff --git a/src/lib/components/ui/dialog/dialog-description.svelte b/src/lib/components/ui/dialog/dialog-description.svelte new file mode 100644 index 0000000..7250e09 --- /dev/null +++ b/src/lib/components/ui/dialog/dialog-description.svelte @@ -0,0 +1,16 @@ + + + + + diff --git a/src/lib/components/ui/dialog/dialog-footer.svelte b/src/lib/components/ui/dialog/dialog-footer.svelte new file mode 100644 index 0000000..36c0cca --- /dev/null +++ b/src/lib/components/ui/dialog/dialog-footer.svelte @@ -0,0 +1,19 @@ + + +
+ +
diff --git a/src/lib/components/ui/dialog/dialog-header.svelte b/src/lib/components/ui/dialog/dialog-header.svelte new file mode 100644 index 0000000..82fbe51 --- /dev/null +++ b/src/lib/components/ui/dialog/dialog-header.svelte @@ -0,0 +1,16 @@ + + +
+ +
diff --git a/src/lib/components/ui/dialog/dialog-overlay.svelte b/src/lib/components/ui/dialog/dialog-overlay.svelte new file mode 100644 index 0000000..62f8f3f --- /dev/null +++ b/src/lib/components/ui/dialog/dialog-overlay.svelte @@ -0,0 +1,24 @@ + + + diff --git a/src/lib/components/ui/dialog/dialog-portal.svelte b/src/lib/components/ui/dialog/dialog-portal.svelte new file mode 100644 index 0000000..400e62b --- /dev/null +++ b/src/lib/components/ui/dialog/dialog-portal.svelte @@ -0,0 +1,9 @@ + + + + + diff --git a/src/lib/components/ui/dialog/dialog-title.svelte b/src/lib/components/ui/dialog/dialog-title.svelte new file mode 100644 index 0000000..fb863c9 --- /dev/null +++ b/src/lib/components/ui/dialog/dialog-title.svelte @@ -0,0 +1,16 @@ + + + + + diff --git a/src/lib/components/ui/dialog/index.ts b/src/lib/components/ui/dialog/index.ts new file mode 100644 index 0000000..c05c48e --- /dev/null +++ b/src/lib/components/ui/dialog/index.ts @@ -0,0 +1,34 @@ +import { Dialog as DialogPrimitive } from "bits-ui"; + +const Root = DialogPrimitive.Root; +const Trigger = DialogPrimitive.Trigger; + +import Title from "./dialog-title.svelte"; +import Portal from "./dialog-portal.svelte"; +import Footer from "./dialog-footer.svelte"; +import Header from "./dialog-header.svelte"; +import Overlay from "./dialog-overlay.svelte"; +import Content from "./dialog-content.svelte"; +import Description from "./dialog-description.svelte"; + +export { + Root, + Title, + Portal, + Footer, + Header, + Trigger, + Overlay, + Content, + Description, + // + Root as Dialog, + Title as DialogTitle, + Portal as DialogPortal, + Footer as DialogFooter, + Header as DialogHeader, + Trigger as DialogTrigger, + Overlay as DialogOverlay, + Content as DialogContent, + Description as DialogDescription +}; diff --git a/src/lib/images/index.ts b/src/lib/images/index.ts index 1f2dc04..97e608e 100644 --- a/src/lib/images/index.ts +++ b/src/lib/images/index.ts @@ -13,18 +13,18 @@ import styleSrc from './style.webp'; import subwaySrc from './subway.webp'; import weirdStareSrc from './weird-stare.webp'; -const bouldering = { src: boulderingSrc, alt: 'Bouldering' }; -const climbing1 = { src: climbing1Src, alt: 'Climbing' }; -const climbing2 = { src: climbing2Src, alt: 'Climbing' }; -const climbing3 = { src: climbing3Src, alt: 'Climbing' }; -const expo1 = { src: expo1Src, alt: 'Expo' }; -const expo2 = { src: expo2Src, alt: 'Expo' }; -const expo3 = { src: expo3Src, alt: 'Expo' }; -const expo4 = { src: expo4Src, alt: 'Expo' }; -const selfie = { src: selfieSrc, alt: 'Selfie' }; -const style = { src: styleSrc, alt: 'Style' }; -const subway = { src: subwaySrc, alt: 'Subway' }; -const weirdStare = { src: weirdStareSrc, alt: 'Weird Stare' }; +const bouldering = { src: boulderingSrc, alt: 'Bouldering with my sister at the boulderbar in Vienna' }; +const climbing1 = { src: climbing1Src, alt: 'Climbing outside in Vienna' }; +const climbing2 = { src: climbing2Src, alt: 'Checking out a climbing route while preparing for it' }; +const climbing3 = { src: climbing3Src, alt: 'Looking at the top of an outdoor climb' }; +const expo1 = { src: expo1Src, alt: 'Filip and I talking to a Cronos recuiter at Future Entrepreneurship 2022' }; +const expo2 = { src: expo2Src, alt: 'Filip and I solving a puzzle on his phone at Future Entrepreneurship 2022' }; +const expo3 = { src: expo3Src, alt: 'Seif, Filip and I listening to a live "silent" podcast at Future Entrepreneurship 2022' }; +const expo4 = { src: expo4Src, alt: 'Selfie of Seif, Filip and myself at Future Entrepreneurship 2022' }; +const selfie = { src: selfieSrc, alt: 'Selfie in Vienna on a nice summer day' }; +const style = { src: styleSrc, alt: 'Philip and I trying out stylish coats' }; +const subway = { src: subwaySrc, alt: 'Posing in front of the subway in Vienna' }; +const weirdStare = { src: weirdStareSrc, alt: 'Unknowingly got photgraphed while strolling at the christmas market in Vienna' }; export { expo1, diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 3ed4880..49bd410 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -5,6 +5,7 @@ import Testimonial from './Testimonial.svelte'; import { datacampLogo } from '$lib/logos'; import profile from '$lib/images/profile-pic.png'; + import ImageViewer from './ImageViewer.svelte'; const images: Array<{ src: string; alt: string }> = Object.values(i); // split images into 4 groups @@ -42,12 +43,7 @@ {#each imageGroups as images}
{#each images as image} -
- {image.alt} -
+ {/each}
{/each} diff --git a/src/routes/ImageViewer.svelte b/src/routes/ImageViewer.svelte new file mode 100644 index 0000000..736bebe --- /dev/null +++ b/src/routes/ImageViewer.svelte @@ -0,0 +1,25 @@ + + + + +
+ +
+
+ + + +

+ {alt} +

+
+
+