gonito-frontend/src/components/elements/MobileChallengeMenu.js

41 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-07-15 10:30:43 +02:00
import React from "react";
2022-07-15 10:58:53 +02:00
import {FlexRow} from "../../utils/containers";
import styled from "styled-components";
import {Medium} from "../../utils/fonts";
2022-07-15 10:30:43 +02:00
2022-07-15 10:58:53 +02:00
const MenuOption = styled(Medium)`
cursor: pointer;
transition: color 0.3s ease-in-out;
&:hover {
color: ${({theme}) => theme.colors.green};
}
`;
const MobileChallengeMenu = (props) => {
2022-07-15 10:30:43 +02:00
return (
<>
2022-07-15 10:58:53 +02:00
<FlexRow gap='32px'>
<MenuOption as='button' to='/' onClick={() => props.setSection(0)}>
Leaderboard
</MenuOption>
<MenuOption as='button' to='/' onClick={() => props.setSection(1)}>
Readme
</MenuOption>
<MenuOption as='button' to='/' onClick={() => props.setSection(2)}>
How to
</MenuOption>
</FlexRow>
<FlexRow gap='36px'>
<MenuOption as='button' to='/' onClick={() => props.setSection(4)}>
My entries
</MenuOption>
<MenuOption as='button' to='/' onClick={() => props.setSection(3)}>
Submit
</MenuOption>
</FlexRow>
2022-07-15 10:30:43 +02:00
</>
);
}
export default MobileChallengeMenu;