generated from Team-INSERT/Repository-generator-Frontend
-
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.
Merge pull request #78 from Team-INSERT/feat/meal
급식 페이지 작업 완료
- Loading branch information
Showing
22 changed files
with
379 additions
and
73 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,16 +1,20 @@ | ||
import Provider from "@/provider/Provider"; | ||
|
||
export const metadata = { | ||
title: 'Next.js', | ||
description: 'Generated by Next.js', | ||
} | ||
title: "BSM", | ||
description: "부산소마고 학생 정보 관리 서비스 BSM입니다.", | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body>{children}</body> | ||
<body> | ||
<Provider>{children}</Provider> | ||
</body> | ||
</html> | ||
) | ||
); | ||
} |
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,21 @@ | ||
import { IMealList } from "@/interfaces"; | ||
|
||
const emptyMealList: IMealList = { | ||
data: { | ||
MORNING: { | ||
content: "", | ||
cal: 0, | ||
}, | ||
LUNCH: { | ||
content: "", | ||
cal: 0, | ||
}, | ||
DINNER: { | ||
content: "", | ||
cal: 0, | ||
}, | ||
}, | ||
keys: [], | ||
}; | ||
|
||
export default emptyMealList; |
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
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 getMealName = (meal: string) => { | ||
switch (meal) { | ||
case "MORNING": | ||
return "조식"; | ||
case "LUNCH": | ||
return "중식"; | ||
case "DINNER": | ||
return "석식"; | ||
default: | ||
return meal; | ||
} | ||
}; | ||
|
||
export default getMealName; |
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default interface IMeal { | ||
content: string; | ||
cal: number; | ||
} |
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,3 +1,8 @@ | ||
import IMeal from "./meal.interface"; | ||
|
||
export default interface MealListType { | ||
mealList: Array<object>; | ||
data: { | ||
[meal: string]: IMeal; | ||
}; | ||
keys: Array<string>; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { color, flex } from "@/styles"; | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
const BlinkerBox = () => { | ||
return ( | ||
<Container> | ||
<Red /> | ||
<Yellow /> | ||
<Green /> | ||
</Container> | ||
); | ||
}; | ||
|
||
const Container = styled.div` | ||
${flex.VERTICAL}; | ||
gap: 6px; | ||
margin-right: auto; | ||
`; | ||
|
||
const Circle = styled.div` | ||
width: 12px; | ||
height: 12px; | ||
border-radius: 25px; | ||
`; | ||
|
||
const Red = styled(Circle)` | ||
background-color: ${color.primary_red}; | ||
`; | ||
|
||
const Yellow = styled(Circle)` | ||
background-color: ${color.primary_yellow}; | ||
`; | ||
|
||
const Green = styled(Circle)` | ||
background-color: ${color.primary_mint}; | ||
`; | ||
|
||
export default BlinkerBox; |
Oops, something went wrong.