Use reusable DiscoverText with count data
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
<script lang="ts">
|
||||
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')
|
||||
</script>
|
||||
|
||||
<Metas
|
||||
@@ -26,11 +21,8 @@
|
||||
<main class="photos">
|
||||
<section class="photos__intro">
|
||||
<h1 class="title-huge">Houses</h1>
|
||||
<p class="discover">
|
||||
Discover <strong>{count.photos} homes</strong><br>
|
||||
from <strong>{count.locations} cities</strong>
|
||||
of <strong>{count.countries} countries</strong>
|
||||
</p>
|
||||
|
||||
<DiscoverText />
|
||||
|
||||
<div class="filter">
|
||||
<span class="text-label filter__label">Filter photos</span>
|
||||
|
||||
Reference in New Issue
Block a user