Skip to content

Commit

Permalink
add Discord server link to hero section and fix that annoying blue fo…
Browse files Browse the repository at this point in the history
…nt in the buttons
  • Loading branch information
Majestic9169 committed Nov 15, 2024
1 parent c9f57e9 commit f3e2bfb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import hook from '../assets/igloo-scroll-hook-edit.png';
import sign from '../assets/sign-post.png';
import "../styles/Hero.css";
import "../styles/App.css";
import { MENTOR_MANUAL_LINK, STUDENT_MANUAL_LINK } from '../util/constants';
import { FaDiscord } from 'react-icons/fa';
import { DISCORD_INVITE, MENTOR_MANUAL_LINK, STUDENT_MANUAL_LINK } from '../util/constants';

export const HeroComponent = () => {
return (
Expand All @@ -16,8 +17,9 @@ export const HeroComponent = () => {
<h1>Kharagpur <span className='yellow-text'>Winter<br />of Code</span> 2024</h1>
</div>
<div className="hero-button-container">
<button className="hero-button"> <a href={STUDENT_MANUAL_LINK} target="_blank">Student Manual </a></button>
<button className="hero-button"> <a href={MENTOR_MANUAL_LINK} target="_blank">Mentor Manual </a></button>
<a href={STUDENT_MANUAL_LINK} target="_blank"><button className='hero-button'>Student Manual</button> </a>
<a href={MENTOR_MANUAL_LINK} target="_blank"><button className='hero-button'>Mentor Manual</button> </a>
<a href={DISCORD_INVITE} target="_blank"><button className='discord-button'><FaDiscord className='discord-icon' /><p>Discord Server</p></button> </a>
</div>
</div>
<div className="hero-images">
Expand Down
32 changes: 32 additions & 0 deletions src/styles/Hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,43 @@
border-radius: 0.5rem;
}

.discord-button {
background-color: #272a2f;
box-shadow: 4px 4px #6a6a6a;
transition: background-color 200ms;
font-size: 1rem;
padding: 1rem;
border-radius: 0.5rem;
display: flex;
justify-content: center;
gap: 6px;
align-items: center;
}

.discord-button p {
margin: 0;
padding: 0;
}

.discord-icon {
color: #7289d7;
transition: color 200ms;
}

.hero-button:hover {
background-color: rgba(256, 256, 256, 0.8);
cursor: pointer;
}

.discord-button:hover {
cursor: pointer;
background-color: #7289d7;
}

.discord-button:hover .discord-icon {
color: #272a2f;
}

.hero-images {
display: flex;
flex-direction: row;
Expand Down

0 comments on commit f3e2bfb

Please sign in to comment.