Skip to content

Commit

Permalink
Add more example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
SebHex committed Jan 13, 2022
1 parent 46fc4a1 commit 8829168
Showing 1 changed file with 57 additions and 2 deletions.
59 changes: 57 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,63 @@
import Button from '@mui/material/Button'
import MuiButton from '@mui/material/Button'
import styled from 'styled-components'
import type { NextPage } from 'next'

const Home: NextPage = () => {
return <Button variant="contained">Hey! 😁</Button>
return (
<Buttons>
<MuiButton variant="contained">MUI button! πŸ’Ž</MuiButton>
<CustomMuiButton variant="contained">
Custom MUI button! πŸ’™
</CustomMuiButton>
<ScButton>SC button! πŸ’…</ScButton>
</Buttons>
)
}

const Buttons = styled.div`
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
> *:not(:last-child) {
margin-bottom: 16px;
}
`

const CustomMuiButton = styled(MuiButton)`
color: rgba(0, 0, 0, 0.87);
background-color: #83e8ff;
border-radius: 20px 0;
text-transform: none;
font-size: 16px;
letter-spacing: 1px;
padding: 8px 16px;
:hover {
background-color: #b5f1ff;
}
`

const ScButton = styled.button`
cursor: pointer;
font-family: 'Roboto', sans-serif;
color: rgba(0, 0, 0, 0.87);
border-radius: 100px;
padding: 0 20px;
line-height: 48px;
text-align: center;
font-size: 14px;
font-weight: 500;
letter-spacing: 1px;
background-color: #ffa4ff;
border: none;
user-select: none;
`

export default Home

0 comments on commit 8829168

Please sign in to comment.