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)', name: 'Login (Demo)',
}, },
{ {
onClick: openModalInfo, // onClick: openModalInfo,
link: '/account-not-login',
name: 'Create User Info (Demo)', name: 'Create User Info (Demo)',
}, },
{ {

View File

@@ -1,11 +1,8 @@
@import "../../../../styles/utilities"; @import "../../../../styles/utilities";
.accountSignInWrapper{ .accountSignInWrapper{
@screen sm-only{
@apply w-full; @apply w-full;
.imgError{ .imgError{
width: 30%; @apply w-full flex justify-center;
margin: 0 auto;
} }
.text{ .text{
@apply sub-headline; @apply sub-headline;
@@ -29,9 +26,5 @@
color:var(--positive); 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 { ButtonCommon, StaticImage } from "src/components/common";
import s from './AccountSignIn.module.scss'; import s from './AccountSignIn.module.scss';
import {LANGUAGE} from 'src/utils/language.utils'; import {LANGUAGE} from 'src/utils/language.utils';
import AccountSignInImg from '../../../../../public/assets/images/accountsignin.png' import AccountSignInImg from '../../../../../public/assets/images/accountsignin.png'
import Link from 'next/link'; import Link from 'next/link';
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
interface AccountSignIn { interface AccountSignIn {
} }
const AccountSignIn = ({ } : AccountSignIn) => { const AccountSignIn = memo(({ } : AccountSignIn) => {
const router = useRouter(); const router = useRouter();
function openLogin(){ function openLogin(){
router.push({ router.push({
pathname: '/account/query', pathname: `${router.pathname}/query`,
search: '?openLogin=true' search: '?openLogin=true'
}); });
} }
return ( return (
<> <>
<div className={s.accountSignInWrapper}> <div className={s.accountSignInWrapper}>
@@ -35,6 +38,6 @@ const AccountSignIn = ({ } : AccountSignIn) => {
</div> </div>
</> </>
) )
} });
export default AccountSignIn export default AccountSignIn