✨ add buttons: loginButton and basicButton
This commit is contained in:
parent
6feac8022b
commit
dd2c22ec6f
12
src/components/buttons/basicButton/BasicButton.tsx
Normal file
12
src/components/buttons/basicButton/BasicButton.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import React from 'react'
|
||||
import { BasicButtonView } from './BasicButtonView'
|
||||
|
||||
interface BasicButtonInterface {
|
||||
title: string
|
||||
}
|
||||
|
||||
export default function BasicButton({ title }: BasicButtonInterface) {
|
||||
return (
|
||||
<BasicButtonView>{title}</BasicButtonView>
|
||||
)
|
||||
}
|
||||
20
src/components/buttons/basicButton/BasicButtonView.ts
Normal file
20
src/components/buttons/basicButton/BasicButtonView.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import styled from 'styled-components'
|
||||
|
||||
export const BasicButtonView = styled.button`
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
background: #254F7F;
|
||||
border-radius: 8px;
|
||||
|
||||
font-family: 'Poppins';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
/* identical to box height */
|
||||
|
||||
|
||||
color: #FFFFFF;
|
||||
`
|
||||
14
src/components/buttons/loginButton/LoginButton.tsx
Normal file
14
src/components/buttons/loginButton/LoginButton.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import React from 'react'
|
||||
import { LoginButtonView } from './LoginButtonView'
|
||||
|
||||
interface LoginButtonInterface {
|
||||
title: string
|
||||
}
|
||||
|
||||
export default function LoginButton({ title }: LoginButtonInterface) {
|
||||
return (
|
||||
<LoginButtonView>
|
||||
{title}
|
||||
</LoginButtonView>
|
||||
)
|
||||
}
|
||||
19
src/components/buttons/loginButton/LoginButtonView.ts
Normal file
19
src/components/buttons/loginButton/LoginButtonView.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import styled from 'styled-components'
|
||||
|
||||
export const LoginButtonView = styled.button`
|
||||
width: 100%;
|
||||
height: 95px;
|
||||
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(88.75deg, #254F7F 0.18%, #888888 99.28);
|
||||
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-size: 32px;
|
||||
line-height: 44px;
|
||||
text-align: center;
|
||||
letter-spacing: 0.03em;
|
||||
|
||||
color: #FFFFFF;
|
||||
`
|
||||
Loading…
x
Reference in New Issue
Block a user