Skip to content

Commit

Permalink
fix: new yearn logo (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
keriat authored May 3, 2023
2 parents bfb4881 + 813b424 commit d2bcb2a
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 131 deletions.
39 changes: 0 additions & 39 deletions .github/.disabled/deploy-preview.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/.disabled/deploy-stage.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: "Setup Node.js"
uses: actions/setup-node@v3
with:
node-version: "17"
node-version: "18"
cache: "yarn"

- name: "Install dependencies"
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
npx --no-install commitlint --edit "$1"
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# shellcheck disable=SC2034
CI="1"
npx lint-staged
npx lint-staged
Binary file added public/content/images/alliance/sommelier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 31 additions & 6 deletions public/content/images/alliance/yearn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions public/images/logos/yearn.finance.svg

This file was deleted.

31 changes: 31 additions & 0 deletions public/images/logos/yearn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 15 additions & 14 deletions src/components/ModeToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import React, {useCallback, useEffect} from "react";
import {BiMoon, BiSun} from "react-icons/bi";
import {useTheme} from "next-themes";
import React, { useCallback, useEffect } from "react";
import { BiMoon, BiSun } from "react-icons/bi";
import { useTheme } from "next-themes";

export default function ModeToggle() {
const {theme, setTheme} = useTheme();
const { theme, setTheme } = useTheme();

const setAndStoreTheme = useCallback((theme: "light" | "dark") => {
window.localStorage.colorTheme = theme;
setTheme(theme);
}, [theme]);
const setAndStoreTheme = useCallback(
(theme: "light" | "dark") => {
window.localStorage.colorTheme = theme;
setTheme(theme);
},
[setTheme]
);

useEffect(() => {
if (!window.localStorage.colorTheme) {
setAndStoreTheme(window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
}
}, []);
}, [setAndStoreTheme]);

const handleToggle = () => {
setAndStoreTheme(theme === "dark" ? "light" : "dark");
Expand All @@ -24,13 +27,11 @@ export default function ModeToggle() {
<button
type="button"
aria-label="Toggle dark mode"
className="group rounded-md border-2 border-pink-700 dark:border-pink-500 px-4 py-2 font-bold font-medium text-pink-700 shadow-sm transition-all md:hover:bg-pink-700 dark:md:hover:bg-pink-500 md:hover:text-white md:hover:shadow-md rounded-full dark:bg-transparent px-3 py-2 shadow-lg shadow-zinc-800/5 transition"
className="group rounded-full border-2 border-pink-700 px-3 py-2 font-medium text-pink-700 shadow-lg shadow-zinc-800/5 transition-all dark:border-pink-500 dark:bg-transparent md:hover:bg-pink-700 md:hover:text-white md:hover:shadow-md dark:md:hover:bg-pink-500"
onClick={handleToggle}
>
<BiSun
className="h-6 w-6 fill-pink-700 stroke-zinc-500 transition group-hover:fill-zinc-200 group-hover:stroke-zinc-700 dark:hidden dark:fill-teal-50 dark:stroke-teal-500 dark:group-hover:fill-teal-50 dark:group-hover:stroke-teal-600"/>
<BiMoon
className="hidden h-6 w-6 fill-pink-500 stroke-zinc-500 transition dark:block dark:group-hover:stroke-zinc-400 group-hover:fill-teal-50"/>
<BiSun className="h-6 w-6 fill-pink-700 stroke-zinc-500 transition group-hover:fill-zinc-200 group-hover:stroke-zinc-700 dark:hidden dark:fill-teal-50 dark:stroke-teal-500 dark:group-hover:fill-teal-50 dark:group-hover:stroke-teal-600" />
<BiMoon className="hidden h-6 w-6 fill-pink-500 stroke-zinc-500 transition group-hover:fill-teal-50 dark:block dark:group-hover:stroke-zinc-400" />
</button>
);
}
2 changes: 1 addition & 1 deletion src/content/alliance.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"name": "Sommelier Finance",
"website": "https://www.sommelier.finance",
"twitter": "sommfinance",
"logo": "sommelier.svg"
"logo": "sommelier.png"
},
{
"content": "Alchemix is a future-yield-backed synthetic asset protocol and community DAO.",
Expand Down
2 changes: 1 addition & 1 deletion src/content/supporters.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"title": "THORSwap"
},
{
"src": "yearn.finance.svg",
"src": "yearn.svg",
"title": "Yearn Finance",
"url": {
"web": "https://yearn.finance"
Expand Down

1 comment on commit d2bcb2a

@vercel
Copy link

@vercel vercel bot commented on d2bcb2a May 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sup-web-4626 – ./

sup-web-4626.superform.tech
eip4626.com
*.eip4626.com
sup-web-4626-git-main.superform.tech
erc4626.info

Please sign in to comment.