Skip to content

Commit

Permalink
feat: create index page
Browse files Browse the repository at this point in the history
  • Loading branch information
Fariz Rizaldy committed Jan 14, 2020
1 parent 810c93e commit c2567c1
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions src/routes/index.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<script>
import { fade } from 'svelte/transition'
import Hero from '../components/Hero'
import Typewriter from '../components/Typewriter'
import Transition from '../components/Transition'
import Container from '../components/Container'
</script>

<style>
.o-video {
position: absolute;
min-width: 100%;
min-height: 100%;
left: 0;
top: 0;
}
.o-backdrop {
position: fixed;
left: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
width: 100%;
}
.o-footer {
position: fixed;
bottom: 0;
right: 0;
width: 100%;
font-weight: bold;
text-align: center;
text-transform: uppercase;
padding: 2rem;
padding-bottom: 3rem;
}
@media screen and (min-width: 60em) {
.o-footer {
text-align: right;
padding-right: 5rem;
}
}
</style>

<svelte:head>
<title>evilfactorylabs.org - Beranda</title>
</svelte:head>

<Transition>
<video autoplay muted loop class="o-video">
<source src="/bg.mp4" type="video/mp4" />
</video>

<div class="o-backdrop">
<Container>
<Hero>
<Typewriter cursor={false} interval={65}>
<h2 class="o-cta__title o-cta__title--is-primary u-mb-sm">
We have principles in empowering community. You in?
</h2>
</Typewriter>
<a
class="o-cta__action"
href="/kiprah"
in:fade={{ duration: 666, delay: 3800 }}>
If you wanna know how, click here.
</a>
</Hero>
</Container>

<div class="o-footer">
<a class="u-td-none" href="mailto:[email protected]">
[email protected]
</a>
</div>
</div>
</Transition>

0 comments on commit c2567c1

Please sign in to comment.