Skip to content
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

Merged
merged 6 commits into from
Oct 8, 2023
Merged

Conversation

h-takeyeah
Copy link
Contributor

@h-takeyeah h-takeyeah commented Oct 8, 2023

この PR でやること

  • トップページの実装
  • ついでに phase 1 には間に合わないため一時的に無効化する対応
    • サイドバーの「質問」へのリンクのコメントアウト
    • ヘッダーの「問題」へのリンクのコメントアウト

この PR でやらないこと

  • トップページ向けのコンテスト一覧取得 API の整備

ページングや終了済み・開始前などで絞り込めると嬉しいのですが,そこはまた今度.

@github-actions
Copy link

github-actions bot commented Oct 8, 2023

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`} /> */}
Copy link
Contributor Author

@h-takeyeah h-takeyeah Oct 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phase 1ではやらない

#115

@@ -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> */}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phase 1ではやらない

#116

import { Link } from "../../ui/Link";

const ContestBanner = () => {
const { contests, isLoading, error } = useListContests();
Copy link
Contributor Author

@h-takeyeah h-takeyeah Oct 8, 2023

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 に移行する可能性も踏まえて置き換える.
@h-takeyeah h-takeyeah merged commit 2fa48e4 into develop Oct 8, 2023
@h-takeyeah h-takeyeah deleted the feat/frontend/top branch October 8, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant