Make Earth icon a reusable component
This commit is contained in:
10
src/components/atoms/IconEarth.svelte
Normal file
10
src/components/atoms/IconEarth.svelte
Normal file
File diff suppressed because one or more lines are too long
@@ -4,6 +4,7 @@
|
|||||||
// Components
|
// Components
|
||||||
import Metas from '$components/Metas.svelte'
|
import Metas from '$components/Metas.svelte'
|
||||||
import Button from '$components/atoms/Button.svelte'
|
import Button from '$components/atoms/Button.svelte'
|
||||||
|
import IconEarth from '$components/atoms/IconEarth.svelte'
|
||||||
import BoxCTA from '$components/atoms/BoxCTA.svelte'
|
import BoxCTA from '$components/atoms/BoxCTA.svelte'
|
||||||
import DiscoverText from '$components/atoms/DiscoverText.svelte'
|
import DiscoverText from '$components/atoms/DiscoverText.svelte'
|
||||||
import PhotoCard from '$components/molecules/PhotoCard.svelte'
|
import PhotoCard from '$components/molecules/PhotoCard.svelte'
|
||||||
@@ -31,7 +32,7 @@
|
|||||||
<p class="text-medium">{settings.description}</p>
|
<p class="text-medium">{settings.description}</p>
|
||||||
|
|
||||||
<Button text="Explore locations" url="{path}#locations">
|
<Button text="Explore locations" url="{path}#locations">
|
||||||
<img src="/images/icons/earth.svg" alt="explore globe">
|
<IconEarth animate={true} />
|
||||||
</Button>
|
</Button>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
on:change={handleCountryChange}
|
on:change={handleCountryChange}
|
||||||
value={filterCountry}
|
value={filterCountry}
|
||||||
>
|
>
|
||||||
<img src="/images/icons/earth.svg" alt="Earth">
|
<IconEarth class="icon" />
|
||||||
</Select>
|
</Select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
Reference in New Issue
Block a user