-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
732a8ec
commit 8254284
Showing
23 changed files
with
1,062 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React, { useRef } from "react" | ||
import { Form } from "react-bootstrap" | ||
|
||
export interface LoginFormPayload { | ||
email: string | ||
password: string | ||
} | ||
|
||
export interface LoginFormProps { | ||
className?: string | ||
onSubmit: (payload: LoginFormPayload) => void | ||
} | ||
|
||
const LoginForm: React.FC<LoginFormProps> = ({ className, onSubmit }) => { | ||
const formPayload = useRef({ email: "", password: "" }) | ||
const handleOnSubmit = (e: React.FormEvent<HTMLFormElement>) => { | ||
e.preventDefault() | ||
console.log(formPayload.current) | ||
onSubmit(formPayload.current) | ||
} | ||
|
||
return ( | ||
<Form onSubmit={handleOnSubmit} className={`LoginForm ${className}`}> | ||
<Form.Group className="mb-3" controlId="ModalLoginForm.email"> | ||
<Form.Label>Email address</Form.Label> | ||
<Form.Control | ||
onChange={(e) => (formPayload.current.email = e.target.value)} | ||
type="email" | ||
placeholder="[email protected]" | ||
/> | ||
</Form.Group> | ||
<Form.Group className="mb-3" controlId="ModalLoginForm.password"> | ||
<Form.Label>Password</Form.Label> | ||
<Form.Control | ||
onChange={(e) => (formPayload.current.password = e.target.value)} | ||
type="password" | ||
/> | ||
</Form.Group> | ||
<button type="submit" className="btn btn-primary"> | ||
Log in | ||
</button> | ||
</Form> | ||
) | ||
} | ||
|
||
export default LoginForm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react" | ||
|
||
const Page = ({ children, path, pageContext }) => { | ||
return ( | ||
<div | ||
className="Page" | ||
style={{ | ||
position: "fixed", | ||
top: 0, | ||
left: 0, | ||
background: "red", | ||
zIndex: 1000, | ||
right: 0, | ||
bottom: 0, | ||
}} | ||
> | ||
daiiii | ||
{children} | ||
</div> | ||
) | ||
} | ||
|
||
export default Page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
.Token { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
} | ||
|
||
.Token .token-field { | ||
position: relative; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
padding: var(--spacer-3) var(--spacer-4); | ||
background-color: rgba(var(--impresso-color-black-rgb), 0.1); | ||
border-radius: var(--impresso-border-radius-xs); | ||
.Token textarea { | ||
width: 100%; | ||
padding: 0; | ||
background: transparent; | ||
border: 0px solid transparent; | ||
font-variation-settings: "wght" var(--impresso-wght-medium); | ||
} | ||
|
||
.Token .token-field p { | ||
line-break: anywhere; | ||
margin: 0; | ||
flex-grow: 1; | ||
font-weight: var(--font-weight-bold); | ||
.Token button { | ||
background: var(--impresso-color-yellow); | ||
color: var(--impresso-color-black); | ||
border: 0px solid transparent; | ||
border-radius: var(--impresso-border-radius-sm); | ||
padding: var(--spacer-2); | ||
} | ||
|
||
.Token span { | ||
font-size: var(--font-small); | ||
.Token textarea:focus { | ||
outline: none; | ||
} | ||
|
||
.Token svg path { | ||
stroke: var(--impresso-color-black); | ||
.Token__display { | ||
background: var(--impresso-color-yellow-rgba-25); | ||
border-radius: var(--impresso-border-radius-sm); | ||
} | ||
|
||
.Token button { | ||
margin-right: -1rem; | ||
position: relative !important; | ||
.Token__display__helpText { | ||
font-variation-settings: "wght" var(--impresso-wght-bold); | ||
color: var(--impresso-color-success); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.