Credits: Add temporary globe at bottom
This commit is contained in:
@@ -1,11 +1,32 @@
|
|||||||
<script>
|
<script>
|
||||||
|
export let type
|
||||||
|
|
||||||
// Lead 1: https://codepen.io/edankwan/pen/emqgpr
|
// Lead 1: https://codepen.io/edankwan/pen/emqgpr
|
||||||
// Lead 2: ThreeJS globe: https://github.com/vasturiano/globe.gl
|
// Lead 2: ThreeJS globe: https://github.com/vasturiano/globe.gl
|
||||||
// Lead 3: https://www.bypeople.com/css-js-webgl-rotating-3d-globe-effect/
|
// Lead 3: https://www.bypeople.com/css-js-webgl-rotating-3d-globe-effect/
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="globe">
|
<div class="globe" class:globe--part={type === 'part'}>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
<div class="pin-place">
|
||||||
|
<a href="/location/australia/brisbane" rel="prefetch" class="pinplace__name">
|
||||||
|
<span>Brisbane</span>
|
||||||
|
</a>
|
||||||
|
<a href="/location/australia/brisbane" rel="prefetch" class="">
|
||||||
|
<i class="pin-place__dot"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="pin-place">
|
||||||
|
<a href="/location/australia/brisbane" rel="prefetch" class="pinplace__name">
|
||||||
|
<span>Montpellier</span>
|
||||||
|
</a>
|
||||||
|
<a href="/location/australia/brisbane" rel="prefetch" class="">
|
||||||
|
<i class="pin-place__dot"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<span class="pin-country">France</span>
|
||||||
|
|
||||||
<img src="/img/globe.png" alt="">
|
<img src="/img/globe.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
import IconArrow from '../atoms/IconArrow'
|
import IconArrow from '../atoms/IconArrow'
|
||||||
import TitleSite from '../atoms/TitleSite'
|
import TitleSite from '../atoms/TitleSite'
|
||||||
import LinkTranslate from '../atoms/LinkTranslate'
|
import LinkTranslate from '../atoms/LinkTranslate'
|
||||||
|
import InteractiveGlobe from '../molecules/InteractiveGlobe'
|
||||||
import Footer from '../molecules/Footer'
|
import Footer from '../molecules/Footer'
|
||||||
|
|
||||||
// Categories
|
// Categories
|
||||||
@@ -64,6 +65,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<InteractiveGlobe type="part" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|||||||
@@ -11,7 +11,19 @@
|
|||||||
|
|
||||||
// Image (for now)
|
// Image (for now)
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: inline-block;
|
||||||
width: 100%;
|
margin: 0 auto;
|
||||||
|
pointer-events: none;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pin
|
||||||
|
|
||||||
|
// Part globe
|
||||||
|
.globe--part {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 30vw;
|
||||||
|
min-height: 300px;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user