-
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.
- Loading branch information
Showing
20 changed files
with
194 additions
and
90 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { css } from '@emotion/react'; | ||
import { useGlobalTheme } from '../../styles/GlobalThemeContext'; | ||
import { Theme } from '../../styles/theme'; | ||
import Github from '/assets/github-mark.svg'; | ||
|
||
const style = (theme: Theme) => css` | ||
height: 100px; | ||
width: auto; | ||
margin-top: 30px; | ||
padding: 0 40px 0 40px; | ||
user-select: none; | ||
text-align: center; | ||
* { | ||
text-decoration: none; | ||
display: inline; | ||
line-height: 40px; | ||
font-size: 15px; | ||
color: ${theme.foreground}; | ||
margin-right: 15px; | ||
} | ||
svg { | ||
vertical-align: middle; | ||
margin-right: 5px; | ||
height: 20px; | ||
} | ||
p { | ||
margin: 0; | ||
line-height: 40px; | ||
font-size: 12px; | ||
} | ||
`; | ||
|
||
export default function Footer() { | ||
const { theme } = useGlobalTheme(); | ||
const github = 'https://github.com/chococookie-lol/BARAM/'; | ||
return ( | ||
<div css={style(theme)}> | ||
<span>© 2023 BARAM</span> | ||
<span>·</span> | ||
<a href="mailto: [email protected]">[email protected]</a> | ||
<span>·</span> | ||
<Github href={github} /> | ||
<a href={github}>Github</a> | ||
<br /> | ||
<p> | ||
BARAM isn't endorsed by Riot Games and doesn't reflect the views or opinions of | ||
Riot Games or anyone officially involved in producing or managing Riot Games properties. | ||
Riot Games, and all associated properties are trademarks or registered trademarks of Riot | ||
Games, Inc. | ||
</p> | ||
</div> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { SerializedStyles } from '@emotion/react'; | ||
import Image from 'next/image'; | ||
import { DEAFULT_PLACEHOLDER_GRAY } from '../../utils/ddragon'; | ||
|
||
interface LazyImageProps { | ||
src: string; | ||
width?: number; | ||
height?: number; | ||
alt: string; | ||
innerCss?: SerializedStyles; | ||
} | ||
|
||
export default function LazyImage({ src, width, height, alt, innerCss }: LazyImageProps) { | ||
return ( | ||
<Image | ||
src={src} | ||
width={width} | ||
height={height} | ||
alt={alt} | ||
css={innerCss} | ||
placeholder="blur" | ||
blurDataURL={DEAFULT_PLACEHOLDER_GRAY} | ||
loading="lazy" | ||
/> | ||
); | ||
} |
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
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
Oops, something went wrong.