Skip to content

Commit

Permalink
Issue 1161 Added hustle link to home page (reactplay#1162)
Browse files Browse the repository at this point in the history
* added hustle link to home page

* lint fix

* tonal update for links
  • Loading branch information
koustov committed Jun 7, 2023
1 parent ad98c3f commit c3dbe29
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/badges-dashboard/badge.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
grid-gap: 0.3rem;
margin-left: 0.4rem;
}

7 changes: 7 additions & 0 deletions src/common/defaultBanner/DefaultBanner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const DefaultBanner = () => {
ReactPlay is an open-source platform to learn, create and share ReactJS projects with the
developer community. Start by browsing the plays or exploring the source code.
</p>

<div className="body-c2a">
<Link className="body-c2a-btn body-c2a-btn--primary" to="/plays">
<MdManageSearch className="icon" />
Expand All @@ -40,6 +41,12 @@ const DefaultBanner = () => {
</span>
</a>
</div>
<div className="body-desc">
Check out our bouquet of events{' '}
<Link className="home-anchor" target="_blank" to="https://hustles.reactplay.io/">
<span className="text text-secondary">here</span>
</Link>
</div>
</div>
);
};
Expand Down
14 changes: 13 additions & 1 deletion src/common/header/HeaderNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BsTwitter, BsGithub, BsTrophyFill } from 'react-icons/bs';
import { FaLightbulb } from 'react-icons/fa';
import { BiMoney } from 'react-icons/bi';
import { IoAddSharp, IoShareSocial, IoHeartSharp } from 'react-icons/io5';
import { MdManageSearch, MdClose } from 'react-icons/md';
import { MdManageSearch, MdClose, MdEvent } from 'react-icons/md';
import SocialShare from 'common/components/SocialShare';
import { GoX } from 'react-icons/go';
import { Modal, Box, Typography, Menu } from '@mui/material';
Expand Down Expand Up @@ -74,6 +74,7 @@ const HeaderNav = ({ showBrowse }) => {
<span className="sr-only">Close</span>
</button>
</li>

{showBrowse && !showToggleMenu && (
<li>
<Link
Expand All @@ -86,6 +87,17 @@ const HeaderNav = ({ showBrowse }) => {
</Link>
</li>
)}
<li>
<Link
className="app-header-btn app-header-btn--secondary"
data-testid="events-btn"
target="_blank"
to="https://hustles.reactplay.io/"
>
<MdEvent className="icon" />
<span className="btn-label">Events</span>
</Link>
</li>
<li className="menu-spacer">
{process.env.NODE_ENV === 'development' ? (
<a
Expand Down
1 change: 1 addition & 0 deletions src/common/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
.header-links > li > .app-header-btn.app-header-btn--secondary {
border: solid 1px var(--color-neutral-60);
border-radius: 2rem;
margin-left: 0.4rem;
}

.header-links > li > .app-header-btn.app-header-btn--secondary:hover,
Expand Down
9 changes: 9 additions & 0 deletions src/common/home/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -769,11 +769,20 @@
font-family: var(--ff-accent);
}

.home-anchor .text-secondary {
color: var(--color-neutral-40);
}

.home-anchor:hover .text,
.home-anchor:focus .text {
color: var(--color-neutral-90);
}

.home-anchor:hover .text-secondary,
.home-anchor:focus .text-secondary {
color: var(--color-neutral-20);
}

.home-anchor:before {
content: '';
position: absolute;
Expand Down

0 comments on commit c3dbe29

Please sign in to comment.