From 67df5aa25c2cd56c01e02d4c92a869273f269923 Mon Sep 17 00:00:00 2001 From: Matthew Heroux Date: Tue, 26 Dec 2023 00:22:28 -0600 Subject: [PATCH] feat: add paper (#780) Signed-off-by: hxtree --- .../src/pages/archetypes.page.tsx | 13 +++--- .../src/pages/character-sheets.page.tsx | 6 ++- clients/admin-client/src/pages/dice.page.tsx | 17 ++++---- clients/admin-client/src/pages/home.page.tsx | 24 ++++++----- .../src/components/Alert/Alert.tsx | 2 +- .../src/components/AppBar/AppBar.tsx | 2 +- .../src/components/AppBar/style.scss | 2 +- .../src/components/Button/style.module.scss | 13 +++++- .../src/components/Icons/Icons.ts | 1 + .../src/components/Layout/Layout.tsx | 22 ---------- .../src/components/Paper/Paper.tsx | 14 +++++++ .../src/components/Paper/style.module.scss | 8 ++++ .../components/Typography/style.module.scss | 9 ++--- clients/design-system/src/components/index.ts | 1 + clients/design-system/src/index.scss | 8 +++- .../src/styles/utils/_color-pallette.scss | 5 ++- .../stories/pages/Homepage.stories.tsx | 40 ++++++++++--------- 17 files changed, 110 insertions(+), 77 deletions(-) create mode 100644 clients/design-system/src/components/Paper/Paper.tsx create mode 100644 clients/design-system/src/components/Paper/style.module.scss diff --git a/clients/admin-client/src/pages/archetypes.page.tsx b/clients/admin-client/src/pages/archetypes.page.tsx index fa9be557f..9d614331c 100644 --- a/clients/admin-client/src/pages/archetypes.page.tsx +++ b/clients/admin-client/src/pages/archetypes.page.tsx @@ -1,13 +1,16 @@ +import { Paper } from '@cats-cradle/design-system/dist/main'; import ArchetypeSelect from '../components/ArchetypeSelect'; export default function ArchetypePage() { return (
-

Archetypes

-

- Archetypes serve as the fundamental blueprint for character sheets. They outline a character's abilities, potential, and constraints. Each character sheet draws inspiration from a designated archetype, shaping their possibilities and outlining the skills they can or cannot acquire. While an archetype does not detail everything, it plays a vital role in guiding both player and non-player character creation. -

- + +

Archetypes

+

+ Archetypes serve as the fundamental blueprint for character sheets. They outline a character's abilities, potential, and constraints. Each character sheet draws inspiration from a designated archetype, shaping their possibilities and outlining the skills they can or cannot acquire. While an archetype does not detail everything, it plays a vital role in guiding both player and non-player character creation. +

+ +
); } diff --git a/clients/admin-client/src/pages/character-sheets.page.tsx b/clients/admin-client/src/pages/character-sheets.page.tsx index 623fe863f..0e02d779c 100644 --- a/clients/admin-client/src/pages/character-sheets.page.tsx +++ b/clients/admin-client/src/pages/character-sheets.page.tsx @@ -1,7 +1,11 @@ +import { Paper } from '@cats-cradle/design-system/dist/main'; + export default function CharacterSheetsPage() { return (
-

Character Sheets

+ +

Character Sheets

+
); } diff --git a/clients/admin-client/src/pages/dice.page.tsx b/clients/admin-client/src/pages/dice.page.tsx index 217c36330..30f694d1e 100644 --- a/clients/admin-client/src/pages/dice.page.tsx +++ b/clients/admin-client/src/pages/dice.page.tsx @@ -1,15 +1,18 @@ +import { Paper } from '@cats-cradle/design-system/dist/main'; import { DiceAnalyzer } from '../components/DiceAnalyzer'; export default function DicePage() { return (
-

Dice Notation Analyzer

-

- Determine the appropriate dice notation for skill set rolls and - visualizes the impact of luck. Gain valuable insights into - chance's influence on game play outcomes. -

- + +

Dice Notation Analyzer

+

+ Determine the appropriate dice notation for skill set rolls and + visualizes the impact of luck. Gain valuable insights into + chance's influence on game play outcomes. +

+ +
); } diff --git a/clients/admin-client/src/pages/home.page.tsx b/clients/admin-client/src/pages/home.page.tsx index 7df966483..1e0373dce 100644 --- a/clients/admin-client/src/pages/home.page.tsx +++ b/clients/admin-client/src/pages/home.page.tsx @@ -1,18 +1,20 @@ -import { Button, Link } from '@cats-cradle/design-system/dist/main'; +import { Paper, Button, Link, FontAwesomeIcon, faArrowRight } from '@cats-cradle/design-system/dist/main'; export default function HomePage() { return (
-

Cats Cradle

-

Latest

-

Archetypes

-

- Attention, game masters! Introducing our latest tool designed exclusively for you. - Dive into the world of character archetypes with ease. - Uncover diverse options, check out base stats, and seamlessly explore backstories—all in one place. - No-frills, just a straightforward way to look at the data. Raise a pull request to suggest changes. -

- + +

Cats Cradle

+

Latest

+

Archetypes

+

+ Attention, game masters! Introducing our latest tool designed exclusively for you. + Dive into the world of character archetypes with ease. + Uncover diverse options, check out base stats, and seamlessly explore backstories—all in one place. + No-frills, just a straightforward way to look at the data. Raise a pull request to suggest changes. +

+ +
); } diff --git a/clients/design-system/src/components/Alert/Alert.tsx b/clients/design-system/src/components/Alert/Alert.tsx index ccb2dfe5a..5b28838b3 100644 --- a/clients/design-system/src/components/Alert/Alert.tsx +++ b/clients/design-system/src/components/Alert/Alert.tsx @@ -25,7 +25,7 @@ export const Alert = (props: AlertProps) => { return ( <> -
+
{ symbol } diff --git a/clients/design-system/src/components/AppBar/AppBar.tsx b/clients/design-system/src/components/AppBar/AppBar.tsx index 6d0907914..ab35d5e0a 100644 --- a/clients/design-system/src/components/AppBar/AppBar.tsx +++ b/clients/design-system/src/components/AppBar/AppBar.tsx @@ -29,7 +29,7 @@ export const AppBar = (props: AppBarProps) => {
-