diff --git a/src/components/atoms/DiscoverText.svelte b/src/components/atoms/DiscoverText.svelte new file mode 100644 index 0000000..ee87bef --- /dev/null +++ b/src/components/atoms/DiscoverText.svelte @@ -0,0 +1,11 @@ + + +

+ Discover {count.photos} homes
+ from {count.locations} cities + of {count.countries} countries +

\ No newline at end of file diff --git a/src/routes/index.svelte b/src/routes/index.svelte index fda6a33..f8b79fc 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -5,6 +5,7 @@ import Metas from '$components/Metas.svelte' import Button from '$components/atoms/Button.svelte' import BoxCTA from '$components/atoms/BoxCTA.svelte' + import DiscoverText from '$components/atoms/DiscoverText.svelte' import PhotoCard from '$components/molecules/PhotoCard.svelte' import InteractiveGlobe from '$components/organisms/InteractiveGlobe.svelte' import Locations from '$components/organisms/Locations.svelte' @@ -13,7 +14,7 @@ export let photos: any - const { settings, location, count }: any = getContext('global') + const { settings, location }: any = getContext('global') const { path } = $page @@ -43,11 +44,7 @@
-

- Discover {count.photos} homes
- from {count.locations} cities - of {count.countries} countries -

+
import { getContext } from 'svelte' - import { page } from '$app/stores' // Components import Metas from '$components/Metas.svelte' import Button from '$components/atoms/Button.svelte' - import BoxCTA from '$components/atoms/BoxCTA.svelte' - import PhotoCard from '$components/molecules/PhotoCard.svelte' - import InteractiveGlobe from '$components/organisms/InteractiveGlobe.svelte' - import Locations from '$components/organisms/Locations.svelte' + import DiscoverText from '$components/atoms/DiscoverText.svelte' import Shop from '$components/organisms/Shop.svelte' import Newsletter from '$components/organisms/Newsletter.svelte' export let photos: any - const { settings, location, count }: any = getContext('global') - const { path } = $page + const { country: countries }: any = getContext('global')

Houses

-

- Discover {count.photos} homes
- from {count.locations} cities - of {count.countries} countries -

+ +
Filter photos