forked from SuperteamDAO/superteam-reputation
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1e4d7dd
commit 0f96262
Showing
22 changed files
with
88 additions
and
131 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
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,12 @@ | ||
import { Center } from '@chakra-ui/react'; | ||
import Image from 'next/image'; | ||
|
||
const LogoImg = () => { | ||
return ( | ||
<Center w={{ base: '120px', md: '150px' }} h={{ base: '15px', md: '20px' }}> | ||
<Image src="/Logo.png" alt="superteam Logo" width={500} height={500} /> | ||
</Center> | ||
); | ||
}; | ||
|
||
export default LogoImg; |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
(function () { | ||
var currentTheme; | ||
|
||
function changeTheme(inputTheme: string) { | ||
if (inputTheme === "dark") { | ||
const theme = themeConfig.dark; | ||
for (let key in theme) { | ||
setCSSVar(key, theme[key]); | ||
} | ||
localStorage.setItem("theme", inputTheme); | ||
} else { | ||
const theme = themeConfig.light; | ||
for (let key in theme) { | ||
setCSSVar(key, theme[key]); | ||
} | ||
localStorage.setItem("theme", inputTheme); | ||
} | ||
} | ||
|
||
function setCSSVar(property: string, color: string | null) { | ||
document.documentElement.style.setProperty(property, color); | ||
} | ||
try { | ||
currentTheme = localStorage.getItem("theme") || "light"; | ||
|
||
var themeConfig = { | ||
dark: { | ||
"--color-homepage-bg": "#171A21", | ||
"--color-text": "#fff", | ||
"--code": "#ccc", | ||
"--color-blue": "#f300e0", | ||
"--color-grey": "#ccc", | ||
}, | ||
light: { | ||
"--color-homepage-bg": "#fff", | ||
"--color-text": "#000", | ||
"--code": "#f1f1f1", | ||
"--color-blue": "#0070f3", | ||
"--color-grey": "#eaeaea", | ||
}, | ||
}; | ||
|
||
changeTheme(currentTheme); | ||
} catch (err) { | ||
console.log(new Error("accessing theme has been denied")); | ||
} | ||
})(); |