@@ -4,10 +4,18 @@ export const BASE_PATH = basePath ? basePath : "";
4
4
import GitHubIcon from "@mui/icons-material/GitHub" ;
5
5
import { SITE_NAME } from "../../lib/constants" ;
6
6
import KeyboardDoubleArrowDownSharpIcon from "@mui/icons-material/KeyboardDoubleArrowDownSharp" ;
7
+ import GradientBackground from "@/components/gradient-background" ;
8
+ import ScreenEmojis from "@/components/screen-emojis" ;
9
+
7
10
import contributors from "../../Contributors.json" ;
11
+ import {
12
+ groupContributorsBySection ,
13
+ latestContributorsColor ,
14
+ } from "@/utils/contributors-grouping" ;
8
15
9
16
export default function Home ( ) {
10
17
const contributorsNumber = contributors . length ;
18
+ const contributorsGroups = groupContributorsBySection ( contributors , 3 ) ;
11
19
12
20
return (
13
21
< >
@@ -63,65 +71,85 @@ export default function Home() {
63
71
</ p >
64
72
</ section >
65
73
66
- < section className = "bg-red-600 p-6 pb-0 pt-8 md:px-10 md:pt-10" >
67
- < div className = "rounded-md bg-white px-5 pb-16 pt-12 md:p-20 md:pt-8" >
68
- < h2 className = "text-center text-xl font-bold tracking-tighter text-red-600 md:pb-4 md:pt-12 md:text-3xl" >
69
- 簡単 8 STEP でコントリビューション!
70
- </ h2 >
71
- < ul className = "mx-auto mt-8 w-fit list-inside rounded-md px-2 text-lg font-bold md:text-xl md:leading-7 lg:mb-8 lg:mt-10 lg:flex lg:gap-16 lg:bg-stone-100 lg:px-12 lg:pb-4 lg:pt-8" >
72
- < div >
73
- < li className = "pb-4 md:pb-6" >
74
- < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 1</ p >
75
- プロジェクトをフォーク
76
- </ li >
77
- < li className = "pb-4 md:pb-6" >
78
- < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 2</ p >
79
- ローカルマシンへクローン
80
- </ li >
81
- < li className = "pb-4 md:pb-6" >
82
- < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 3</ p >
83
- 作業用ブランチを作成
84
- </ li >
85
- < li className = "pb-4 md:pb-6" >
86
- < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 4</ p >
87
- 変更を加える
88
- </ li >
74
+ < GradientBackground mainColor = { latestContributorsColor } >
75
+ < ScreenEmojis contributors = { contributorsGroups [ 0 ] } isTopSection />
76
+ < section className = "mx-auto h-screen max-w-screen-xl" >
77
+ セクション1
78
+ </ section >
79
+
80
+ < ScreenEmojis contributors = { contributorsGroups [ 1 ] } />
81
+ < section className = "mx-auto h-screen max-w-screen-xl" >
82
+ セクション2
83
+ </ section >
84
+
85
+ < ScreenEmojis contributors = { contributorsGroups [ 2 ] } />
86
+ < section className = "bg-red-600 p-6 pb-0 pt-8 md:px-10 md:pt-10" >
87
+ < div className = "rounded-md bg-white px-5 pb-16 pt-12 md:p-20 md:pt-8" >
88
+ < h2 className = "text-center text-xl font-bold tracking-tighter text-red-600 md:pb-4 md:pt-12 md:text-3xl" >
89
+ 簡単 8 STEP でコントリビューション!
90
+ </ h2 >
91
+ < ul className = "mx-auto mt-8 w-fit list-inside rounded-md px-2 text-lg font-bold md:text-xl md:leading-7 lg:mb-8 lg:mt-10 lg:flex lg:gap-16 lg:bg-stone-100 lg:px-12 lg:pb-4 lg:pt-8" >
92
+ < div >
93
+ < li className = "pb-4 md:pb-6" >
94
+ < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 1</ p >
95
+ プロジェクトをフォーク
96
+ </ li >
97
+ < li className = "pb-4 md:pb-6" >
98
+ < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 2</ p >
99
+ ローカルマシンへクローン
100
+ </ li >
101
+ < li className = "pb-4 md:pb-6" >
102
+ < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 3</ p >
103
+ 作業用ブランチを作成
104
+ </ li >
105
+ < li className = "pb-4 md:pb-6" >
106
+ < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 4</ p >
107
+ 変更を加える
108
+ </ li >
109
+ </ div >
110
+ < div >
111
+ < li className = "pb-4 md:pb-6" >
112
+ < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 5</ p >
113
+ 変更をコミット
114
+ </ li >
115
+ < li className = "pb-4 md:pb-6" >
116
+ < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 6</ p >
117
+ 変更をプッシュ
118
+ </ li >
119
+ < li className = "pb-4 md:pb-6" >
120
+ < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 7</ p >
121
+ プルリクエストを作成
122
+ </ li >
123
+ < li className = "pb-4 md:pb-6" >
124
+ < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 8</ p >
125
+ レビューとフィードバックに対応
126
+ </ li >
127
+ </ div >
128
+ </ ul >
129
+ < div className = "mb-8 text-center font-bold leading-7 md:text-xl md:leading-8" >
130
+ < KeyboardDoubleArrowDownSharpIcon className = "mb-4 text-6xl text-red-600" />
131
+ < p > プルリクエストが承認されると</ p >
132
+ < p > あなたの変更がメインプロジェクトに反映されます 🎉</ p >
89
133
</ div >
90
- < div >
91
- < li className = "pb-4 md:pb-6" >
92
- < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 5</ p >
93
- 変更をコミット
94
- </ li >
95
- < li className = "pb-4 md:pb-6" >
96
- < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 6</ p >
97
- 変更をプッシュ
98
- </ li >
99
- < li className = "pb-4 md:pb-6" >
100
- < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 7</ p >
101
- プルリクエストを作成
102
- </ li >
103
- < li className = "pb-4 md:pb-6" >
104
- < p className = "mr-6 text-sm text-red-600 md:text-lg" > STEP 8</ p >
105
- レビューとフィードバックに対応
106
- </ li >
134
+ < div className = "text-center" >
135
+ < a
136
+ href = "https://github.com/first-contributions-ja/first-contributions-ja.github.io"
137
+ className = "rounded-md bg-red-600 px-3 py-3 text-sm text-white transition hover:opacity-70 md:px-5 md:py-4 md:text-lg"
138
+ >
139
+ < GitHubIcon className = "mr-3 -translate-y-0.5 text-3xl md:text-4xl" />
140
+ 詳しい手順はこちら
141
+ </ a >
107
142
</ div >
108
- </ ul >
109
- < div className = "mb-8 text-center font-bold leading-7 md:text-xl md:leading-8" >
110
- < KeyboardDoubleArrowDownSharpIcon className = "mb-4 text-6xl text-red-600" />
111
- < p > プルリクエストが承認されると</ p >
112
- < p > あなたの変更がメインプロジェクトに反映されます 🎉</ p >
113
143
</ div >
114
- < div className = "text-center" >
115
- < a
116
- href = "https://github.com/first-contributions-ja/first-contributions-ja.github.io"
117
- className = "rounded-md bg-red-600 px-3 py-3 text-sm text-white transition hover:opacity-70 md:px-5 md:py-4 md:text-lg"
118
- >
119
- < GitHubIcon className = "mr-3 -translate-y-0.5 text-3xl md:text-4xl" />
120
- 詳しい手順はこちら
121
- </ a >
122
- </ div >
123
- </ div >
124
- </ section >
144
+ </ section >
145
+ </ GradientBackground >
146
+ { /* tailwind のclassをCSSに含める */ }
147
+ < div className = "hidden animate-[horizontal_3s_ease-in-out_infinite_alternate_both]" >
148
+ horizontal
149
+ </ div >
150
+ < div className = "hidden animate-[vertical_3s_ease-in-out_infinite_alternate_both]" >
151
+ vertical
152
+ </ div >
125
153
</ >
126
154
) ;
127
155
}
0 commit comments