From 362a4b9ba98c53ca0feff8cce88e33e8a93b3bad Mon Sep 17 00:00:00 2001 From: swapnilsparsh Date: Mon, 1 Jan 2024 17:08:18 +0530 Subject: [PATCH] Dark mode and image animation removed, footer fix --- components/Card/Card.js | 2 +- components/Footer.js | 75 ++++---------------------------------- components/FooterStyles.js | 65 --------------------------------- components/navbar/Links.js | 12 +----- pages/_document.js | 43 ---------------------- styles/globals.css | 1 + 6 files changed, 11 insertions(+), 187 deletions(-) delete mode 100644 components/FooterStyles.js delete mode 100644 pages/_document.js diff --git a/components/Card/Card.js b/components/Card/Card.js index 820db63e..b99cdd73 100644 --- a/components/Card/Card.js +++ b/components/Card/Card.js @@ -12,7 +12,7 @@ function Card({ head, link, image, alt, about }) {
-
+

import("./ThemeToggle"), { ssr: false, @@ -24,10 +12,6 @@ const Footer = () => {
-
-
- - Support - - - GitHub - - - - Product Hunt - - - - Twitter - - - - Newsletter - - -
-
- - Explore - - - Ambassador - - - - Programs - - - - WebDev - - - - Games - - -
-
+
-

Copyright © {year} DevEmpire

); }; diff --git a/components/FooterStyles.js b/components/FooterStyles.js deleted file mode 100644 index c2d99472..00000000 --- a/components/FooterStyles.js +++ /dev/null @@ -1,65 +0,0 @@ -import styled from 'styled-components'; -export const Column1 = styled.div` -display: grid; -width: 50%; -`; -export const Column2 = styled.div` -display: grid; -width:50%; -`; - -export const FooterLink = styled.a` - color: var(--native2); - margin-bottom: 20px; - font-size: 18px; - text-decoration: none; - cursor: pointer; - display: flex; - align-items: center; - gap: 10px; - width: max-content; - - &:hover { - color: var(--native1); - transition: color 0.1s ease-in; - } - - @media (min-width: 320px) and (max-width: 480px) { - font-size: 15px; - } - @media (max-width: 320px) { - margin-bottom: 10px; - font-size: 15px; - } -`; - -export const Heading1 = styled.p` - font-size: 24px; - color: var(--native2); - margin-top: 20px; - margin-bottom: 40px; - font-weight: bold; - display: block; - @media (min-width: 320px) and (max-width: 480px) { - font-size: 15px; - margin-top: 0px; - margin-bottom: 30px; - } - @media (max-width: 320px) { - margin-bottom: 10px; - } -`; -export const Heading2 = styled.p` - font-size: 24px; - color: var(--native2); - margin-bottom: 40px; - font-weight: bold; - display: block; - @media (min-width: 320px) and (max-width: 480px) { - font-size: 15px; - margin-bottom: 30px; - } - @media (max-width: 320px) { - margin-bottom: 10px; - } -`; diff --git a/components/navbar/Links.js b/components/navbar/Links.js index 61e76770..f2c2ac57 100644 --- a/components/navbar/Links.js +++ b/components/navbar/Links.js @@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react"; // import { NavLink } from "react-router-dom"; import Link from "next/link"; import { useRouter } from "next/router"; -import ThemeToggle from "../ThemeToggle"; +import Image from "next/image"; const Links = () => { const [menuopen, setmenuopen] = useState(false); @@ -40,9 +40,6 @@ const Links = () => {

Dev Empire

-
- -
@@ -261,13 +258,6 @@ const Links = () => {