Skip to content

Commit dca9d34

Browse files
committed
Add biome commands
1 parent 85ff39f commit dca9d34

8 files changed

Lines changed: 409 additions & 407 deletions

File tree

biome.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"files": {
1414
"ignoreUnknown": false,
15-
"includes": ["!.next", "!package.json"]
15+
"includes": ["!.next", "!package.json", "src/**/*"]
1616
},
1717
"formatter": {
1818
"enabled": true,
@@ -30,6 +30,9 @@
3030
"correctness": {
3131
"noUnusedVariables": "error"
3232
},
33+
"performance": {
34+
"noImgElement": "off"
35+
},
3336
"recommended": true,
3437
"style": {
3538
"noNonNullAssertion": "off"

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev --turbopack",
7-
"build": "next build && touch docs/.nojekyll && echo 'mimorisuzu.co' > docs/CNAME && rm -rf docs/404.html"
7+
"build": "next build && touch docs/.nojekyll && echo 'mimorisuzu.co' > docs/CNAME && rm -rf docs/404.html",
8+
"biome": "bunx biome check",
9+
"biome:write": "bunx biome check --write"
810
},
911
"dependencies": {
1012
"@mimorisuzuko/yuuka": "1.0.7",

src/app/page.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,27 @@ export default function Home() {
99
<div>
1010
<Global>
1111
{{
12-
body: {
13-
margin: 0,
14-
fontFamily:
15-
"'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif"
16-
},
1712
a: {
1813
color: Colors.Pink
14+
},
15+
body: {
16+
fontFamily:
17+
"'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif",
18+
margin: 0
1919
}
2020
}}
2121
</Global>
2222
<Header />
2323
<div
2424
css={{
25-
maxWidth: 960,
25+
h2: {
26+
color: Colors.Pink
27+
},
2628
marginLeft: "auto",
2729
marginRight: "auto",
30+
maxWidth: 960,
2831
paddingLeft: "0.5rem",
29-
paddingRight: "0.5rem",
30-
31-
h2: {
32-
color: Colors.Pink
33-
}
32+
paddingRight: "0.5rem"
3433
}}
3534
>
3635
<Profile />

src/components/Header.tsx

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,58 +7,57 @@ export default function Header() {
77
return (
88
<div
99
css={{
10-
backgroundColor: Colors.Pink,
11-
marginBottom: "1rem",
12-
display: "flex",
13-
paddingLeft: "1rem",
10+
"@media screen and (min-width: 480px)": {
11+
a: {
12+
display: "flex"
13+
}
14+
},
1415
"> div, a": {
15-
paddingTop: "1rem",
16+
color: "white",
1617
paddingBottom: "1rem",
17-
color: "white"
18+
paddingTop: "1rem"
1819
},
1920
a: {
2021
display: "none"
2122
},
22-
"@media screen and (min-width: 480px)": {
23-
a: {
24-
display: "flex"
25-
}
26-
}
23+
backgroundColor: Colors.Pink,
24+
display: "flex",
25+
marginBottom: "1rem",
26+
paddingLeft: "1rem"
2727
}}
2828
>
2929
<div css={{ marginRight: "1rem" }}>{usbVersion()}</div>
3030
{links.map((a, i) => {
3131
return (
3232
<a
3333
css={{
34-
textDecoration: "none",
35-
transform: "skew(-45deg)",
36-
display: "flex",
37-
3834
":hover": {
39-
color: Colors.Pink,
40-
backgroundColor: "white"
35+
backgroundColor: "white",
36+
color: Colors.Pink
4137
},
4238

4339
":not(:first-child)": {
4440
marginLeft: -1
45-
}
41+
},
42+
display: "flex",
43+
textDecoration: "none",
44+
transform: "skew(-45deg)"
4645
}}
4746
href={`#${a.toLowerCase()}`}
4847
key={i}
4948
>
5049
<div
5150
css={{
52-
width: 1,
51+
backgroundColor: "white",
5352
height: "100%",
54-
backgroundColor: "white"
53+
width: 1
5554
}}
5655
/>
5756
<div
5857
css={{
59-
transform: "skew(45deg)",
6058
paddingLeft: "1rem",
61-
paddingRight: "1rem"
59+
paddingRight: "1rem",
60+
transform: "skew(45deg)"
6261
}}
6362
>
6463
{a}

src/components/Profile.tsx

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,40 +67,38 @@ export default function Profile() {
6767
return (
6868
<div
6969
css={{
70-
display: "flex",
71-
flexWrap: "wrap",
7270
"> div": {
73-
padding: "0 0.5rem",
74-
boxSizing: "border-box"
75-
}
71+
boxSizing: "border-box",
72+
padding: "0 0.5rem"
73+
},
74+
display: "flex",
75+
flexWrap: "wrap"
7676
}}
7777
>
7878
<div
7979
css={{
80-
flexBasis: "100%",
81-
8280
"@media screen and (min-width: 480px)": {
8381
flexBasis: "30%"
84-
}
82+
},
83+
flexBasis: "100%"
8584
}}
8685
>
8786
<img
8887
alt="logo"
8988
css={{
90-
width: "100%",
89+
borderRadius: "50%",
9190
display: "block",
92-
borderRadius: "50%"
91+
width: "100%"
9392
}}
9493
src="/me.jpg"
9594
/>
9695
</div>
9796
<div
9897
css={{
99-
flexBasis: "100%",
100-
10198
"@media screen and (min-width: 480px)": {
10299
flexBasis: "70%"
103-
}
100+
},
101+
flexBasis: "100%"
104102
}}
105103
>
106104
<div

src/components/Publications.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { css } from "@mimorisuzuko/yuuka";
22
import type { ReactNode } from "react";
33
import { RiFilePdf2Fill, RiNewsFill, RiYoutubeFill } from "react-icons/ri";
44
import {
5-
type Publication,
65
arxivs,
76
journalsWithReview,
87
oralsDomestic,
8+
type Publication,
99
papersDomesticWithReview,
1010
papersInternationalWithReview,
1111
postersAndDemosDomestic,
@@ -307,20 +307,20 @@ export default function Publications() {
307307
<div
308308
css={{
309309
details: {
310-
marginTop: "1em",
311-
marginBottom: "1em"
310+
marginBottom: "1em",
311+
marginTop: "1em"
312+
},
313+
314+
li: {
315+
overflowWrap: "break-word"
312316
},
313317

314318
summary: {
315319
h3: {
316-
marginTop: 0,
320+
display: "inline-block",
317321
marginBottom: 0,
318-
display: "inline-block"
322+
marginTop: 0
319323
}
320-
},
321-
322-
li: {
323-
overflowWrap: "break-word"
324324
}
325325
}}
326326
>

0 commit comments

Comments
 (0)