-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Catherine Tan <[email protected]>
- Loading branch information
1 parent
89dba46
commit a772f80
Showing
11 changed files
with
506 additions
and
143 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,98 @@ | ||
import styled from 'styled-components'; | ||
import { SmallRoundedButton } from '@/components/Button'; | ||
import COLORS from '@/styles/colors'; | ||
|
||
export const FilterContainer = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: 8px; | ||
margin-bottom: 20px; | ||
`; | ||
|
||
export const TopRowContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
margin-top: 8px; | ||
margin-bottom: 8px; | ||
padding-left: 24px; | ||
padding-right: 24px; | ||
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); | ||
`; | ||
|
||
export const HeaderButton = styled.button<{ | ||
$isCurrentMode: boolean; | ||
}>` | ||
background: none; | ||
border: none; | ||
color: ${COLORS.shrub}; | ||
font-family: inherit; | ||
cursor: pointer; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
color: ${({ $isCurrentMode }) => | ||
$isCurrentMode ? ` ${COLORS.shrub}` : `${COLORS.midgray}`}; | ||
text-decoration: ${({ $isCurrentMode }) => | ||
$isCurrentMode ? ` underline ` : `none`}; | ||
`; | ||
|
||
export const AddButton = styled.button<{ $backgroundColor: string }>` | ||
position: fixed; | ||
bottom: 0; | ||
background-color: ${({ $backgroundColor }) => $backgroundColor}; | ||
color: white; | ||
border-radius: 20px; | ||
border: none; | ||
font-family: inherit; | ||
margin-bottom: 10px; | ||
width: 170px; | ||
height: 50px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
font-size: 15px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
`; | ||
|
||
export const PlantGridContainer = styled.div` | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); | ||
/* grid-template-columns: repeat(auto-fill, 168px); */ | ||
gap: 8px; | ||
max-width: 100%; | ||
justify-content: center; | ||
`; | ||
|
||
export const SelectButton = styled(SmallRoundedButton)` | ||
font-size: 0.75rem; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
width: 60px; | ||
height: 25px; | ||
padding: 0; | ||
`; | ||
|
||
export const ViewSelection = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: 20px; | ||
`; | ||
|
||
export const NumberSelectedPlantsContainer = styled.div` | ||
background-color: ${COLORS.shrub}; | ||
text-align: center; | ||
width: 100%; | ||
height: 16px; | ||
padding: 0; | ||
`; | ||
|
||
export const NumberSelectedPlants = styled.p` | ||
font-size: 0.625rem; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 16px; | ||
color: #fff; | ||
`; |
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
8 changes: 4 additions & 4 deletions
8
components/DifficultyLevelBar/index.tsx → components/DifficultyLevelBar.tsx
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,19 +1,19 @@ | ||
'use client'; | ||
|
||
import { DifficultyLevelEnum } from '@/types/schema'; | ||
import Icon from '../Icon'; | ||
import Icon from './Icon'; | ||
|
||
export default function DifficultyLevelBar({ | ||
difficultyLevel, | ||
}: { | ||
difficultyLevel: DifficultyLevelEnum; | ||
}) { | ||
if (difficultyLevel === 'EASY') { | ||
return <Icon type="easy_bar" />; | ||
return <Icon type="easyBar" />; | ||
} else if (difficultyLevel === 'MODERATE') { | ||
return <Icon type="moderate_bar" />; | ||
return <Icon type="moderateBar" />; | ||
} else { | ||
// difficultyLevel === 'HARD' | ||
return <Icon type="hard_bar" />; | ||
return <Icon type="hardBar" />; | ||
} | ||
} |
Oops, something went wrong.