From d2da1d3bf77b4fe05043d7751192ab0fbd87a0df Mon Sep 17 00:00:00 2001
From: John Paul Larkin <107807466+John-Paul-Larkin@users.noreply.github.com>
Date: Tue, 29 Oct 2024 20:29:57 +0000
Subject: [PATCH 1/5] remove input-base class
---
app/(editor)/create/[[...paramsArr]]/_client.tsx | 2 +-
styles/globals.css | 4 ----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/app/(editor)/create/[[...paramsArr]]/_client.tsx b/app/(editor)/create/[[...paramsArr]]/_client.tsx
index 5b1852f9..b0d7bf30 100644
--- a/app/(editor)/create/[[...paramsArr]]/_client.tsx
+++ b/app/(editor)/create/[[...paramsArr]]/_client.tsx
@@ -557,7 +557,7 @@ const Create = ({ session }: { session: Session | null }) => {
type="button"
className="relative flex w-full focus:outline-none focus:ring-2 focus:ring-pink-300 focus:ring-offset-2 active:hover:bg-neutral-50 disabled:opacity-50"
>
-
+
{PREVIEW_URL}
diff --git a/styles/globals.css b/styles/globals.css
index ac5849a9..0959ae58 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -45,10 +45,6 @@ body {
}
}
-.input-base {
- @apply block w-full border px-2 py-2 text-black shadow-sm ring-offset-1 focus:border-pink-500 focus:outline-none focus:ring-2 focus:ring-neutral-300 disabled:opacity-50 dark:border-white dark:bg-black dark:text-white sm:text-sm;
-}
-
.nav-button {
@apply focus-style rounded-md px-2 py-2 text-neutral-900 hover:bg-neutral-200 hover:text-black focus:text-neutral-900 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-white dark:focus:text-white;
}
From 56209c60106fc830e86efb1211eb8825d2f818a1 Mon Sep 17 00:00:00 2001
From: John Paul Larkin <107807466+John-Paul-Larkin@users.noreply.github.com>
Date: Tue, 29 Oct 2024 20:49:10 +0000
Subject: [PATCH 2/5] remove footer links custom styles from globals.css
---
components/Footer/Footer.tsx | 6 +++++-
styles/globals.css | 21 ---------------------
tailwind.config.js | 8 ++++----
3 files changed, 9 insertions(+), 26 deletions(-)
diff --git a/components/Footer/Footer.tsx b/components/Footer/Footer.tsx
index b9377929..f91e354d 100644
--- a/components/Footer/Footer.tsx
+++ b/components/Footer/Footer.tsx
@@ -19,21 +19,25 @@ const navigation = {
social: [
{
name: "Twitter",
+ customStyle: "hover:bg-twitter focus:bg-twitter",
href: twitterUrl,
icon: Twitter,
},
{
name: "GitHub",
+ customStyle: "hover:bg-github focus:bg-github",
href: githubUrl,
icon: Github,
},
{
name: "Discord",
+ customStyle: "hover:bg-discord focus:bg-discord",
href: discordInviteUrl,
icon: Discord,
},
{
name: "Youtube",
+ customStyle: "hover:bg-youtube focus:bg-youtube",
href: youtubeUrl,
icon: Youtube,
},
@@ -77,7 +81,7 @@ const Footer = () => {
href={item.href}
target="_blank"
rel="noopener noreferrer"
- className={`focus-style rounded-md p-1 transition-all duration-300 hover:scale-105 hover:text-white hover:brightness-110 focus:scale-105 focus:text-white focus:brightness-110 ${item.name.toLowerCase()}`}
+ className={`focus-style rounded-md p-1 transition-all duration-300 hover:scale-105 hover:text-white hover:brightness-110 focus:scale-105 focus:text-white focus:brightness-110 ${item.customStyle.toLowerCase()}`}
>
{item.name}
diff --git a/styles/globals.css b/styles/globals.css
index 0959ae58..40174f81 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -1,12 +1,5 @@
@tailwind base;
-:root {
- --discord-clr: linear-gradient(to bottom, #4b83fb, #734df8);
- --youtube-clr: linear-gradient(to top, #6d0202 22%, #c90000 61%);
- --github-clr: #f17f06;
- --twitter-clr: #282828;
-}
-
body {
@apply bg-neutral-100 text-neutral-900 dark:bg-black dark:text-white;
}
@@ -320,20 +313,6 @@ table div {
animation: loader-dots3 0.6s infinite;
}
-/* Footer social hover effects */
-
-.twitter {
- @apply hover:bg-twitter focus:bg-twitter;
-}
-.github {
- @apply hover:bg-github focus:bg-github;
-}
-.discord {
- @apply hover:bg-discord focus:bg-discord;
-}
-.youtube {
- @apply hover:bg-youtube focus:bg-youtube;
-}
/* end of plate editor styles */
diff --git a/tailwind.config.js b/tailwind.config.js
index 803b0f88..104b9996 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -8,12 +8,12 @@ module.exports = {
extend: {
colors: {
black: "#040404",
- twitter: "var(--twitter-clr)",
- github: "var(--github-clr)",
+ twitter: "#282828",
+ github: "#f17f06",
},
backgroundImage: {
- discord: "var(--discord-clr)",
- youtube: "var(--youtube-clr)",
+ discord: "linear-gradient(to bottom, #4b83fb, #734df8)",
+ youtube: "linear-gradient(to top, #6d0202 22%, #c90000 61%)",
},
},
},
From 5c540f4948fc8fe5c20d31fd798c60bdb611ecbb Mon Sep 17 00:00:00 2001
From: John Paul Larkin <107807466+John-Paul-Larkin@users.noreply.github.com>
Date: Tue, 29 Oct 2024 20:52:24 +0000
Subject: [PATCH 3/5] remove focus-style-rounded class
---
components/ArticleMenu/ArticleMenu.tsx | 2 +-
components/ArticlePreview/ArticlePreview.tsx | 2 +-
styles/globals.css | 5 -----
3 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/components/ArticleMenu/ArticleMenu.tsx b/components/ArticleMenu/ArticleMenu.tsx
index b61db888..1c97ec37 100644
--- a/components/ArticleMenu/ArticleMenu.tsx
+++ b/components/ArticleMenu/ArticleMenu.tsx
@@ -150,7 +150,7 @@ const ArticleMenu = ({