89 lines
1.9 KiB
Vue
89 lines
1.9 KiB
Vue
<template>
|
|
<div class="home">
|
|
<section class="hero">
|
|
<div class="hero-body">
|
|
<div class="container">
|
|
<h1 class="title">
|
|
Welcome to the Animal Rescue League
|
|
</h1>
|
|
<h2 class="subtitle">
|
|
Make sure you check out the upcoming events below:
|
|
</h2>
|
|
<div class="button-block">
|
|
<button v-if="!$auth.isAuthenticated" @click="login" class="button is-xl is-dark">Sign Up to Browse Events</button>
|
|
<h3 v-if="$auth.isAuthenticated" class="is-size-5 has-background-dark welcome">Welcome, {{ $auth.user.nickname }}!</h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<EventsList />
|
|
<!-- <img class="blurify" src="https://cdn.auth0.com/blog/vue-meetup/event-banner.png"> -->
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import EventsList from '@/components/EventsList'
|
|
|
|
export default {
|
|
name: 'home',
|
|
components: {
|
|
EventsList
|
|
},
|
|
methods : {
|
|
// Log the user in
|
|
login() {
|
|
this.$auth.loginWithRedirect();
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.hero {
|
|
text-align: center;
|
|
background-image: url('https://face4pets.files.wordpress.com/2018/01/shelter-data-1.jpg');
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
height: 400px;
|
|
}
|
|
|
|
.hero-body .title {
|
|
text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.6);
|
|
padding: 40px 0 20px 0;
|
|
font-size: 60px;
|
|
color: white
|
|
}
|
|
|
|
.subtitle {
|
|
text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.7);
|
|
font-size: 30px;
|
|
color: white;
|
|
}
|
|
|
|
.button-block {
|
|
text-align: center;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 100%;
|
|
position: absolute;
|
|
bottom: -150px;
|
|
color: white;
|
|
|
|
.button {
|
|
margin-right: 50px;
|
|
padding-left: 50px;
|
|
padding-right: 50px;
|
|
}
|
|
|
|
.welcome {
|
|
width: 400px;
|
|
padding: 10px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
|
|
.is-xl {
|
|
font-size: 1.7rem;
|
|
}
|
|
</style>
|