-
Notifications
You must be signed in to change notification settings - Fork 25
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 #117 from 1989ONCE/main
food decider's buttons
- Loading branch information
Showing
6 changed files
with
55 additions
and
21 deletions.
There are no files selected for viewing
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,49 @@ | ||
import { VStack } from "../../../components"; | ||
|
||
|
||
export const Filter = () => { | ||
const streets = [ | ||
'校内', '宵夜街', '後門', '奢侈巷' | ||
]; | ||
|
||
return ( | ||
<VStack> | ||
<div id="meal" className="grid justify-items-center mt-10"> | ||
<p className="font-bold text-4xl text-center">找正餐</p> | ||
<div className="w-2/3 grid grid-rows-2 grid-flow-col gap-6 columns-2 mt-4"> | ||
{ | ||
streets.map((street) => ( | ||
<button key={street} className="btn bg-[#fdf7d2] text-xl text-[#8b7342] border-2 border-[#8b7342]"> | ||
{street} | ||
</button> | ||
)) | ||
} | ||
</div> | ||
</div> | ||
<div id="drink" className="grid justify-items-center mt-10"> | ||
<p className="font-bold text-4xl text-center">找飲料</p> | ||
<div className="w-2/3 grid grid-rows-2 grid-flow-col gap-6 columns-2 mt-4"> | ||
{ | ||
streets.map((street) => ( | ||
<button key={street} className="btn bg-[#fdf7d2] text-xl text-[#8b7342] border-2 border-[#8b7342]"> | ||
{street} | ||
</button> | ||
)) | ||
} | ||
</div> | ||
</div> | ||
<div id="midnight-snack" className="grid justify-items-center mt-10"> | ||
<p className="font-bold text-4xl text-center">找宵夜</p> | ||
<div className="w-2/3 grid grid-flow-col gap-6 columns-2 mt-4"> | ||
{ | ||
streets.slice(1, 3).map((street) => ( | ||
<button key={street} className="btn bg-[#fdf7d2] text-xl text-[#8b7342] border-2 border-[#8b7342]"> | ||
{street} | ||
</button> | ||
)) | ||
} | ||
</div> | ||
</div> | ||
</VStack > | ||
); | ||
}; |
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