From 08ac36c7fcdf4eb38505aaaca6a49eceb14f6f2b Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 18 Dec 2022 05:01:10 +0100 Subject: [PATCH] Added Hover support to Home page --- components/styles/content.tsx | 4 ++-- pages/index.tsx | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/styles/content.tsx b/components/styles/content.tsx index ef3281b..31c35d8 100644 --- a/components/styles/content.tsx +++ b/components/styles/content.tsx @@ -49,11 +49,11 @@ const CardStyle = css` height: 240px; `; -const CardLink = styled(Link)` +export const CardLink = styled(Link)` ${CardStyle} `; -const CardStyleWrap = styled.div` +export const CardStyleWrap = styled.div` ${CardStyle} `; diff --git a/pages/index.tsx b/pages/index.tsx index 0071a3a..6ca59a4 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,6 +1,6 @@ import Head from 'next/head' import Link from 'next/link'; -import { PageTitle, PageDescription, PageContentBox, PageCard } from '../components/styles/content'; +import { PageTitle, PageDescription, PageContentBox, PageCard, CardLink } from '../components/styles/content'; export default function Home() { return ( @@ -18,26 +18,26 @@ export default function Home() { Feel free to look around - - + +

About →

Useless Info, don't bother

- -
+
+ - - + +

Games →

List of all available Servers

- -
+
+ - - + +

Services →

List of available Services

- -
+
+
)