mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
feat: create page account not login
This commit is contained in:
parent
ee496c95b4
commit
ccb52169f8
15
pages/account-not-login.tsx
Normal file
15
pages/account-not-login.tsx
Normal 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;
|
@ -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)',
|
||||
},
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user