Skip to content

Commit

Permalink
SUP-180: local footer (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese authored Apr 18, 2024
1 parent f1a53ef commit 4acbbf3
Show file tree
Hide file tree
Showing 27 changed files with 246 additions and 762 deletions.
37 changes: 6 additions & 31 deletions .storybook/stories/config-pages/LocalFooter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ const meta: Meta<ComponentStoryProps> = {
component: LocalFooter,
tags: ['autodocs'],
argTypes: {
suLocalFootLocOp: {
description: "Lockup Options",
options: ['a', 'b', 'd', 'e', 'h', 'i', 'm', 'o', 'p', 'r', 's', 't', 'none'],
control: {type: "select"}
},
suFooterEnabled: {control: "boolean"}
}
};
Expand All @@ -31,49 +26,29 @@ export const LocalFooterDisplay: Story = {
{title: "Action link 1", url: "https://localhost", internal: false},
{title: "Action link 2", url: "https://localhost", internal: false}
],
suLocalFootAddress: {
additionalName: "additional_name",
addressLine1: "address_line1",
addressLine2: "address_line2",
administrativeArea: "administrative_area",
country: {code: "country_code"},
familyName: "family_name",
givenName: "given_name",
locality: "locality",
organization: "organization",
postalCode: "postal_code",
sortingCode: "sorting_code",
},
suLocalFootFButton: "suLocalFoot_f_button",
suLocalFootFIntro: {processed: "suLocalFoot_f_intro"},
suLocalFootFMethod: "suLocalFoot_f_method",
suLocalFootFUrl: {title: "Form Action url", url: "https://localhost", internal: false},
suLocalFootLine1: "suLocalFoot_line_1",
suLocalFootLine2: "suLocalFoot_line_2",
suLocalFootLine3: "suLocalFoot_line_3",
suLocalFootLine4: "suLocalFoot_line_4",
suLocalFootLine5: "suLocalFoot_line_5",
suLocalFootLocImg: null,
suLocalFootLocLink: {title: "suLocalFoot_loc_link", url: "https://localhost", internal: false},
suLocalFootPrCo: {processed: "suLocalFoot_pr_co"},
suLocalFootPrCo: {processed: "First Content Block"},
suLocalFootPrimary: [
{title: "Primary link 1", url: "https://localhost", internal: false},
{title: "Primary link 2", url: "https://localhost", internal: false}
],
suLocalFootPrimeH: "suLocalFoot_prime_h",
suLocalFootSeCo: {processed: "suLocalFoot_se_co"},
suLocalFootPrimeH: "Primary Links Header",
suLocalFootSeCo: {processed: "Second Content Block"},
suLocalFootSecond: [
{title: "Second Link 1", url: "https://localhost", internal: false},
{title: "Second Link 2", url: "https://localhost", internal: false}
],
suLocalFootSecondH: "suLocalFoot_second_h",
suLocalFootSecondH: "Secondary Links Header",
suLocalFootSocial: [
{title: "Facebook", url: "https://localhost", internal: false},
{title: "YouTube", url: "https://localhost", internal: false}
],
suLocalFootSunetT: "suLocalFoot_sunet_t",
suLocalFootTr2Co: {processed: "suLocalFoot_tr2_co"},
suLocalFootTrCo: {processed: "suLocalFoot_tr_co"},
suLocalFootTr2Co: {processed: "Third Content Block"},
suLocalFootTrCo: {processed: "Fourth Content Block"},
suLocalFootUseLoc: true,
suLocalFootUseLogo: true,
suLocalFootLocOp: "suLocalFoot_loc_op",
Expand Down
142 changes: 0 additions & 142 deletions .storybook/stories/elements/lockup/Lockup.stories.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import BackToTop from "@components/elements/back-to-top";
import PageFooter from "@components/global/page-footer";
import PageHeader from "@components/global/page-header";
import {Icon} from "next/dist/lib/metadata/types/metadata-types";
import {sourceSans3} from "../src/styles/fonts";
import {montserrat} from "../src/styles/fonts";
import DrupalWindowSync from "@components/elements/drupal-window-sync";
import {isPreviewMode} from "@lib/drupal/utils";
import UserAnalytics from "@components/elements/user-analytics";
Expand Down Expand Up @@ -45,7 +45,7 @@ export const revalidate = false;
const RootLayout = ({children, modal}: { children: React.ReactNode, modal: React.ReactNode }) => {
const isPreview = isPreviewMode();
return (
<html lang="en" className={sourceSans3.className}>
<html lang="en" className={montserrat.className}>
{/* Add Google Analytics and SiteImprove when not in preview mode. */}
{!isPreview &&
<UserAnalytics/>
Expand Down
Loading

0 comments on commit 4acbbf3

Please sign in to comment.