diff --git a/README.md b/README.md index 59308b6..f8109d9 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@
[![CircleCI](https://circleci.com/gh/openfun/cunningham/tree/main.svg?style=svg)](https://circleci.com/gh/openfun/cunningham/tree/main) -[![Discord](https://img.shields.io/discord/1082704478463082496?style=flat&logo=discord&label=discord&labelColor=5b61f1&logoColor=white&color=313338)](https://discord.gg/3qjUJjp) +[![Discord](https://img.shields.io/discord/1082704478463082496?style=flat&logo=discord&label=discord&labelColor=5b61f1&logoColor=white&color=313338)](https://discord.gg/TXPSCMeDzd)
diff --git a/apps/demo/src/Home.tsx b/apps/demo/src/Home.tsx index ccc90f1..83a51a2 100644 --- a/apps/demo/src/Home.tsx +++ b/apps/demo/src/Home.tsx @@ -54,8 +54,8 @@ export const Home = ({ modal }: { modal: PageProps }) => { }, [pagination.page, sortModel, modal.isOpen, refresh]); return ( -
-
+
+

{/* eslint-disable-next-line react/no-unescaped-entities */} 🍿Cunningham's Cast @@ -76,82 +76,145 @@ export const Home = ({ modal }: { modal: PageProps }) => { > Add character -

-
- { - return ( - {params.row.sex} - ); + +
+
+ { - return params.row.birthDate.toLocaleDateString(); + { + id: "sex", + headerName: "Sex", + renderCell: (params) => { + return ( + {params.row.sex} + ); + }, }, - }, - { - id: "firstAppearanceDate", - headerName: "First Appearance", - renderCell: (params) => { - return params.row.firstAppearanceDate.toLocaleDateString(); + { + id: "birthDate", + headerName: "Birth Date", + renderCell: (params) => { + return params.row.birthDate.toLocaleDateString(); + }, }, - }, - { - id: "isGuest", - headerName: "Is Guest", - renderCell: (params) => { - return params.row.isGuest ? ( - check_box - ) : ( - - check_box_outline_blank - - ); + { + id: "firstAppearanceDate", + headerName: "First Appearance", + renderCell: (params) => { + return params.row.firstAppearanceDate.toLocaleDateString(); + }, }, - }, - { - id: "actions", - renderCell: (params) => ( -
-
+ { + id: "isGuest", + headerName: "Is Guest", + renderCell: (params) => { + return params.row.isGuest ? ( + check_box + ) : ( + + check_box_outline_blank + + ); + }, + }, + { + id: "actions", + renderCell: (params) => ( +
+ + + ); }; diff --git a/apps/demo/src/index.scss b/apps/demo/src/index.scss index 72b2494..0752fb8 100644 --- a/apps/demo/src/index.scss +++ b/apps/demo/src/index.scss @@ -23,10 +23,15 @@ a { // App html { - min-height: 100vh; background: linear-gradient(153deg, var(--c--theme--colors--greyscale-100) 0%, var(--c--theme--colors--greyscale-000) 100%); } +html, body, #root { + width: 100%; + height: 100%; + margin: 0; +} + .pattern { position: absolute; z-index: -1; @@ -65,6 +70,7 @@ html { .container { margin: auto; position: relative; + height: 100%; width: 1100px; @media (max-width: 1200px) { @@ -75,6 +81,10 @@ html { // Home .page__home { + display: flex; + height: 100%; + flex-direction: column; + &__title { gap: 1.5rem; margin: 4rem 0; @@ -86,6 +96,10 @@ html { margin-top: 1.5rem; } } + + section { + flex: 1; + } } html[data-theme="redflux"] { @@ -150,3 +164,21 @@ html[data-theme="blueney"] { justify-content: center; } } + +// links +.links { + border-top: thin solid var(--c--theme--colors--greyscale-300); + display: flex; + justify-content: space-between; + gap: 0.5rem; + + ul { + text-align: right; + padding: 0; + } + ul li { + display: inline-block; + padding: 0 0.5rem; + white-space: nowrap; + } +}