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 (
+
);
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 (
+
+ )
+}
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 (
-