-
-
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.
Add canonical URLs to home page, reviews, and blocks
- Loading branch information
1 parent
bce92dc
commit 91a30a8
Showing
22 changed files
with
176 additions
and
55 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Helpful Locations | ||
|
||
Icon Library - Try stick to the FA5 icons, for consistency. | ||
https://react-icons.github.io/react-icons/icons/fa/ |
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,73 @@ | ||
// /components/NextBreadcrumb.tsx | ||
"use client"; | ||
|
||
import React, { ReactNode } from "react"; | ||
|
||
import { usePathname } from "next/navigation"; | ||
import Link from "next/link"; | ||
import { FaHome } from "react-icons/fa"; | ||
|
||
type TBreadCrumbProps = { | ||
homeElement: ReactNode; | ||
}; | ||
|
||
const replacements: Record<string, string> = { | ||
EmbassyBarKitchen: "Embassy Bar & Kitchen", | ||
SBBG: "South Bank Beer Garden", | ||
}; | ||
|
||
function cleanUpLink(link: string) { | ||
if (replacements[link]) { | ||
return replacements[link]; | ||
} else { | ||
return link | ||
.split("-") | ||
.map((word) => { | ||
if (word === "and" || word === "or" || word === "the") { | ||
return word; | ||
} else { | ||
return word.charAt(0).toUpperCase() + word.slice(1); | ||
} | ||
}) | ||
.join(" "); | ||
} | ||
} | ||
|
||
const NextBreadcrumb = () => { | ||
const paths = usePathname(); | ||
const pathNames = paths.split("/").filter((path) => path); | ||
const separator = <span className="mx-2">/</span>; | ||
return ( | ||
pathNames.length > 0 && ( | ||
<div className="mx-20"> | ||
<ul className="flex py-5"> | ||
<li className="hover:opacity-70 hover:underline mx-2"> | ||
<Link href={"/"}> | ||
<FaHome className="mt-1" /> | ||
</Link> | ||
</li> | ||
{pathNames.length > 0 && separator} | ||
{pathNames.map((link, index) => { | ||
const href = `/${pathNames.slice(0, index + 1).join("/")}`; | ||
const itemClasses = | ||
paths === href | ||
? "opacity-70 cursor-default" | ||
: "hover:opacity-70 hover:underline"; | ||
return ( | ||
<React.Fragment key={index}> | ||
<li className="mx-2"> | ||
<Link className={itemClasses} href={href}> | ||
{cleanUpLink(link)} | ||
</Link> | ||
</li> | ||
{pathNames.length !== index + 1 && separator} | ||
</React.Fragment> | ||
); | ||
})} | ||
</ul> | ||
</div> | ||
) | ||
); | ||
}; | ||
|
||
export default NextBreadcrumb; |
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,9 +1,8 @@ | ||
--- | ||
title: "About" | ||
cannonicalUrl: https://parmipicks.com/about | ||
blocks: | ||
- body: "# \U0001F4D6 About\n\nI appreciate a good chicken parmi, and ParmiPicks is my way of sharing my experiences with others. There was a restaurant near where I grew up that had a memorable parmi with quality chicken, a good amount of sauce, and diced bacon instead of ham. The generous portion size and tasty sides made it stand out.\n\n## ⚖️ The Rating System\n\nI rate each parmi on a scale of 0 to 10, allowing for one decimal point (e.g., 4.5). Here's what goes into each rating:\n\n* \U0001F35B The whole package: Everything on the plate counts, from the chicken and toppings to the chips and salad.\n* \U0001F31F Focus on the parmi: Nothing off the plate matters. Even if I have a bad experience at the restaurant, it won't affect the rating. The parmi is the star of the show.\n\n\U0001F3AF I believe this rating system is fair and reasonable because it focuses solely on the quality and taste of the chicken parmi and its accompanying sides. By not allowing external factors to influence the rating, I can provide a more objective assessment of each parmi. \n\n\U0001F4E3 That being said, I appreciate any feedback or suggestions for improving the rating system.\n\n\n\U0001F37D️ Feel free to browse my reviews and discover various chicken parmis from different places. Enjoy!\n" | ||
color: default | ||
_template: content | ||
--- | ||
|
||
|
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,5 +1,6 @@ | ||
--- | ||
title: Parmi Picks Home | ||
cannonicalUrl: https://parmipicks.com | ||
blocks: | ||
- tagline: "" | ||
headline: Parmi Picks | ||
|
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
Oops, something went wrong.