-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New consulting page breadcrumbs (#3353)
* initial commit to setup shadcn * added config for shadcn and components.json * shadcn import setup and breadcrum template code * breadcrumbs component * 🎨 moved base case to switch statement * breadcrumb component integrated with Tina * adding a consulting v2 collection (WIP) * 🪓 Split consulting page into 2 separate routes * starting to create the blocks page * 💄 Replaced navbar on consultingv2 page with stylistically consistent navbar * 🐛 Fixed Breadcrumbs not rendering on new consulting pages * 🏷️ Added explicit typing for Breadcrumbs component * ♻️ Added variable for initial breadcrumb value * 💄 Fixed layout for v2 consulting page * 💄 Updated breadcrumbs to match figma prototype * 💄offset text underline for breadcrumbs to match figma prototype * 🎨 Added new background color type for new consulting pages * 💄Made breadcrumbs thinner to match figma prototype * ✨ Made breadcrumb default to title of the current page * ✨ updated consulting schema to automatically fill out first breadcrumb when the user leaves it blank * 🐛 Fixed consulting page not saving when no blocks are provided * 🪵 Removed console logging in consultingv2 return * 💄 Fixed responsive view for breadcrumbs & configured dark mode settings * 🦺 Added contextual editing for final breadcrumb * ✨ Added option to configure breadcrumb url segments * Fixed consulting page layout * Updated tina info fields to be consistent * 🦺 Applied tina editor feedback from Betty * 🦺 Made final breadcrumb clickable when empty * 💄 Added validation for final breadcrumb * 💄 Fixed missing bottom side padding for breadcrumb * 🐛 Fixed consulting page type inference throwing exception * Update consulting page v2 schema to always populate the last breadcrumb if not fileld out * 🦙 committing tina lock file * brought over layout fix from consulting page branch * 🐛 Fixed new consulting pages not being generated * 🚨 removed unused screen class * 🚨 Fixed class name order for hero component * 🚨 Fixed explicit any on new consulting page * ♻️ Simplified layout on consulting pages * 💄 Fixed old consulting page missing open sans font * 🔎 Added seo props to consulting pages * 🔥 Removed commented code inside of consulting page server component * 🚨 Fixed linting errors * 💄 made section padding for consulting 2 smaller on mobile devices * 💄 Added padding around breadcrumbs rather than page * 🚨 Disabled eslint rule about custom tailwind classes * 🚚 updated breadcrumb file names to match current tina collection naming * 🔧 Fixed es lint ignore message * ⬆️ update pnpm lock file * 🚨 Fixed casing on "stroke-linecap" property * 🔥 removed duplicated consulting page information * 🦙 Comitting updated tina lock file * 🐛 Fixed some consulting pages not being generated * 🐛 Fixed articlesConnection being initialized for no reason * 🐛 Fixed some consulting pages not being included in the initial fetch * ✏️ Renamed consulting page params to remove ambiguity * 💄 Added a prefix for the breadcrumbs component * 🦺 Added placeholder value for breadcrumb title * ✨ Added option to configure home route for breadcrumb component * 🦙 Updating schema new * 🔥 removed on save functionality for breadcrumbs * 🎨 Moved Breadcrumb schema to breadcrumbs folder * 🐛 Fixed screen flashing white after breadcrumbs are created * TinaCMS content update Co-authored-by: Caleb Williams <CalebWilliams@ssw.com.au> * TinaCMS content update Co-authored-by: Caleb Williams <CalebWilliams@ssw.com.au> * TinaCMS content update Co-authored-by: Caleb Williams <CalebWilliams@ssw.com.au> * ✏️ Reworded instructions for updating breadcrumbs * 🔥 Removed commented code * 🔥 Deleted test data for consulting v2 page * 🚨 Fixed linting warnings --------- Co-authored-by: isaaclombardssw <isaaclombard@ssw.com.au> Co-authored-by: tina-cloud-app[bot] <58178390+tina-cloud-app[bot]@users.noreply.github.com>
- Loading branch information
1 parent
203b63d
commit c86f287
Showing
32 changed files
with
1,401 additions
and
190 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,44 @@ | ||
"use client"; | ||
|
||
import { Blocks } from "@/components/blocks-renderer"; | ||
import { PreFooter } from "@/components/layout/footer/pre-footer"; | ||
import { SectionColor } from "@/components/util/constants/styles"; | ||
import { Container } from "@/components/util/container"; | ||
import { Section } from "@/components/util/section"; | ||
import { Consultingv2Query } from "@/tina/types"; | ||
|
||
type ConsultingV2PageProps<T> = { | ||
tinaProps: { | ||
data: Consultingv2Query; | ||
}; | ||
props: T; | ||
}; | ||
|
||
export default function ConsultingV2({ | ||
tinaProps, | ||
}: ConsultingV2PageProps<object>) { | ||
const { data } = tinaProps; | ||
|
||
return ( | ||
<> | ||
{/* eslint-disable-next-line tailwindcss/no-custom-classname*/} | ||
<div className="dark flex h-full flex-col"> | ||
<Section color={SectionColor.ToggleLightMode}> | ||
<Container width="custom" size="small" className="w-full sm:py-12"> | ||
<div className="w-full"> | ||
{data.consultingv2.blocks ? ( | ||
<Blocks | ||
prefix={"Consultingv2Blocks"} | ||
blocks={data.consultingv2.blocks} | ||
/> | ||
) : ( | ||
<></> | ||
)} | ||
</div> | ||
</Container> | ||
</Section> | ||
<PreFooter /> | ||
</div> | ||
</> | ||
); | ||
} |
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,21 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": false, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "styles.css", | ||
"baseColor": "zinc", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils", | ||
"ui": "@/components/ui", | ||
"lib": "@/lib", | ||
"hooks": "@/hooks" | ||
}, | ||
"iconLibrary": "lucide" | ||
} |
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
Oops, something went wrong.