-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64b8c1c
commit 7c6f242
Showing
6 changed files
with
65 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ import styled from '@emotion/styled'; | |
import Image from '@/shared/components/Image'; | ||
import LearningMarathonImgDesktop from '@/public/assets/[email protected]'; | ||
import LearningMarathonImgMobile from '@/public/assets/[email protected]'; | ||
import { Box,Button} from '@mui/material'; | ||
import { Box, Button } from '@mui/material'; | ||
import { useRouter } from 'next/router'; | ||
|
||
const StyledBanner = styled(Box)` | ||
|
@@ -63,33 +63,33 @@ const StyledBannerButton = styled(Button)` | |
|
||
const MarathonBanner = () => { | ||
const router = useRouter(); | ||
|
||
return ( | ||
<StyledBanner> | ||
<StyledBanner> | ||
<Box className="desktop"> | ||
<Image | ||
<Image | ||
src={LearningMarathonImgDesktop.src} | ||
alt="島島盃 - 學習馬拉松 2025 春季賽" | ||
height="inherit" | ||
background="linear-gradient(#fcfefe 10%, #e0f1f2 40%)" | ||
borderRadius="0" | ||
className="desktop" | ||
/> | ||
/> | ||
</Box> | ||
<Box className="mobile"> | ||
<Image | ||
<Image | ||
src={LearningMarathonImgMobile.src} | ||
alt="島島盃 - 學習馬拉松 2025 春季賽" | ||
height="inherit" | ||
background="linear-gradient(#fcfefe 10%, #e0f1f2 40%)" | ||
borderRadius="0" | ||
className="mobile" | ||
/> | ||
/> | ||
</Box> | ||
<StyledBannerButton onClick={() => { router.push('/learning-marathon#marathon-intro'); }}> | ||
不要錯過!點我了解 | ||
不要錯過!點我了解 | ||
</StyledBannerButton> | ||
</StyledBanner> | ||
</StyledBanner> | ||
); | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters