adapting and shit

This commit is contained in:
Elijah Lucian
2021-07-13 17:47:28 -06:00
parent 1af8209b99
commit 2b94223389
35 changed files with 163 additions and 160 deletions
+13
View File
@@ -0,0 +1,13 @@
import { Button as AntButton, ButtonProps } from 'antd'
import React from 'react'
import './style.scss'
type Props = ButtonProps
export const Button = ({ children, htmlType }: Props) => {
return (
<AntButton className="dank-button" htmlType={htmlType}>
{children}
</AntButton>
)
}
+4
View File
@@ -0,0 +1,4 @@
.dank-button {
cursor: pointer;
// shit here
}
+8
View File
@@ -0,0 +1,8 @@
import { Form as AntForm, FormProps } from 'antd'
import './style.scss'
type Props = FormProps
export const Form = ({ children }: Props) => {
return <AntForm className="dank-form">{children}</AntForm>
}
+27
View File
@@ -0,0 +1,27 @@
.dank-form {
display: flex;
flex-direction: column;
background: #1115;
border: 1ch #1117 solid;
padding: 3ch;
border-radius: 1ch;
color: #ccc;
label {
margin: 0.5ch;
display: flex;
flex-direction: row;
justify-content: space-between;
input {
margin-left: 2ch;
}
}
h3 {
color: #666;
}
button {
margin: 4ch 1ch;
}
}
+14
View File
@@ -0,0 +1,14 @@
import React from 'react'
import './style.scss'
type Props = {
title: string
type: 'success' | 'error'
children: React.ReactNode
}
export const Toast = (props: Props) => {
// show me a toast
return null
}
+25
View File
@@ -0,0 +1,25 @@
.dank-toast {
position: absolute;
left: 1ch;
bottom: 4ch;
padding: 1ch 2ch;
border-radius: 1ch;
transition: all 0.2s ease-in-out;
&.error {
color: #ffffff;
background: #b40303;
opacity: 1;
}
&.good {
color: #ffffff;
background: #009b46;
opacity: 1;
}
&.off {
opacity: 0;
}
}