Skip to content

Commit 1bfe2e0

Browse files
committed
finish home
1 parent 28a5e6c commit 1bfe2e0

File tree

5 files changed

+127
-1
lines changed

5 files changed

+127
-1
lines changed
1.05 MB
Loading
20.9 KB
Loading

dashboard/src/views/Home/Contact.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<template>
2+
<div class="flex justify-center w-full">
3+
<div class="flex flex-col items-center w-4/5 max-w-6xl my-16">
4+
<h1 class="text-4xl font-black text-center text-gray-800">
5+
Alguma dúvida?
6+
</h1>
7+
<p class="text-lg text-center text-gray-800 font-regular">
8+
Quer saber melhor como funciona e quais são os preços?
9+
</p>
10+
<div class="mt-10">
11+
<a href="mailto:" class="px-6 py-2 mt-10 font-bold text-white rounded-full bg-brand-main focus:outline-none">
12+
Nos mande um e-mail!
13+
</a>
14+
</div>
15+
</div>
16+
</div>
17+
</template>
18+
19+
<script>
20+
export default {
21+
22+
}
23+
</script>
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<template>
2+
<header class="header">
3+
<div class="header-group">
4+
<div class="flex items-center justify-between py-10">
5+
<div class="w-28 lg:w-36">
6+
<img class="w-full" src="../../assets/images/logo_white.png" alt="logo">
7+
</div>
8+
9+
<div class="flex">
10+
<button
11+
class="px-6 py-2 font-bold rounded-full text-white focus:outline-none"
12+
>
13+
Crie uma conta
14+
</button>
15+
<button
16+
class="px-6 py-2 font-bold bg-white rounded-full text-brand-main focus:outline-none"
17+
>
18+
Entrar
19+
</button>
20+
</div>
21+
</div>
22+
23+
<div class="flex flex-col mt-28">
24+
<h1 class="text-4xl font-black text-white">
25+
Tenha um feedback. <br>
26+
E faça seus clientes mais <br class="hidden lg:inline-block">
27+
felizes!
28+
</h1>
29+
<p class="text-lg font-medium text-white">
30+
Receba ideias, reclamações e feedbacks com um <br class="hidden lg:inline-block">
31+
simples widget na página.
32+
</p>
33+
<div>
34+
<button
35+
class="px-6 py-2 mt-10 font-bold bg-white rounded-full text-brand-main focus:outline-none"
36+
>
37+
Crie uma conta grátis
38+
</button>
39+
</div>
40+
</div>
41+
42+
</div>
43+
</header>
44+
</template>
45+
46+
<script>
47+
export default {
48+
49+
}
50+
</script>
51+
52+
<style lang="postcss" scoped>
53+
.header {
54+
@apply bg-brand-main w-full flex justify-center;
55+
height: 700px;
56+
}
57+
58+
.header-group {
59+
@apply flex flex-col w-4/5 max-w-6xl;
60+
}
61+
62+
@media (min-width: 640px) {
63+
.header-group {
64+
background-image: url(../../assets/images/blue_balloons.png);
65+
background-size: 628px;
66+
background-position: 90% 100%;
67+
background-repeat: no-repeat;
68+
}
69+
}
70+
</style>

dashboard/src/views/Home/index.vue

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,42 @@
11
<template>
2-
<h1 class="font-black text-brand-main">Aqui é a home</h1>
2+
<custom-header
3+
@create-account="handleAccountCreate"
4+
@login="handleLogin"
5+
/>
6+
<contact />
7+
<div class="flex justify-center py-10 bg-brand-gray">
8+
<p class="font-medium text-center text-gray-800">feedbacker © 2021</p>
9+
</div>
310
</template>
411

512
<script>
13+
import { onMounted } from 'vue'
14+
import { useRouter } from 'vue-router'
15+
import CustomHeader from './CustomHeader.vue'
16+
import Contact from './Contact.vue'
17+
618
export default {
19+
components: { CustomHeader, Contact },
20+
setup () {
21+
const router = useRouter()
22+
23+
onMounted(() => {
24+
const token = window.localStorage.getItem('token')
25+
if (token) {
26+
router.push({ name: 'Feedbacks' })
27+
}
28+
})
29+
30+
function handleLogin () {
31+
}
32+
33+
function handleAccountCreate () {
34+
}
735
36+
return {
37+
handleLogin,
38+
handleAccountCreate
39+
}
40+
}
841
}
942
</script>

0 commit comments

Comments
 (0)