-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cria pagina de login issue-240
- Loading branch information
1 parent
843ded8
commit fb783bf
Showing
5 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
import { Component } from 'pet-dex-utilities'; | ||
import LoginForm from '../../../../components/LoginForm'; | ||
import petdexLogo from './images/petdex-logo__login-page.png'; | ||
import petAndDog from './images/pet-and-dog__login-page.png'; | ||
import './index.scss'; | ||
|
||
const html = ` | ||
<div data-select="container" class="login-page"> | ||
<div class="login-page__img-box"> | ||
<div class="login-page__img-top"> | ||
<img src="${petdexLogo}" class="login-page__img-logopetdex"/> | ||
</div> | ||
<div class="login-page__img-down"> | ||
<img src="${petAndDog}" class="login-page__img-petanddog"/> | ||
</div> | ||
</div> | ||
<div class=login-page__login-box> | ||
<div class="login-page__login-form"> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
export default function LoginPage() { | ||
Component.call(this, { html }); | ||
|
||
const $container = this.selected.get('container'); | ||
this.LoginForm = new LoginForm(); | ||
this.LoginForm.mount($container); | ||
} | ||
|
||
LoginPage.prototype = Object.assign(LoginPage.prototype, Component.prototype); |
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,38 @@ | ||
@use '~styles/colors.scss' as colors; | ||
@use '~styles/breakpoints.scss' as breakpoints; | ||
|
||
.login-page { | ||
width: 100%; | ||
|
||
display: flex; | ||
gap: 5rem; | ||
|
||
justify-content: center; | ||
|
||
padding: 15rem; | ||
|
||
background-color: colors.$primary600; | ||
} | ||
|
||
.login-page__img-box { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
align-items: center; | ||
} | ||
|
||
.login-page__img-box img { | ||
display: block; | ||
|
||
padding-right: 2rem; | ||
} | ||
|
||
.login-page__img-logopetdex { | ||
width: 15.5rem; | ||
} | ||
|
||
.login-page__img-top { | ||
width: 100%; | ||
|
||
margin-bottom: 10rem; | ||
} |
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,15 @@ | ||
import LoginPage from '../layouts/app/pages/Login'; | ||
|
||
export default { | ||
title: 'Pages/Login', | ||
render: () => { | ||
const loginPage = new LoginPage(); | ||
const $container = document.createElement('div'); | ||
|
||
loginPage.mount($container); | ||
|
||
return $container; | ||
}, | ||
}; | ||
|
||
export const LoginPageStoryPage = {}; |