-
Notifications
You must be signed in to change notification settings - Fork 4
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 #97 from syfxlin/develop
fix(style): Fix some styles
- Loading branch information
Showing
27 changed files
with
262 additions
and
162 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use client"; | ||
import React, { ReactNode } from "react"; | ||
import { LinkButton } from "../../ui/button"; | ||
import { resolve } from "../../../utils/vender"; | ||
import { t } from "../../../locales"; | ||
import * as styles from "./styles.css"; | ||
|
||
export interface BlogProps { | ||
icon: ReactNode; | ||
} | ||
|
||
export const Blog: React.FC<BlogProps> = ({ icon }) => { | ||
return ( | ||
<LinkButton tooltip={{ placement: "left" }} aria-label={t("header.blog")} href={resolve("page", 1)} className={styles.view_elastic}> | ||
<span><span>「</span>{t("header.blog")}<span>」</span></span> | ||
{icon} | ||
</LinkButton> | ||
); | ||
}; |
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
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,30 @@ | ||
"use client"; | ||
import React, { ReactNode, useRef } from "react"; | ||
import { Button } from "../../ui/button"; | ||
import { t } from "../../../locales"; | ||
import * as styles from "./styles.css"; | ||
|
||
export interface MenuProps { | ||
icon: ReactNode; | ||
} | ||
|
||
export const Menu: React.FC<MenuProps> = ({ icon }) => { | ||
const ref = useRef<HTMLButtonElement>(null); | ||
return ( | ||
<nav className={styles.menu}> | ||
<Button | ||
ref={ref} | ||
aria-label={t("header.menu")} | ||
onClick={() => { | ||
if (document.body.style.transform) { | ||
document.body.style.transform = ""; | ||
} else { | ||
document.body.style.transform = "translateX(100px)"; | ||
} | ||
}} | ||
> | ||
{icon} | ||
</Button> | ||
</nav> | ||
); | ||
}; |
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.