Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix login bg && add welcome text #941

Merged
merged 7 commits into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: auth css
  • Loading branch information
walle233 committed Mar 24, 2023
commit e2a88320a297de8b9887e1cbbbc6f0465751525f
22 changes: 0 additions & 22 deletions web/src/layouts/Auth/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
background-color: #edf1f5;
Expand All @@ -9,23 +7,3 @@
background-position: left bottom;
background-size: 60%;
}

.welcomeWrap {
position: absolute;
top: 120px;
left: 120px;
}

.welcomeText {
font-family: 'PingFang SC';
font-style: normal;
font-weight: 500;
font-size: 36px;
}

.sloganText {
font-family: 'PingFang SC';
font-style: normal;
font-weight: 400;
font-size: 20px;
}
11 changes: 4 additions & 7 deletions web/src/layouts/Auth/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import { Outlet } from "react-router-dom";
import clsx from "clsx";

import styles from "./index.module.scss";

export default function LoginReg() {
return (
<div className={clsx(styles.container)}>
<div className={styles.welcomeWrap}>
<div className={clsx(styles.welcomeText, ["text-primary-600"])}>Welcome to laf !</div>
<div className={clsx(styles.sloganText, ["text-grayModern-500"])}>
life is short, you need laf.
</div>
<div className={styles.container}>
<div className="absolute top-[120px] left-[120px]">
<div className="text-primary-600 text-[36px]">Welcome to laf !</div>
<div className="text-grayModern-500 text-[20px]">life is short, you need laf.</div>
</div>
<Outlet />
</div>
Expand Down