From 8aa1315bd19f2ae0b1b8fff84ba282ae8cd050d5 Mon Sep 17 00:00:00 2001 From: Maciej Krawczyk <63869461+wzarek@users.noreply.github.com> Date: Wed, 8 May 2024 20:04:08 +0200 Subject: [PATCH 1/3] feat: hero section base component (like really BASE) --- Client/reasn-client/apps/web/app/page.tsx | 5 ++--- .../packages/ui/src/components/main/HeroSection.tsx | 7 +++++++ Client/reasn-client/packages/ui/src/index.tsx | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx diff --git a/Client/reasn-client/apps/web/app/page.tsx b/Client/reasn-client/apps/web/app/page.tsx index d8bbf2f0..1fb59eaf 100644 --- a/Client/reasn-client/apps/web/app/page.tsx +++ b/Client/reasn-client/apps/web/app/page.tsx @@ -1,14 +1,13 @@ "use client"; -import { Button } from "@reasn/ui"; +import { HeroSection } from "@reasn/ui"; import styles from "../styles/index.module.css"; export default function Web() { return (
-

Web

-
); } diff --git a/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx b/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx new file mode 100644 index 00000000..0a40ed03 --- /dev/null +++ b/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx @@ -0,0 +1,7 @@ +import React from 'react' + +export const HeroSection = () => { + return ( +
HeroSection
+ ) +} \ No newline at end of file diff --git a/Client/reasn-client/packages/ui/src/index.tsx b/Client/reasn-client/packages/ui/src/index.tsx index 4dbd459a..59314924 100644 --- a/Client/reasn-client/packages/ui/src/index.tsx +++ b/Client/reasn-client/packages/ui/src/index.tsx @@ -1,2 +1,3 @@ export { Button, type ButtonProps } from "./button"; export { Card, type CardProps, CardVariant } from "./components/Card"; +export { HeroSection } from "./components/main/HeroSection"; From da747b9fade9515c4a31e690e3fbe4e23208ae1e Mon Sep 17 00:00:00 2001 From: Maciej Krawczyk <63869461+wzarek@users.noreply.github.com> Date: Wed, 15 May 2024 16:13:39 +0200 Subject: [PATCH 2/3] feat: base styling for hero section --- Client/reasn-client/apps/web/app/page.tsx | 6 ++---- .../apps/web/styles/index.module.css | 3 --- .../ui/src/components/main/HeroCard.tsx | 14 ++++++++++++++ .../ui/src/components/main/HeroSection.tsx | 13 ++++++++++++- .../packages/ui/src/icons/Fire.tsx | 18 ++++++++++++++++++ .../packages/ui/src/icons/IconProps.ts | 5 +++++ 6 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 Client/reasn-client/packages/ui/src/components/main/HeroCard.tsx create mode 100644 Client/reasn-client/packages/ui/src/icons/Fire.tsx create mode 100644 Client/reasn-client/packages/ui/src/icons/IconProps.ts diff --git a/Client/reasn-client/apps/web/app/page.tsx b/Client/reasn-client/apps/web/app/page.tsx index 1fb59eaf..f16ce2dc 100644 --- a/Client/reasn-client/apps/web/app/page.tsx +++ b/Client/reasn-client/apps/web/app/page.tsx @@ -1,12 +1,10 @@ "use client"; -import { HeroSection } from "@reasn/ui"; - -import styles from "../styles/index.module.css"; +import { HeroSection } from "@reasn/ui/src"; export default function Web() { return ( -
+
); diff --git a/Client/reasn-client/apps/web/styles/index.module.css b/Client/reasn-client/apps/web/styles/index.module.css index d2a4fa15..e69de29b 100644 --- a/Client/reasn-client/apps/web/styles/index.module.css +++ b/Client/reasn-client/apps/web/styles/index.module.css @@ -1,3 +0,0 @@ -.container { - text-align: center; -} diff --git a/Client/reasn-client/packages/ui/src/components/main/HeroCard.tsx b/Client/reasn-client/packages/ui/src/components/main/HeroCard.tsx new file mode 100644 index 00000000..05a19a94 --- /dev/null +++ b/Client/reasn-client/packages/ui/src/components/main/HeroCard.tsx @@ -0,0 +1,14 @@ +import React from 'react' + +export const HeroCard = () => { + return ( +
+
+

#platne

+

#wroclaw

+

#koncert

+
+

koncert fagaty

+
+ ) +} diff --git a/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx b/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx index 0a40ed03..19ec5ded 100644 --- a/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx +++ b/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx @@ -1,7 +1,18 @@ import React from 'react' +import { Fire } from '../../icons/Fire' +import { HeroCard } from './HeroCard' export const HeroSection = () => { return ( -
HeroSection
+
+
+
+ +

+ to jest teraz
na topie +

+
+ +
) } \ No newline at end of file diff --git a/Client/reasn-client/packages/ui/src/icons/Fire.tsx b/Client/reasn-client/packages/ui/src/icons/Fire.tsx new file mode 100644 index 00000000..e4d47a48 --- /dev/null +++ b/Client/reasn-client/packages/ui/src/icons/Fire.tsx @@ -0,0 +1,18 @@ +import React from 'react' + +export const Fire = (props: IconProps) => { + const { className, colors, gradientTransform } = props + + return ( + + + + {colors?.map((color, index) => ( + + ))} + + + + + ) +} diff --git a/Client/reasn-client/packages/ui/src/icons/IconProps.ts b/Client/reasn-client/packages/ui/src/icons/IconProps.ts new file mode 100644 index 00000000..d457bf06 --- /dev/null +++ b/Client/reasn-client/packages/ui/src/icons/IconProps.ts @@ -0,0 +1,5 @@ +type IconProps = { + className?: string; + colors?: string[]; + gradientTransform?: string; +}; \ No newline at end of file From 6037479eea62fbf9830b43abf1a1ff5c6943c722 Mon Sep 17 00:00:00 2001 From: Maciej Krawczyk <63869461+wzarek@users.noreply.github.com> Date: Thu, 6 Jun 2024 20:45:18 +0200 Subject: [PATCH 3/3] feat: implemented hero section with card component (without RWD) --- Client/reasn-client/apps/web/app/page.tsx | 2 +- .../packages/ui/src/components/Card.tsx | 10 ++-- .../ui/src/components/main/HeroCard.tsx | 14 ------ .../ui/src/components/main/HeroSection.tsx | 31 ++++++++----- .../packages/ui/src/icons/Fire.tsx | 46 +++++++++++++------ .../packages/ui/src/icons/IconProps.ts | 8 ++-- 6 files changed, 60 insertions(+), 51 deletions(-) delete mode 100644 Client/reasn-client/packages/ui/src/components/main/HeroCard.tsx diff --git a/Client/reasn-client/apps/web/app/page.tsx b/Client/reasn-client/apps/web/app/page.tsx index f16ce2dc..47a2f97e 100644 --- a/Client/reasn-client/apps/web/app/page.tsx +++ b/Client/reasn-client/apps/web/app/page.tsx @@ -4,7 +4,7 @@ import { HeroSection } from "@reasn/ui/src"; export default function Web() { return ( -
+
); diff --git a/Client/reasn-client/packages/ui/src/components/Card.tsx b/Client/reasn-client/packages/ui/src/components/Card.tsx index 203c4012..9ceabaf5 100644 --- a/Client/reasn-client/packages/ui/src/components/Card.tsx +++ b/Client/reasn-client/packages/ui/src/components/Card.tsx @@ -28,12 +28,8 @@ export const Card = (props: Readonly) => { const CardBig = ({ event }: { event: string }) => { return (
- -
+ +

#abcd

#abcd

@@ -95,7 +91,7 @@ const CardList = ({ event }: { event: string }) => { alt="" className="absolute left-0 top-0 -z-10 w-full" /> -
+

#abcd

#abcd

diff --git a/Client/reasn-client/packages/ui/src/components/main/HeroCard.tsx b/Client/reasn-client/packages/ui/src/components/main/HeroCard.tsx deleted file mode 100644 index 05a19a94..00000000 --- a/Client/reasn-client/packages/ui/src/components/main/HeroCard.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' - -export const HeroCard = () => { - return ( -
-
-

#platne

-

#wroclaw

-

#koncert

-
-

koncert fagaty

-
- ) -} diff --git a/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx b/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx index 19ec5ded..485291d1 100644 --- a/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx +++ b/Client/reasn-client/packages/ui/src/components/main/HeroSection.tsx @@ -1,18 +1,25 @@ -import React from 'react' -import { Fire } from '../../icons/Fire' -import { HeroCard } from './HeroCard' +import React from "react"; +import { Fire } from "../../icons/Fire"; +import { Card, CardVariant } from "../Card"; export const HeroSection = () => { return ( -
-
-
- -

- to jest teraz
na topie +
+
+
+ +

+ to jest teraz
na topie

- +
+
+ +
- ) -} \ No newline at end of file + ); +}; diff --git a/Client/reasn-client/packages/ui/src/icons/Fire.tsx b/Client/reasn-client/packages/ui/src/icons/Fire.tsx index e4d47a48..4ae6646b 100644 --- a/Client/reasn-client/packages/ui/src/icons/Fire.tsx +++ b/Client/reasn-client/packages/ui/src/icons/Fire.tsx @@ -1,18 +1,38 @@ -import React from 'react' +import React from "react"; export const Fire = (props: IconProps) => { - const { className, colors, gradientTransform } = props + const { className, colors, gradientTransform } = props; return ( - - - - {colors?.map((color, index) => ( - - ))} - - - + + + + {colors?.map((color, index) => ( + + ))} + + + - ) -} + ); +}; diff --git a/Client/reasn-client/packages/ui/src/icons/IconProps.ts b/Client/reasn-client/packages/ui/src/icons/IconProps.ts index d457bf06..edcc6a2d 100644 --- a/Client/reasn-client/packages/ui/src/icons/IconProps.ts +++ b/Client/reasn-client/packages/ui/src/icons/IconProps.ts @@ -1,5 +1,5 @@ type IconProps = { - className?: string; - colors?: string[]; - gradientTransform?: string; -}; \ No newline at end of file + className?: string; + colors?: string[]; + gradientTransform?: string; +};