diff --git a/apps/app/src/components/PageTitleLayout/PageTitleLayout.module.scss b/apps/app/src/components/PageTitleLayout/PageTitleLayout.module.scss new file mode 100644 index 00000000..a1a859a6 --- /dev/null +++ b/apps/app/src/components/PageTitleLayout/PageTitleLayout.module.scss @@ -0,0 +1,36 @@ +.main { + background-color: $primary-black; + height: 100%; + display: flex; + flex-direction: column; + + @media screen and (min-width: $breakpoint-tablet) { + box-sizing: border-box; + padding: 24px; + } + + .title { + @include heading-2; + color: white; + text-transform: uppercase; + font-weight: 400; + margin: 64px auto 24px 24px; + + @media screen and (min-width: $breakpoint-tablet) { + margin: 80px auto 40px; + } + } + + .content { + width: 100%; + height: 100%; + background-color: $primary-background; + background-color: white; + border-radius: 16px 16px 0px 0px; + box-shadow: 0px -4px 20px 0px rgba(23, 22, 21, 0.3); + + @media screen and (min-width: $breakpoint-tablet) { + border-radius: 24px; + } + } +} diff --git a/apps/app/src/components/PageTitleLayout/PageTitleLayout.tsx b/apps/app/src/components/PageTitleLayout/PageTitleLayout.tsx new file mode 100644 index 00000000..61689d86 --- /dev/null +++ b/apps/app/src/components/PageTitleLayout/PageTitleLayout.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import c from './PageTitleLayout.module.scss'; + +type PageTitleLayoutType = { + title: string; + children?: React.ReactNode; +}; + +const PageTitleLayout: React.FC = ({ + title, + children, +}) => { + return ( +
+

{title}

+
{children}
+
+ ); +}; + +export default PageTitleLayout; diff --git a/apps/app/src/components/PageTitleLayout/index.ts b/apps/app/src/components/PageTitleLayout/index.ts new file mode 100644 index 00000000..e0398fce --- /dev/null +++ b/apps/app/src/components/PageTitleLayout/index.ts @@ -0,0 +1,3 @@ +import PageTitleLayout from './PageTitleLayout'; + +export default PageTitleLayout; diff --git a/apps/app/src/pages/FlyTalksPage/FlyTalksPage.tsx b/apps/app/src/pages/FlyTalksPage/FlyTalksPage.tsx index 4062ab6c..e98e6405 100644 --- a/apps/app/src/pages/FlyTalksPage/FlyTalksPage.tsx +++ b/apps/app/src/pages/FlyTalksPage/FlyTalksPage.tsx @@ -1,7 +1,5 @@ +import PageTitleLayout from '../../components/PageTitleLayout'; + export const FlyTalksPage = () => { - return ( -
-

Fly Talks

-
- ); + return ; };