Skip to content

Commit bbaf2cf

Browse files
Button styling fix
1 parent 8de44f8 commit bbaf2cf

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

src/components/CTA.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function CTA() {
1313
developer community.
1414
</p>
1515
<a
16-
className="discord-button bg-primary px-8 py-4 rounded-lg border-2 border-primary text-secondary hover:bg-secondary hover:text-primary transition-all"
16+
className="discord-button bg-primary px-8 py-4 rounded-lg border-2 border-primary text-secondary hover:bg-secondary hover:text-primary transition-all hover:no-underline"
1717
href="https://discord.gg/code-cafe"
1818
>
1919
Join Code Cafe

src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function Footer() {
66
<footer className="py-16 bg-secondary flex justify-around">
77
<div className="footer-container text-primary">
88
<h4 className="text-xl font-bold flex items-center gap-2">
9-
<Code size={48} className="text-accent" />
9+
<Code size={48} className="text-primary" />
1010
Code Cafe
1111
</h4>
1212
<p className="text-sm">Your home for coding and community</p>

src/components/Header.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import { NavLink } from "react-router";
2+
import { Code } from "lucide-react";
23

34
export default function Header() {
45
return (
56
<header className="bg-secondary py-4 flex justify-around items-center">
6-
<h1 className="text-primary text-3xl">Code Cafe</h1>
7+
<div className="flex gap-2 items-center">
8+
<Code size={48} className="text-primary" />
9+
<h1 className="text-primary text-3xl">Code Cafe</h1>
10+
</div>
711
<nav>
812
<ul className="flex list-none gap-3">
913
<li>

src/components/Hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export default function Hero() {
2323
/>
2424
</div>
2525
<div className="flex gap-10 my-6">
26-
<button className="px-8 py-4 rounded-lg border-2 border-secondary hover:border-secondary text-secondary hover:bg-secondary hover:text-primary transition-all">
26+
<button className="px-8 py-4 text-primary rounded-lg border-2 border-secondary hover:border-secondary bg-secondary hover:text-secondary hover:bg-primary transition-all">
2727
Join us
2828
</button>
29-
<button className="px-8 py-4 rounded-lg border-2 border-secondary hover:border-secondary text-secondary hover:bg-secondary hover:text-primary transition-all">
29+
<button className="px-8 py-4 text-primary rounded-lg border-2 border-secondary hover:border-secondary bg-secondary hover:text-secondary hover:bg-primary transition-all">
3030
Learn more
3131
</button>
3232
</div>

src/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ button {
5757
cursor: pointer;
5858
transition: border-color 0.25s;
5959
}
60+
6061
button:hover {
6162
border-color: #646cff;
6263
}
64+
6365
button:focus,
6466
button:focus-visible {
6567
outline: 4px auto -webkit-focus-ring-color;

0 commit comments

Comments
 (0)