Skip to content

Commit

Permalink
adding a back button on skule hunt page to return to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurikam2003 committed Jul 19, 2024
1 parent 48a3964 commit fb5391e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
Binary file added client/src/assets/misc/backarrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions client/src/assets/misc/left-arrow-svgrepo-com.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions client/src/pages/ScuntHome/ScuntHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { getScuntTeams } from '../../state/scuntTeams/saga';
// import { ProfilePageScuntTeam } from '../Profile/PageProfileFrosh';
const { axios } = useAxios();
import scuntLogo from '../../assets/scuntlogo/scunt_color_2t4.svg';
import arrowLogo from '../../assets/misc/left-arrow-svgrepo-com.svg'
import { SingleAccordion } from '../../components/text/Accordion/SingleAccordion/SingleAccordion';

export const PageScuntHome = () => {
Expand All @@ -33,13 +34,23 @@ export const PageScuntHome = () => {

return (
<>
<BackToProfileButton />
<ScuntCountdown />
<ScuntLinks />
<AboutScunt />
</>
);
};

const BackToProfileButton = () => {

return (
<Link to="/profile" className="back-button">
<img src={arrowLogo} alt="Back" className="back-icon" />
</Link>
);
};

const AboutScunt = () => {
const { darkMode } = useContext(DarkModeContext);

Expand Down
14 changes: 14 additions & 0 deletions client/src/pages/ScuntHome/ScuntHome.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,17 @@
margin: 10px 10px;
color: var(--text-dynamic);
}

.back-button {
position: absolute;
top: 16px;
left: 16px;
display: inline-block;
background: none;
}

.back-icon {
width: 24px;
height: 24px;
fill: purple;
}

0 comments on commit fb5391e

Please sign in to comment.