-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[frontend] トップページを実装 #114
[frontend] トップページを実装 #114
Conversation
Visit the preview URL for this PR (updated for commit 4b54f18): https://szpp-judge-3776--pr114-feat-frontend-top-2nczn97y.web.app (expires Tue, 10 Oct 2023 20:43:37 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 1f8b9d12a855b0fe650d3231cd716db46d79c069 |
@@ -156,7 +156,7 @@ const SidebarMainPane = ({ | |||
<SidebarLinkItem text="コンテストトップ" icon={IoHome} href={`${contestRootPath}`} /> | |||
{contestStarted && ( | |||
<> | |||
<SidebarLinkItem text="質問" icon={IoChatboxEllipses} href={`${contestRootPath}/clarifications`} /> | |||
{/* <SidebarLinkItem text="質問" icon={IoChatboxEllipses} href={`${contestRootPath}/clarifications`} /> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phase 1ではやらない
@@ -55,7 +55,7 @@ export const GlobalHeader = ({ | |||
{contestSlug ? <NavItemLink href={`/contests/${contestSlug}`}>{contestTitle}</NavItemLink> : ( | |||
<> | |||
<NavItemLink href="/contests">コンテスト</NavItemLink> | |||
<NavItemLink href="/tasks">問題</NavItemLink> | |||
{/* <NavItemLink href="/tasks">問題</NavItemLink> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phase 1ではやらない
import { Link } from "../../ui/Link"; | ||
|
||
const ContestBanner = () => { | ||
const { contests, isLoading, error } = useListContests(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コンテスト全件取得になっているの,問題なので API に絞り込み機能をつけることで解決したいですね 😃
next/image は static export と相性が悪いので使ってこなかったが, unoptimized: true ならば使える(linter に怒られないというだけ)こと が分かったので今後 SSR に移行する可能性も踏まえて置き換える.
この PR でやること
この PR でやらないこと
ページングや終了済み・開始前などで絞り込めると嬉しいのですが,そこはまた今度.