Skip to content

Commit

Permalink
Force full width page if a normal banner is on the page
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Sep 18, 2024
1 parent 743e58b commit d4a30be
Show file tree
Hide file tree
Showing 4 changed files with 543 additions and 512 deletions.
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"dependencies": {
"@heroicons/react": "^2.1.5",
"@mui/base": "5.0.0-beta.40",
"@next/third-parties": "^14.2.11",
"@next/third-parties": "^14.2.12",
"@tailwindcss/container-queries": "^0.1.1",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/node": "^22.5.5",
"@types/react": "^18.3.7",
"@types/react-dom": "^18.3.0",
"algoliasearch": "^5.4.1",
"algoliasearch": "^5.5.0",
"autoprefixer": "^10.4.20",
"clsx": "^2.1.1",
"decanter": "^7.3.0",
Expand All @@ -31,8 +31,8 @@
"graphql-tag": "^2.12.6",
"html-entities": "^2.5.2",
"html-react-parser": "^5.1.16",
"next": "^14.2.11",
"postcss": "^8.4.45",
"next": "^14.2.12",
"postcss": "^8.4.47",
"qs": "^6.13.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand All @@ -46,7 +46,7 @@
"react-youtube": "^10.1.0",
"sharp": "^0.33.5",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.11",
"tailwindcss": "^3.4.12",
"typescript": "^5.6.2",
"usehooks-ts": "^3.1.0"
},
Expand All @@ -56,29 +56,29 @@
"@graphql-codegen/import-types-preset": "^3.0.0",
"@graphql-codegen/typescript-graphql-request": "^6.2.0",
"@graphql-codegen/typescript-operations": "^4.2.3",
"@next/bundle-analyzer": "^14.2.11",
"@storybook/addon-essentials": "^8.3.0",
"@storybook/addon-interactions": "^8.3.0",
"@storybook/addon-links": "^8.3.0",
"@next/bundle-analyzer": "^14.2.12",
"@storybook/addon-essentials": "^8.3.1",
"@storybook/addon-interactions": "^8.3.1",
"@storybook/addon-links": "^8.3.1",
"@storybook/addon-styling": "^1.3.7",
"@storybook/blocks": "^8.3.0",
"@storybook/nextjs": "^8.3.0",
"@storybook/react": "^8.3.0",
"@storybook/blocks": "^8.3.1",
"@storybook/nextjs": "^8.3.1",
"@storybook/react": "^8.3.1",
"@storybook/testing-library": "^0.2.2",
"@types/react-slick": "^0.23.13",
"concurrently": "^9.0.1",
"encoding": "^0.1.13",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.11",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.12",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-unused-imports": "^4.1.3",
"eslint-plugin-unused-imports": "^4.1.4",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"react-docgen": "^7.0.3",
"storybook": "^8.3.0",
"storybook": "^8.3.1",
"storybook-addon-module-mock": "^1.3.4",
"tsconfig-paths-webpack-plugin": "^4.1.0"
},
Expand Down
3 changes: 2 additions & 1 deletion src/components/elements/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {HtmlHTMLAttributes, MouseEventHandler} from "react"
import {Maybe} from "@lib/gql/__generated__/drupal.d"
import {clsx} from "clsx"
import {ArrowRightIcon} from "@heroicons/react/20/solid"
import {LinkProps} from "next/dist/client/link"

type Props = HtmlHTMLAttributes<HTMLAnchorElement | HTMLButtonElement> & {
/**
Expand Down Expand Up @@ -33,7 +34,7 @@ type Props = HtmlHTMLAttributes<HTMLAnchorElement | HTMLButtonElement> & {
/**
* Next.js prefetch functionality.
*/
prefetch?: boolean
prefetch?: LinkProps["prefetch"]
/**
* Type of button: submit, reset, or button.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const StanfordPagePage = ({node, ...props}: Props) => {
"ParagraphSumCarousel",
"ParagraphSumCourseFilter",
"ParagraphSumPillBanner",
"ParagraphStanfordBanner",
]
const pageTitleBanners: NodeStanfordPageSuPageBannerUnion["__typename"][] = [
"ParagraphStanfordPageTitleBanner",
Expand Down
Loading

0 comments on commit d4a30be

Please sign in to comment.