From 369008c03fc01e8d11bb25f18f37b836a870d91f Mon Sep 17 00:00:00 2001 From: Kiran Date: Thu, 24 Feb 2022 08:58:53 +0530 Subject: [PATCH] Add header and footer --- components/Footer.tsx | 45 +++++++++++++++++++++++++++++++++++++++++++ components/Header.tsx | 27 ++++++++++++++++++++++++++ components/Layout.tsx | 11 ++++++----- pages/index.tsx | 34 +++++++++++++++----------------- 4 files changed, 94 insertions(+), 23 deletions(-) create mode 100644 components/Footer.tsx create mode 100644 components/Header.tsx diff --git a/components/Footer.tsx b/components/Footer.tsx new file mode 100644 index 0000000..32cc029 --- /dev/null +++ b/components/Footer.tsx @@ -0,0 +1,45 @@ +export default function Footer() { + return ( + + ); +} diff --git a/components/Header.tsx b/components/Header.tsx new file mode 100644 index 0000000..47eabad --- /dev/null +++ b/components/Header.tsx @@ -0,0 +1,27 @@ +export default function Header() { + return ( +
+
+ + + + + Mock SAML + + +
+
+ ); +} diff --git a/components/Layout.tsx b/components/Layout.tsx index 99192b5..5f6351f 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -1,4 +1,6 @@ -import type { ReactNode } from "react"; +import type { ReactNode } from 'react'; +import Footer from './Footer'; +import Header from './Header'; type LayoutProps = { children: ReactNode; @@ -6,10 +8,9 @@ type LayoutProps = { export default function Layout({ children }: LayoutProps) { return ( <> -
-

Mock SAML IdP

-
-
{children}
+
+
{children}
+ ); } diff --git a/pages/index.tsx b/pages/index.tsx index 7c3431c..c4401a6 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,10 +1,10 @@ -import { GetStaticProps } from "next"; -import { IdPMetadata } from "../types"; -import config from "../lib/env"; -import { fetchPublicKey } from "../utils"; -import React from "react"; -import Link from "next/link"; -import Head from "next/head"; +import { GetStaticProps } from 'next'; +import Head from 'next/head'; +import Link from 'next/link'; +import React from 'react'; +import config from '../lib/env'; +import { IdPMetadata } from '../types'; +import { fetchPublicKey } from '../utils'; export const getStaticProps: GetStaticProps = async () => { const metadata: IdPMetadata = { @@ -22,22 +22,20 @@ export const getStaticProps: GetStaticProps = async () => { const Home: React.FC<{ metadata: IdPMetadata }> = ({ metadata }) => { return ( -
+
Mock SAML IdP - Metadata -
-

SSO URL

-

{metadata.ssoUrl}

-

Entity ID

-

{metadata.entityId}

-

Certificate

-

- {metadata.certificate} -

+
+

SSO URL

+

{metadata.ssoUrl}

+

Entity ID

+

{metadata.entityId}

+

Certificate

+

{metadata.certificate}



- Download Metadata + Download Metadata