Skip to content

Commit 7434ac9

Browse files
committed
feat(page9): add new component.
1 parent 86bd62f commit 7434ac9

File tree

19 files changed

+793
-37
lines changed

19 files changed

+793
-37
lines changed

pages/page8/src/control/signup/Password.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

pages/page8/src/control/signup/Submit.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

pages/page8/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280

281281
.login-page8-fields {
282282
border-radius: 10px;
283-
margin: 2rem 0;
283+
margin: 2rem 0 0 0;
284284
gap: var(--gap);
285285
display: flex;
286286
flex-direction: column;

pages/page8/src/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ export * from 'react-login-page';
1515
export * from './control/login/Username';
1616
export * from './control/login/Password';
1717
export * from './control/login/Submit';
18-
export * from './control/signup/Submit';
19-
export * from './control/signup/Password';
2018
export * from './control/Title';
2119
export * from './control/TitleLogin';
2220
export * from './control/TitleSignup';

pages/page9/README.md

Lines changed: 344 additions & 0 deletions
Large diffs are not rendered by default.

pages/page9/package.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"name": "@react-login-page/page9",
3+
"version": "0.4.7",
4+
"description": "Some `react` login pages, which can be used quickly after installation.",
5+
"homepage": "https://uiwjs.github.io/react-login-page",
6+
"author": "kenny wong <wowohoo@qq.com>",
7+
"license": "MIT",
8+
"main": "./cjs/index.js",
9+
"module": "./esm/index.js",
10+
"exports": {
11+
".": {
12+
"import": "./esm/index.js",
13+
"require": "./cjs/index.js"
14+
},
15+
"./bg.jpg": {
16+
"import": "./esm/assets/bg.jpg",
17+
"require": "./cjs/assets/bg.jpg"
18+
},
19+
"./README.md": "./README.md",
20+
"./package.json": "./package.json"
21+
},
22+
"scripts": {
23+
"watch": "tsbb watch src/*.tsx --use-babel",
24+
"build": "tsbb build src/*.tsx --use-babel",
25+
"test": "tsbb test --env=jsdom",
26+
"coverage": "tsbb test --env=jsdom --coverage --bail"
27+
},
28+
"repository": {
29+
"type": "git",
30+
"url": "https://github.com/uiwjs/react-login-page.git"
31+
},
32+
"files": [
33+
"README.md",
34+
"src",
35+
"esm",
36+
"cjs"
37+
],
38+
"peerDependencies": {
39+
"@babel/runtime": ">=7.11.0",
40+
"react": ">=16.8.0",
41+
"react-dom": ">=16.8.0"
42+
},
43+
"dependencies": {
44+
"react-login-page": "0.4.7"
45+
},
46+
"keywords": [
47+
"react",
48+
"login",
49+
"login-page",
50+
"login-pages",
51+
"react-login",
52+
"react-login-page",
53+
"editor",
54+
"syntax",
55+
"ide",
56+
"code"
57+
],
58+
"jest": {
59+
"coverageReporters": [
60+
"lcov",
61+
"json-summary"
62+
]
63+
}
64+
}

pages/page9/src/assets/bg.jpg

108 KB
Loading

pages/page9/src/control/Footer.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Block, BlockProps, BlockTagType } from 'react-login-page';
2+
3+
export const Footer = <Tag extends BlockTagType = 'footer'>(props: BlockProps<Tag | 'footer'>) => {
4+
const { keyname = 'footer', name = 'footer', ...elmProps } = props;
5+
return <Block {...elmProps} name={keyname || name} tagName="footer" />;
6+
};
7+
8+
Footer.displayName = 'BaseLogin.Footer';

pages/page9/src/control/Logo.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { PropsWithChildren } from 'react';
2+
import { Block, BlockProps, BlockTagType } from 'react-login-page';
3+
4+
export const Logo = <T extends BlockTagType = 'div'>(props: PropsWithChildren<Partial<BlockProps<T | 'div'>>>) => {
5+
const { keyname = 'logo', name = 'logo', ...elmProps } = props;
6+
if (!elmProps.children) {
7+
elmProps.children = '⚛️';
8+
}
9+
return <Block {...elmProps} keyname={keyname || name} />;
10+
};
11+
12+
Logo.displayName = 'BaseLogin.Logo';
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { FC } from 'react';
2+
import { Input, InputProps } from 'react-login-page';
3+
4+
export const Password: FC<InputProps> = (props) => {
5+
const { keyname = 'password', name, rename, ...elmProps } = props;
6+
const nameBase = name || rename || keyname;
7+
const key = (keyname || name) as string;
8+
return <Input type="password" placeholder="Password" {...elmProps} name={nameBase} keyname={key} />;
9+
};
10+
11+
Password.displayName = 'BaseLogin.Password';

0 commit comments

Comments
 (0)