From e9ef7957c8c6cf0368bd7863c3642a973bfb3a6d Mon Sep 17 00:00:00 2001 From: Maciej Krawczyk <63869461+wzarek@users.noreply.github.com> Date: Fri, 21 Jun 2024 18:55:06 +0200 Subject: [PATCH] feat: changed info to icons --- .../apps/web/app/events/[slug]/page.tsx | 30 ++++++++++++--- .../packages/ui/src/icons/Clock.tsx | 38 +++++++++++++++++++ .../packages/ui/src/icons/Location.tsx | 38 +++++++++++++++++++ .../packages/ui/src/icons/QuestionCircle.tsx | 38 +++++++++++++++++++ .../packages/ui/src/icons/TickCircle.tsx | 38 +++++++++++++++++++ .../packages/ui/src/icons/index.tsx | 4 ++ 6 files changed, 180 insertions(+), 6 deletions(-) create mode 100644 Client/reasn-client/packages/ui/src/icons/Clock.tsx create mode 100644 Client/reasn-client/packages/ui/src/icons/Location.tsx create mode 100644 Client/reasn-client/packages/ui/src/icons/QuestionCircle.tsx create mode 100644 Client/reasn-client/packages/ui/src/icons/TickCircle.tsx diff --git a/Client/reasn-client/apps/web/app/events/[slug]/page.tsx b/Client/reasn-client/apps/web/app/events/[slug]/page.tsx index bac8482c..a4b49eab 100644 --- a/Client/reasn-client/apps/web/app/events/[slug]/page.tsx +++ b/Client/reasn-client/apps/web/app/events/[slug]/page.tsx @@ -4,6 +4,12 @@ import { MOCK_IMG_URL } from "@reasn/ui/src/components/shared/Card"; import { ButtonBase } from "@reasn/ui/src/components/shared/form"; import { Comment } from "@reasn/ui/src/components/shared/Comment"; import { useEffect, useRef, useState } from "react"; +import { + Clock, + Location, + QuestionCircle, + TickCircle, +} from "@reasn/ui/src/icons"; const IMAGES = [ "https://images.pexels.com/photos/19012544/pexels-photo-19012544/free-photo-of-storm.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1", @@ -138,12 +144,24 @@ const EventPage = ({ params }: { params: { slug: string } }) => { nam.
-

czas: 12 grudnia 2024r. 12:00 - 13 grudnia 2024r. 23:48

-

adres: Wrocław, C-16 Politechnika Wrocławska, Polska

-

- biorący udział: 20 - zainteresowani: 200 -

+
+ +

12 grudnia 2024r. 12:00 - 13 grudnia 2024r. 23:48

+
+
+ +

Wrocław, C-16 Politechnika Wrocławska, Polska

+
+
+
+ + 60 zainteresowanych +
+
+ + 20 bierze udział +
+

Dodatkowe informacje:

diff --git a/Client/reasn-client/packages/ui/src/icons/Clock.tsx b/Client/reasn-client/packages/ui/src/icons/Clock.tsx new file mode 100644 index 00000000..0612b683 --- /dev/null +++ b/Client/reasn-client/packages/ui/src/icons/Clock.tsx @@ -0,0 +1,38 @@ +import React from "react"; + +export const Clock = (props: IconProps) => { + const { className, colors, gradientTransform } = props; + + return ( + + + + {colors?.map((color, index) => ( + + ))} + + + + + ); +}; diff --git a/Client/reasn-client/packages/ui/src/icons/Location.tsx b/Client/reasn-client/packages/ui/src/icons/Location.tsx new file mode 100644 index 00000000..8c70c1bb --- /dev/null +++ b/Client/reasn-client/packages/ui/src/icons/Location.tsx @@ -0,0 +1,38 @@ +import React from "react"; + +export const Location = (props: IconProps) => { + const { className, colors, gradientTransform } = props; + + return ( + + + + {colors?.map((color, index) => ( + + ))} + + + + + ); +}; diff --git a/Client/reasn-client/packages/ui/src/icons/QuestionCircle.tsx b/Client/reasn-client/packages/ui/src/icons/QuestionCircle.tsx new file mode 100644 index 00000000..2be6d984 --- /dev/null +++ b/Client/reasn-client/packages/ui/src/icons/QuestionCircle.tsx @@ -0,0 +1,38 @@ +import React from "react"; + +export const QuestionCircle = (props: IconProps) => { + const { className, colors, gradientTransform } = props; + + return ( + + + + {colors?.map((color, index) => ( + + ))} + + + + + ); +}; diff --git a/Client/reasn-client/packages/ui/src/icons/TickCircle.tsx b/Client/reasn-client/packages/ui/src/icons/TickCircle.tsx new file mode 100644 index 00000000..14e92069 --- /dev/null +++ b/Client/reasn-client/packages/ui/src/icons/TickCircle.tsx @@ -0,0 +1,38 @@ +import React from "react"; + +export const TickCircle = (props: IconProps) => { + const { className, colors, gradientTransform } = props; + + return ( + + + + {colors?.map((color, index) => ( + + ))} + + + + + ); +}; diff --git a/Client/reasn-client/packages/ui/src/icons/index.tsx b/Client/reasn-client/packages/ui/src/icons/index.tsx index 3ce9045c..118c5559 100644 --- a/Client/reasn-client/packages/ui/src/icons/index.tsx +++ b/Client/reasn-client/packages/ui/src/icons/index.tsx @@ -1 +1,5 @@ export { Fire } from "./Fire"; +export { Clock } from "./Clock"; +export { Location } from "./Location"; +export { QuestionCircle } from "./QuestionCircle"; +export { TickCircle } from "./TickCircle";