-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from whatever-mentoring/feature/design-system-c…
…omponents Feature/design system components
- Loading branch information
Showing
23 changed files
with
320 additions
and
102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { CracoAliasPlugin } = require("react-app-alias"); | ||
|
||
module.exports = { | ||
plugins: [ | ||
{ | ||
plugin: CracoAliasPlugin, | ||
options: { | ||
source: "tsconfig", | ||
baseUrl: ".", | ||
tsConfigPath: "./tsconfig.paths.json", | ||
}, | ||
}, | ||
], | ||
}; |
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,3 @@ | ||
declare module '*.woff2'; | ||
declare module '*.png'; | ||
declare module '*.svg'; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import DesignTest from "DesignTest"; | ||
import React from "react"; | ||
|
||
function App() { | ||
return ( | ||
<div> | ||
<DesignTest /> | ||
</div> | ||
); | ||
return <div></div>; | ||
} | ||
|
||
export default App; |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,47 @@ | ||
import styled from 'styled-components'; | ||
import { Palette } from 'styles/Palette'; | ||
import Typo from 'styles/Typo'; | ||
|
||
interface propsType { | ||
id: number; | ||
name: string; | ||
selected: boolean; | ||
onClick: (id: number) => void; | ||
} | ||
interface containerProps { | ||
selected: boolean; | ||
} | ||
|
||
const Category = ({ id, name, selected, onClick }: propsType) => { | ||
return ( | ||
<Container selected={selected} onClick={() => onClick(id)}> | ||
<Typo.b3>{name}</Typo.b3> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default Category; | ||
|
||
const Container = styled.div<containerProps>` | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 3px 10px; | ||
border-radius: 30px; | ||
cursor: pointer; | ||
${(props) => | ||
props.selected | ||
? ` | ||
border : 1.5px solid ${Palette.Main}; | ||
background: ${Palette.Main15}; | ||
color : ${Palette.Main}; | ||
` | ||
: ` | ||
border : 0.75px solid ${Palette.Black}; | ||
background: ${Palette.White}; | ||
color : ${Palette.Black}; | ||
`}; | ||
`; |
Oops, something went wrong.