Use reusable DiscoverText with count data
This commit is contained in:
@@ -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
|
||||
</script>
|
||||
|
||||
@@ -43,11 +44,7 @@
|
||||
</section>
|
||||
|
||||
<div class="homepage__ctas" id="ctas">
|
||||
<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="cards">
|
||||
<BoxCTA
|
||||
|
||||
Reference in New Issue
Block a user