mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 16:06:12 +02:00
feat: link to the forum
This commit is contained in:
@@ -14,6 +14,15 @@ interface IMenuItemProps {
|
||||
}
|
||||
|
||||
const MenuItem: FC<IMenuItemProps> = ({ children, to }) => {
|
||||
if (to.match(/^(https?:\/\/)/)) {
|
||||
return (
|
||||
<SC.MenuItemExternal href={to} target="_blank">
|
||||
<SC.MenuItemText>{children}</SC.MenuItemText>
|
||||
<SC.MenuItemLine />
|
||||
</SC.MenuItemExternal>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<SC.MenuItem
|
||||
to={to}
|
||||
@@ -85,6 +94,9 @@ export const HomeHeader: FC<IHomeHeaderProps> = ({ isHome }) => {
|
||||
<MenuItem to="/rules">rules</MenuItem>
|
||||
<MenuItem to="/resources">resources</MenuItem>
|
||||
<MenuItem to="/archives">tech spotlights</MenuItem>
|
||||
<MenuItem to="https://forum.theprogrammershangout.com">
|
||||
forum
|
||||
</MenuItem>
|
||||
</SC.Menu>
|
||||
<DiscordButton>join us</DiscordButton>
|
||||
{isHome && <HomePartner />}
|
||||
|
||||
Reference in New Issue
Block a user