feat: create page account not login

This commit is contained in:
Quangnhankie 2021-09-14 11:46:27 +07:00
parent ee496c95b4
commit ccb52169f8
4 changed files with 25 additions and 13 deletions

View File

@ -0,0 +1,15 @@
import React from 'react';
import { Layout } from 'src/components/common';
import { AccountSignIn } from 'src/components/modules/account';
const AccountNotLogin = () => {
return (
<>
<AccountSignIn/>
</>
);
};
AccountNotLogin.Layout = Layout
export default AccountNotLogin;

View File

@ -30,7 +30,8 @@ const HeaderMenu = memo(({ visibleFilter,isFull, openModalAuthen, openModalInfo,
name: 'Login (Demo)',
},
{
onClick: openModalInfo,
// onClick: openModalInfo,
link: '/account-not-login',
name: 'Create User Info (Demo)',
},
{

View File

@ -1,11 +1,8 @@
@import "../../../../styles/utilities";
.accountSignInWrapper{
@screen sm-only{
@apply w-full;
.imgError{
width: 30%;
margin: 0 auto;
@apply w-full flex justify-center;
}
.text{
@apply sub-headline;
@ -29,9 +26,5 @@
color:var(--positive);
}
}
}
@screen md{
@apply hidden;
}
}

View File

@ -1,22 +1,25 @@
import React from "react"
import React,{memo} from "react"
import { ButtonCommon, StaticImage } from "src/components/common";
import s from './AccountSignIn.module.scss';
import {LANGUAGE} from 'src/utils/language.utils';
import AccountSignInImg from '../../../../../public/assets/images/accountsignin.png'
import Link from 'next/link';
import { useRouter } from 'next/router';
interface AccountSignIn {
}
const AccountSignIn = ({ } : AccountSignIn) => {
const AccountSignIn = memo(({ } : AccountSignIn) => {
const router = useRouter();
function openLogin(){
router.push({
pathname: '/account/query',
pathname: `${router.pathname}/query`,
search: '?openLogin=true'
});
}
return (
<>
<div className={s.accountSignInWrapper}>
@ -35,6 +38,6 @@ const AccountSignIn = ({ } : AccountSignIn) => {
</div>
</>
)
}
});
export default AccountSignIn