From 6cda24acd16d5bd0ecb726a8735d7b33f8c1bc7c Mon Sep 17 00:00:00 2001 From: Pedro Cabral Date: Thu, 2 Jul 2026 00:14:27 +0200 Subject: [PATCH] isolated storybook sections --- resources/views/storybook/index.blade.php | 72 ++----------------- .../storybook/sections/buttons.blade.php | 30 ++++++++ .../views/storybook/sections/cards.blade.php | 13 ++++ .../storybook/sections/colours.blade.php | 9 +++ .../storybook/sections/typography.blade.php | 7 ++ 5 files changed, 64 insertions(+), 67 deletions(-) create mode 100644 resources/views/storybook/sections/buttons.blade.php create mode 100644 resources/views/storybook/sections/cards.blade.php create mode 100644 resources/views/storybook/sections/colours.blade.php create mode 100644 resources/views/storybook/sections/typography.blade.php diff --git a/resources/views/storybook/index.blade.php b/resources/views/storybook/index.blade.php index 0486b65..1b376d1 100644 --- a/resources/views/storybook/index.blade.php +++ b/resources/views/storybook/index.blade.php @@ -10,72 +10,10 @@

Storybook

- -
-

Colors

- -
-
Primary
-
Secondary
-
Surface
-
-
- - -
-

Buttons

-

Enabled

- -
- Default - - Primary - - - Secondary - - - Outline -
- -

Disabled

- -
- Default - - Primary - - - Secondary - - - Outline -
-
- - -
-

Cards

-

With Header

- - -

This is a card component with header.

-
- -

Without Header

- -

This is a card component without header.

-
-
- - -
-

Typography

- -

Default text

-

Muted text

-

Primary text

-
+ @include('storybook.sections.colours') + @include('storybook.sections.buttons') + @include('storybook.sections.cards') + @include('storybook.sections.typography') - \ No newline at end of file + diff --git a/resources/views/storybook/sections/buttons.blade.php b/resources/views/storybook/sections/buttons.blade.php new file mode 100644 index 0000000..66a004e --- /dev/null +++ b/resources/views/storybook/sections/buttons.blade.php @@ -0,0 +1,30 @@ +
+

Buttons

+

Enabled

+ +
+ Default + + Primary + + + Secondary + + + Outline +
+ +

Disabled

+ +
+ Default + + Primary + + + Secondary + + + Outline +
+
diff --git a/resources/views/storybook/sections/cards.blade.php b/resources/views/storybook/sections/cards.blade.php new file mode 100644 index 0000000..6b428e8 --- /dev/null +++ b/resources/views/storybook/sections/cards.blade.php @@ -0,0 +1,13 @@ +
+

Cards

+

With Header

+ + +

This is a card component with header.

+
+ +

Without Header

+ +

This is a card component without header.

+
+
diff --git a/resources/views/storybook/sections/colours.blade.php b/resources/views/storybook/sections/colours.blade.php new file mode 100644 index 0000000..6e376c9 --- /dev/null +++ b/resources/views/storybook/sections/colours.blade.php @@ -0,0 +1,9 @@ +
+

Colors

+ +
+
Primary
+
Secondary
+
Surface
+
+
diff --git a/resources/views/storybook/sections/typography.blade.php b/resources/views/storybook/sections/typography.blade.php new file mode 100644 index 0000000..0a267e7 --- /dev/null +++ b/resources/views/storybook/sections/typography.blade.php @@ -0,0 +1,7 @@ +
+

Typography

+ +

Default text

+

Muted text

+

Primary text

+