From 830eb1da254ce3782964ab7a00676cefb4c81a81 Mon Sep 17 00:00:00 2001 From: Jeroen Branje Date: Wed, 6 Mar 2024 15:28:43 +0100 Subject: [PATCH] feat(envited.ascs.digital): Add Assets dummy pages Signed-off-by: Jeroen Branje --- .../src/components/Atoms/Button/Button.tsx | 10 +- apps/design-system/src/index.ts | 2 +- .../app/assets/detail/page.tsx | 13 + apps/envited.ascs.digital/app/assets/page.tsx | 13 + .../modules/Asset/Asset.tsx | 411 ++++++++++++++++++ .../modules/Asset/index.ts | 1 + .../modules/Assets/Assets.tsx | 283 ++++++++++++ .../modules/Assets/index.ts | 1 + .../modules/Footer/Footer.tsx | 4 +- .../modules/Header/Header.tsx | 22 +- 10 files changed, 749 insertions(+), 11 deletions(-) create mode 100644 apps/envited.ascs.digital/app/assets/detail/page.tsx create mode 100644 apps/envited.ascs.digital/app/assets/page.tsx create mode 100644 apps/envited.ascs.digital/modules/Asset/Asset.tsx create mode 100644 apps/envited.ascs.digital/modules/Asset/index.ts create mode 100644 apps/envited.ascs.digital/modules/Assets/Assets.tsx create mode 100644 apps/envited.ascs.digital/modules/Assets/index.ts diff --git a/apps/design-system/src/components/Atoms/Button/Button.tsx b/apps/design-system/src/components/Atoms/Button/Button.tsx index 8b88304b..b76f18f2 100644 --- a/apps/design-system/src/components/Atoms/Button/Button.tsx +++ b/apps/design-system/src/components/Atoms/Button/Button.tsx @@ -37,9 +37,9 @@ const Button: FC = ({ } const sizeClassMap = { - [Size.small]: 'py-3 px-4 md:py-4 md:px-6 text-xs sm:text-sm', - [Size.medium]: 'py-4 px-8 text-sm sm:text-base', - [Size.large]: 'py-4 px-10 text-base sm:text-2xl', + [Size.small]: 'py-2 px-4 text-xs sm:text-sm', + [Size.medium]: 'px-8 py-3 text-sm sm:text-base', + [Size.large]: 'px-8 py-3 text-base sm:text-2xl', } const indicatorColour = { @@ -53,13 +53,15 @@ const Button: FC = ({ }, } + // 'flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-600 px-8 py-3 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-50' + const buttonView = isWorking ? : children return ( + + + +
+

File information

+
+
    + {product.highlights.map(highlight => ( +
  • {highlight}
  • + ))} +
+
+
+ +
+

License

+

+ {license.summary}{' '} + + Read full license + +

+
+ + +
+ +
+ + + classNames( + selected + ? 'border-blue-800 text-blue-800' + : 'border-transparent text-gray-700 hover:border-gray-300 hover:text-gray-800', + 'whitespace-nowrap border-b-2 py-6 text-sm font-medium outline-none', + ) + } + > + Product details + + + classNames( + selected + ? 'border-blue-800 text-blue-800' + : 'border-transparent text-gray-700 hover:border-gray-300 hover:text-gray-800', + 'whitespace-nowrap border-b-2 py-6 text-sm font-medium outline-none', + ) + } + > + KML Road Map + + + classNames( + selected + ? 'border-blue-800 text-blue-800' + : 'border-transparent text-gray-700 hover:border-gray-300 hover:text-gray-800', + 'whitespace-nowrap border-b-2 py-6 text-sm font-medium outline-none', + ) + } + > + Google Road Map + + + classNames( + selected + ? 'border-blue-800 text-blue-800' + : 'border-transparent text-gray-700 hover:border-gray-300 hover:text-gray-800', + 'whitespace-nowrap border-b-2 py-6 text-sm font-medium outline-none', + ) + } + > + Comments + + +
+ + +

Product details

+
+
+
+
City
+
{product.city}
+
+
+
Country
+
{product.country}
+
+
+
Length
+
{product.length}
+
+
+
Road surface
+
{product.roadSurface}
+
+
+
Street name
+
{product.streetName}
+
+
+
Street type
+
{product.streetType}
+
+
+
Technology partner
+
{product.technologyPartner}
+
+
+
File format
+
{product.fileFormat}
+
+
+
Track type
+
{product.trackType}
+
+
+
Traffic management
+
{product.trafficManagement}
+
+
+
+
+ + +

KML Road Map

+ + +
+ + +

Google Road Map

+ +