-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
427 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,91 @@ | ||
@use '~styles/base.scss'; | ||
@use '~styles/colors.scss' as colors; | ||
@use '~styles/breakpoints.scss' as breakpoints; | ||
@use '~styles/fonts.scss' as fonts; | ||
|
||
.home { | ||
width: 200vw; | ||
height: 100dvh; | ||
overflow-x: hidden; | ||
|
||
display: grid; | ||
grid-template-areas: | ||
'sidemenu nav' | ||
'sidemenu content'; | ||
grid-template-rows: 8.1rem 1fr; | ||
grid-template-columns: 100vw 100vw; | ||
|
||
background-color: colors.$primary600; | ||
transform: translateX(-100vw); | ||
|
||
&--open-menu { | ||
width: 100vw; | ||
|
||
transform: translateX(0); | ||
|
||
transition: transform 0.3s; | ||
} | ||
|
||
&--exit-menu { | ||
width: 200vw; | ||
|
||
transform: translateX(-100vw); | ||
|
||
transition: transform 0.3s; | ||
} | ||
|
||
&__navigation { | ||
display: flex; | ||
grid-area: nav; | ||
|
||
align-items: center; | ||
} | ||
|
||
&__sidemenu { | ||
display: grid; | ||
grid-area: sidemenu; | ||
grid-template-rows: 8.1rem 1fr; | ||
} | ||
|
||
&__content { | ||
overflow: auto; | ||
|
||
grid-area: content; | ||
|
||
background-color: colors.$secondary100; | ||
|
||
padding-inline: 2rem; | ||
padding-block: 3.2rem; | ||
} | ||
} | ||
|
||
@include breakpoints.from1024 { | ||
.home { | ||
width: 100vw; | ||
|
||
grid-template-areas: | ||
'sidemenu nav' | ||
'sidemenu content'; | ||
grid-template-rows: 8.1rem 1fr; | ||
grid-template-columns: 31.3rem 1fr; | ||
|
||
transform: translateX(0); | ||
|
||
&__content { | ||
margin-inline: 2.4rem; | ||
|
||
margin-bottom: 2.4rem; | ||
|
||
border-radius: 1.6rem; | ||
} | ||
|
||
&__sidemenu { | ||
display: block; | ||
} | ||
} | ||
} | ||
@use '~styles/base.scss'; | ||
@use '~styles/colors.scss' as colors; | ||
@use '~styles/breakpoints.scss' as breakpoints; | ||
@use '~styles/fonts.scss' as fonts; | ||
|
||
.home { | ||
width: 200vw; | ||
height: 100dvh; | ||
overflow-x: hidden; | ||
|
||
display: grid; | ||
grid-template-areas: | ||
'sidemenu nav' | ||
'sidemenu content'; | ||
grid-template-rows: 8.1rem 1fr; | ||
grid-template-columns: 100vw 100vw; | ||
|
||
background-color: colors.$primary600; | ||
transform: translateX(-100vw); | ||
|
||
&--open-menu { | ||
width: 100vw; | ||
|
||
transform: translateX(0); | ||
|
||
transition: transform 0.3s; | ||
} | ||
|
||
&--exit-menu { | ||
width: 200vw; | ||
|
||
transform: translateX(-100vw); | ||
|
||
transition: transform 0.3s; | ||
} | ||
|
||
&__navigation { | ||
display: flex; | ||
grid-area: nav; | ||
|
||
align-items: center; | ||
} | ||
|
||
&__sidemenu { | ||
display: grid; | ||
grid-area: sidemenu; | ||
grid-template-rows: 8.1rem 1fr; | ||
} | ||
|
||
&__content { | ||
overflow: auto; | ||
|
||
grid-area: content; | ||
|
||
background-color: colors.$secondary100; | ||
|
||
padding-inline: 2rem; | ||
padding-block: 3.2rem; | ||
} | ||
|
||
&__content-page { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
|
||
@include breakpoints.from1024 { | ||
.home { | ||
width: 100vw; | ||
|
||
grid-template-areas: | ||
'sidemenu nav' | ||
'sidemenu content'; | ||
grid-template-rows: 8.1rem 1fr; | ||
grid-template-columns: 31.3rem 1fr; | ||
|
||
transform: translateX(0); | ||
|
||
&__content { | ||
margin-inline: 2.4rem; | ||
|
||
margin-bottom: 2.4rem; | ||
|
||
border-radius: 1.6rem; | ||
} | ||
|
||
&__sidemenu { | ||
display: block; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { BrowserRoute } from 'vanilla-routing'; | ||
import cadastroPet from './routes/cadastro-pet/cadastro-pet'; | ||
import meusPets from './routes/meus-pets/meus-pets'; | ||
import rotasPrincipais from './routes/rotas-principais/rotas-principais'; | ||
|
||
export default function mainRouter() { | ||
const routes = [ | ||
...Object.values(rotasPrincipais), | ||
...Object.values(meusPets), | ||
...Object.values(cadastroPet), | ||
]; | ||
|
||
BrowserRoute(routes); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import aniversario from './etapas/aniversario'; | ||
import cadastro from './etapas/cadastro'; | ||
import nome from './etapas/nome'; | ||
import peso from './etapas/peso'; | ||
import petvet from './etapas/petvet'; | ||
import raca from './etapas/raca'; | ||
import tamanho from './etapas/tamanho'; | ||
|
||
export default { | ||
cadastro, | ||
raca, | ||
nome, | ||
tamanho, | ||
peso, | ||
aniversario, | ||
petvet, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Router, routeLocation } from 'vanilla-routing'; | ||
import NoPetRegirestedPage from '../../../../home/components/NoPetRegirestedPage'; | ||
|
||
export default { | ||
pathname: '/aniversariopet', | ||
element: () => { | ||
console.log('Aniversario', routeLocation()); | ||
const $content = document.createElement('div'); | ||
$content.classList.add('home__content-page'); | ||
$content.style.backgroundColor = 'brown'; | ||
const noPetRegirestedPage = new NoPetRegirestedPage(); | ||
noPetRegirestedPage.mount($content); | ||
Router.dispose(() => { | ||
console.log('Bye AniversarioPet Page'); | ||
}); | ||
return $content; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Router, routeLocation } from 'vanilla-routing'; | ||
import NoPetRegirestedPage from '../../../../home/components/NoPetRegirestedPage'; | ||
|
||
export default { | ||
pathname: '/cadastropet', | ||
element: () => { | ||
console.log('Cadastro', routeLocation()); | ||
const $content = document.createElement('div'); | ||
$content.classList.add('home__content-page'); | ||
$content.style.backgroundColor = 'blue'; | ||
const noPetRegirestedPage = new NoPetRegirestedPage(); | ||
const botao = noPetRegirestedPage.button; | ||
console.log(botao); | ||
noPetRegirestedPage.mount($content); | ||
Router.dispose(() => { | ||
console.log('Bye Cadastro Pet Page'); | ||
}); | ||
return $content; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Router, routeLocation } from 'vanilla-routing'; | ||
import NoPetRegirestedPage from '../../../../home/components/NoPetRegirestedPage'; | ||
|
||
export default { | ||
pathname: '/nomepet', | ||
element: () => { | ||
console.log('Nome', routeLocation()); | ||
const $content = document.createElement('div'); | ||
$content.classList.add('home__content-page'); | ||
$content.style.backgroundColor = 'yellow'; | ||
const noPetRegirestedPage = new NoPetRegirestedPage(); | ||
noPetRegirestedPage.mount($content); | ||
Router.dispose(() => { | ||
console.log('Bye NomePet Page'); | ||
}); | ||
return $content; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Router, routeLocation } from 'vanilla-routing'; | ||
import NoPetRegirestedPage from '../../../../home/components/NoPetRegirestedPage'; | ||
|
||
export default { | ||
pathname: '/pesopet', | ||
element: () => { | ||
console.log('Peso', routeLocation()); | ||
const $content = document.createElement('div'); | ||
$content.classList.add('home__content-page'); | ||
$content.style.backgroundColor = 'orange'; | ||
const noPetRegirestedPage = new NoPetRegirestedPage(); | ||
noPetRegirestedPage.mount($content); | ||
Router.dispose(() => { | ||
console.log('Bye PesoPet Page'); | ||
}); | ||
return $content; | ||
}, | ||
}; |
Oops, something went wrong.