Skip to content

Commit 051f633

Browse files
Remove & replace .fancy-link and .fancy-link:hover classes (#1170)
* Remove & replace .fancy-link and .fancy-link:hover classes
1 parent 732d91f commit 051f633

File tree

6 files changed

+17
-16
lines changed

6 files changed

+17
-16
lines changed

app/(app)/get-started/_client.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ const GetStarted: NextPage = () => {
3939
</h2>
4040
<p className="mt-2 text-center text-base text-neutral-500">
4141
Or{" "}
42-
<Link className="fancy-link font-medium" href="/">
42+
<Link
43+
className="cursor-pointer bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text font-medium tracking-wide text-transparent hover:from-orange-300 hover:to-pink-500"
44+
href="/"
45+
>
4346
return home
4447
</Link>
4548
</p>

app/(editor)/create/[[...paramsArr]]/_client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ const Create = ({ session }: { session: Session | null }) => {
794794
href="https://www.markdownguide.org/"
795795
target="_blank"
796796
rel="noopener noreferrer"
797-
className="fancy-link"
797+
className="cursor-pointer bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text tracking-wide text-transparent hover:from-orange-300 hover:to-pink-500"
798798
>
799799
this
800800
</a>{" "}
@@ -803,7 +803,7 @@ const Create = ({ session }: { session: Session | null }) => {
803803
href="https://www.markdownguide.org/"
804804
target="_blank"
805805
rel="noopener noreferrer"
806-
className="fancy-link"
806+
className="cursor-pointer bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text tracking-wide text-transparent hover:from-orange-300 hover:to-pink-500"
807807
>
808808
markdownguide
809809
</a>

components/ArticlePreview/ArticlePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const ArticlePreview: NextPage<Props> = ({
158158
<div className="flex w-full content-center justify-between">
159159
<div className="flex w-full items-center justify-between">
160160
<Link
161-
className="fancy-link semibold text-lg"
161+
className="semibold cursor-pointer bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text text-lg tracking-wide text-transparent hover:from-orange-300 hover:to-pink-500"
162162
href={`/articles/${slug}`}
163163
>
164164
Read full article

components/Comments/CommentsArea.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,17 @@ const CommentsArea = ({ postId, postOwnerId }: Props) => {
505505
<p className="mb-2">Hey! 👋</p>
506506
<p className="mb-2">Got something to say?</p>
507507
<p>
508-
<button onClick={() => signIn()} className="fancy-link">
508+
<button
509+
onClick={() => signIn()}
510+
className="cursor-pointer bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text tracking-wide text-transparent hover:from-orange-300 hover:to-pink-500"
511+
>
509512
Sign in
510513
</button>{" "}
511514
or{" "}
512-
<button onClick={() => signIn()} className="fancy-link">
515+
<button
516+
onClick={() => signIn()}
517+
className="cursor-pointer bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text tracking-wide text-transparent hover:from-orange-300 hover:to-pink-500"
518+
>
513519
sign up
514520
</button>{" "}
515521
to leave a comment.

components/EditorHints/EditorHints.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const EditorHints = () => {
2929
href="https://www.markdownguide.org/"
3030
target="_blank"
3131
rel="noopener noreferrer"
32-
className="fancy-link"
32+
className="cursor-pointer bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text tracking-wide text-transparent hover:from-orange-300 hover:to-pink-500"
3333
>
3434
this
3535
</a>{" "}
@@ -38,7 +38,7 @@ const EditorHints = () => {
3838
href="https://www.markdownguide.org/"
3939
target="_blank"
4040
rel="noopener noreferrer"
41-
className="fancy-link"
41+
className="cursor-pointer bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text tracking-wide text-transparent hover:from-orange-300 hover:to-pink-500"
4242
>
4343
markdownguide
4444
</a>

styles/globals.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ body {
8181
@apply bg-white bg-gradient-to-r text-neutral-800 dark:bg-neutral-900 dark:text-white;
8282
}
8383

84-
.fancy-link {
85-
@apply cursor-pointer bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text tracking-wide text-transparent;
86-
}
87-
88-
.fancy-link:hover {
89-
@apply from-orange-300 to-pink-500;
90-
}
91-
9284
.prose {
9385
@apply prose-neutral dark:prose-invert lg:prose-lg;
9486

0 commit comments

Comments
 (0)