From 994518bd3a10f9d1f4e993b5bc5f539e3149a9e8 Mon Sep 17 00:00:00 2001 From: DrMint Date: Sat, 29 Jan 2022 10:43:51 +0100 Subject: [PATCH] changed the language selection button + replaced css with tailwind applies --- src/components/Panels/MainPanel.tsx | 31 +++++++----- src/pages/library/[slug].tsx | 56 +++++++--------------- src/tailwind.css | 74 ++++++----------------------- tailwind.config.js | 5 +- 4 files changed, 55 insertions(+), 111 deletions(-) diff --git a/src/components/Panels/MainPanel.tsx b/src/components/Panels/MainPanel.tsx index a3faeb2..5e8b80a 100644 --- a/src/components/Panels/MainPanel.tsx +++ b/src/components/Panels/MainPanel.tsx @@ -1,26 +1,31 @@ import Link from "next/link"; import NavOption from "components/PanelComponents/NavOption"; import SVG from "components/SVG"; +import { useRouter } from "next/router"; export default function MainPanel(): JSX.Element { + const router = useRouter(); return (
-
- -
-
+
+
+
+ -
-

Accord's Library

+
- +
+ +

Accord’s Library

+
+
- -

Accord’s Library is not affiliated with or endorsed by SQUARE - ENIX CO. LTD. All game assets and promotional materials belongs to © - SQUARE ENIX CO. LTD. + ENIX CO. LTD. All game assets and promotional materials belongs to + © SQUARE ENIX CO. LTD.

diff --git a/src/pages/library/[slug].tsx b/src/pages/library/[slug].tsx index 95e3349..7210d4c 100644 --- a/src/pages/library/[slug].tsx +++ b/src/pages/library/[slug].tsx @@ -29,7 +29,6 @@ applyCustomAppProps(Library, { }); export default function Library(props: Props): JSX.Element { - const router = useRouter(); const libraryItem = props.libraryItem.libraryItems.data[0]; return ( @@ -38,36 +37,6 @@ export default function Library(props: Props): JSX.Element {
-
-
-
- {libraryItem.attributes.thumbnail.data ? ( - { - ) : ( -
- )} -
- -

{libraryItem.attributes.title}

- {libraryItem.attributes.subtitle ? ( -

{libraryItem.attributes.subtitle}

- ) : ( - "" - )} -
- -
- {libraryItem.attributes.gallery.data.length > 0 ? ( @@ -157,18 +126,25 @@ export default function Library(props: Props): JSX.Element {
{libraryItem.attributes.gallery.data.length > 0 ? ( -