diff --git a/src/components/molecules/House.svelte b/src/components/molecules/House.svelte new file mode 100644 index 0000000..3ced15b --- /dev/null +++ b/src/components/molecules/House.svelte @@ -0,0 +1,50 @@ + + +
+
+

+ {title} +

+

+ {#if city} {city} ·{/if} + {#if date} + + {/if} +

+
+ +
+ + {photoAlt} + + {index} + + +
+
\ No newline at end of file diff --git a/src/routes/[country]/[location]/index.svelte b/src/routes/[country]/[location]/index.svelte index edf403f..cce1d50 100644 --- a/src/routes/[country]/[location]/index.svelte +++ b/src/routes/[country]/[location]/index.svelte @@ -11,10 +11,9 @@ // Components import Metas from '$components/Metas.svelte' import PageTransition from '$components/PageTransition.svelte' - import Icon from '$components/atoms/Icon.svelte' import Button from '$components/atoms/Button.svelte' import IconEarth from '$components/atoms/IconEarth.svelte' - import Image from '$components/atoms/Image.svelte' + import House from '$components/molecules/House.svelte' import NewsletterModule from '$components/organisms/NewsletterModule.svelte' export let location: any @@ -271,38 +270,15 @@ {#if photos.length}
{#each photos as { title, image: { id, title: alt }, slug, city, date_taken }, index} -
-
-

- {title} -

-

- {#if city} {city} ·{/if} - -

-
-
- - {alt} - - {(totalPhotos - index < 10) ? '0' : ''}{totalPhotos - index} - - -
-
+ {/each}
diff --git a/src/style/organisms/_house.scss b/src/style/molecules/_house.scss similarity index 97% rename from src/style/organisms/_house.scss rename to src/style/molecules/_house.scss index 02eeb17..f3e72e2 100644 --- a/src/style/organisms/_house.scss +++ b/src/style/molecules/_house.scss @@ -81,8 +81,9 @@ position: relative; z-index: 3; border-radius: 0; + background: $color-primary; - @include bp (md) { + @include bp (sm) { border-radius: 8px; } } @@ -100,7 +101,7 @@ @media (hover: hover) { a:hover { img { - opacity: 0.6; + opacity: 0.8; transform: scale3d(1.03, 1.03, 1.03) !important; transition-duration: 1.2s; } diff --git a/src/style/style.scss b/src/style/style.scss index f961eaa..e59e362 100644 --- a/src/style/style.scss +++ b/src/style/style.scss @@ -55,6 +55,7 @@ @import "molecules/switcher"; @import "molecules/heading"; @import "molecules/list-cta"; +@import "molecules/house"; @import "molecules/issue"; @import "molecules/newsletter-form"; @import "molecules/poster"; @@ -65,7 +66,6 @@ // Organisms @import "organisms/collage"; @import "organisms/locations"; -@import "organisms/house"; @import "organisms/newsletter"; @import "organisms/carousel"; @import "organisms/shop";