-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c32e41
commit c5c1f69
Showing
13 changed files
with
75 additions
and
41 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
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
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,21 +1,26 @@ | ||
import { useDocumentTitle } from "usehooks-ts"; | ||
import FeaturedHighlights from "@/components/FeaturedHighlights"; | ||
import SecondHighlights from "@/components/SecondHighlights"; | ||
import ThirdHighlights from "@/components/ThirdHighlights"; | ||
import FourthHighlights from "@/components/FourthHighlights"; | ||
|
||
const Home = () => ( | ||
<> | ||
<div className="container"> | ||
<FeaturedHighlights /> | ||
<SecondHighlights /> | ||
</div> | ||
<div className="my-24 w-full bg-gray-100"> | ||
<ThirdHighlights /> | ||
</div> | ||
<div className="container"> | ||
<FourthHighlights /> | ||
</div> | ||
</> | ||
); | ||
const Home = () => { | ||
useDocumentTitle("Drinquepedia | Things go better with a cocktail!"); | ||
|
||
return ( | ||
<> | ||
<div className="container"> | ||
<FeaturedHighlights /> | ||
<SecondHighlights /> | ||
</div> | ||
<div className="my-24 w-full bg-gray-100"> | ||
<ThirdHighlights /> | ||
</div> | ||
<div className="container"> | ||
<FourthHighlights /> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default Home; |
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
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,16 @@ | ||
const getCategoryName = (category?: string): string => { | ||
const categories: { [key: string]: string } = { | ||
martinis: "Martinis", | ||
tropicais: "Tropicais", | ||
frozen: "Frozen", | ||
quentes: "Quentes", | ||
shot: "Shots", | ||
classicos: "Clássicos", | ||
semalcool: "Sem Álcool", | ||
caipirinhas: "Caipirinhas clássicas", | ||
smoothies: "Smoothies", | ||
}; | ||
return categories[category as keyof typeof categories] || "Drinques de A a Z"; | ||
}; | ||
|
||
export default getCategoryName; |
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 @@ | ||
export { default } from "./getCategoryName"; |