forked from nulltea/zkTripster
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from tripster-hackers/lykhoyda/add_metamask_con…
…nection wip
- Loading branch information
Showing
4 changed files
with
80 additions
and
56 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 |
---|---|---|
@@ -1,24 +1,75 @@ | ||
import React from 'react'; | ||
import Typography from '@mui/material/Typography'; | ||
import Container from '@mui/material/Container'; | ||
import Box from '@mui/material/Box'; | ||
import styled from "@emotion/styled"; | ||
import Link from "@mui/material/Link"; | ||
|
||
const Footer: React.FC = () => { | ||
return ( | ||
<StyledBox component="footer" sx={{ py: 3, px: 2, mt: 'auto', backgroundColor: '#1976d2' }}> | ||
<Container maxWidth="sm"> | ||
<Typography variant="body1" color="white" > | ||
My sticky footer can be found here. | ||
</Typography> | ||
<StyledBox component="footer" sx={{py: 3, px: 2, mt: 'auto', backgroundColor: '#1976d2'}}> | ||
<Link href='https://github.com/tripster-hackers/zkTripster'> | ||
|
||
<Container> | ||
<RunningText> | ||
Ethical Hacking | Visit our Github | ||
</RunningText> | ||
</Container> | ||
</Link> | ||
|
||
</StyledBox> | ||
); | ||
}; | ||
|
||
const RunningText = styled(Box)` | ||
display: inline-block; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
box-sizing: border-box; | ||
animation: marquee 10s linear infinite; | ||
text-transform: none; | ||
@keyframes marquee { | ||
0% { | ||
transform: translateX(-100%); | ||
} | ||
100% { | ||
transform: translateX(100%); | ||
} | ||
} | ||
`; | ||
|
||
const Container = styled(Box)` | ||
color: white; | ||
width: 100%; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
box-sizing: border-box; | ||
max-width: 300px; | ||
border: 1px solid white; | ||
border-radius: 20px; | ||
text-transform: uppercase; | ||
background: transparent; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
transition: all 0.3s ease; | ||
&:hover { | ||
color: black; | ||
background: white; | ||
} | ||
`; | ||
|
||
|
||
const StyledBox = styled(Box)` | ||
display: flex; | ||
justify-content: flex-end; | ||
background-color: transparent; | ||
z-index: 5; | ||
a { | ||
text-transform: none; | ||
} | ||
`; | ||
|
||
|
||
export default Footer; |
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