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)',
|
name: 'Login (Demo)',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
onClick: openModalInfo,
|
// onClick: openModalInfo,
|
||||||
|
link: '/account-not-login',
|
||||||
name: 'Create User Info (Demo)',
|
name: 'Create User Info (Demo)',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user