Skip to content

Commit

Permalink
Merge pull request #1606 from AtCoder-NoviSteps/#1605
Browse files Browse the repository at this point in the history
📚 Add descriptions (#1605)
  • Loading branch information
KATO-Hiro authored Dec 26, 2024
2 parents 6a7341d + b5b86c8 commit 03064fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
22 changes: 8 additions & 14 deletions src/lib/components/TaskGrades/GradeGuidelineTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<div class="container mx-auto w-5/6 lg:w-2/3 mt-6 text-gray-800 dark:text-gray-300">
<div>
AtCoder Beginners Contest(通称、ABC)の配点・問題と、対応するグレードの目安を示しています。
AtCoder Beginners Contest(通称、ABC)の配点・問題 IDと、対応するグレードの目安を示しています。
</div>
<div>
また、各グレードの基準に関しては、
Expand All @@ -34,8 +34,8 @@
aria-label="Task grade guideline table"
>
<TableHead class="text-sm bg-gray-100">
<TableHeadCell class="w-24 xs:w-32 px-3 sm:px-6 text-center">ABCの配点</TableHeadCell>
<TableHeadCell class="w-40 hidden sm:table-cell text-center">問題</TableHeadCell>
<TableHeadCell class="w-24 xs:w-32 px-3 sm:px-6 text-center">ABC の配点</TableHeadCell>
<TableHeadCell class="w-40 hidden sm:table-cell text-center">ABC の問題 ID</TableHeadCell>
<TableHeadCell class="w-40 text-center">対応グレード</TableHeadCell>
</TableHead>

Expand All @@ -45,17 +45,11 @@
<TableBodyCell class="text-sm xs:text-md text-center py-3">{point}</TableBodyCell>
<TableBodyCell class="text-center py-3 hidden sm:table-cell">{task}</TableBodyCell>

{#if upperGrade === lowerGrade}
<TableBodyCell class="flex items-center justify-center space-x-3 py-3">
<GradeLabel taskGrade={upperGrade} />
</TableBodyCell>
{:else}
<TableBodyCell class="flex items-center justify-center space-x-3 py-3">
<GradeLabel taskGrade={lowerGrade} />
<p>〜</p>
<GradeLabel taskGrade={upperGrade} />
</TableBodyCell>
{/if}
<TableBodyCell class="flex items-center justify-center space-x-3 py-3">
<GradeLabel taskGrade={lowerGrade} />
<p>〜</p>
<GradeLabel taskGrade={upperGrade} />
</TableBodyCell>
</TableBodyRow>
{/each}
</TableBody>
Expand Down
6 changes: 0 additions & 6 deletions src/lib/components/TaskGrades/grade_guideline_table_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ type TaskGradeGuideline = {
type TaskGradeGuidelines = TaskGradeGuideline[];

export const gradeGuidelineTableData: TaskGradeGuidelines = [
{
point: '〜 100',
task: '(JOI 一次予選 A)',
lowerGrade: TaskGrade.Q10,
upperGrade: TaskGrade.Q10,
},
{
point: '100',
task: 'A',
Expand Down

0 comments on commit 03064fb

Please sign in to comment.