File tree Expand file tree Collapse file tree 1 file changed +26
-21
lines changed
Expand file tree Collapse file tree 1 file changed +26
-21
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ if (project.data.status !== "dead") {
9494 },
9595 {
9696 href: project .data .social ?.website ,
97- icon: " feather:youtube " ,
98- label: " YouTube " ,
97+ icon: " feather:globe " ,
98+ label: " Website " ,
9999 },
100100 ].map (
101101 (link ) =>
@@ -147,24 +147,29 @@ if (project.data.status !== "dead") {
147147 </article >
148148 </main >
149149 {
150- project .data .kind === " long-term" && (
151- <JoinUsCTA class = " mt-8" >
152- ut.code(); で{ project .data .app .name } を開発しませんか?
153- </JoinUsCTA >
154- )
155- }
156- {
157- project .data .kind === " hackathon" && (
158- <JoinUsCTA class = " mt-8" >
159- ut.code(); では、定期的にハッカソンイベントを行っています。
160- </JoinUsCTA >
161- )
162- }
163- {
164- project .data .kind === " festival" && (
165- <JoinUsCTA class = " mt-8" >
166- ut.code(); は、毎年五月祭・駒場祭に参加しています。
167- </JoinUsCTA >
168- )
150+ (function (kind : " long-term" | " hackathon" | " festival" ) {
151+ switch (kind ) {
152+ case " long-term" :
153+ return (
154+ <JoinUsCTA class = " mt-8" >
155+ ut.code(); で{ project .data .app .name } を開発しませんか?
156+ </JoinUsCTA >
157+ );
158+ case " hackathon" :
159+ return (
160+ <JoinUsCTA class = " mt-8" >
161+ ut.code(); では、定期的にハッカソンイベントを行っています。
162+ </JoinUsCTA >
163+ );
164+ case " festival" :
165+ return (
166+ <JoinUsCTA class = " mt-8" >
167+ ut.code(); は、毎年五月祭・駒場祭に参加しています。
168+ </JoinUsCTA >
169+ );
170+ default :
171+ kind satisfies never ;
172+ }
173+ })(project .data .kind )
169174 }
170175</GlobalLayout >
You can’t perform that action at this time.
0 commit comments