Skip to content

Commit

Permalink
Merge branch 'master' into add-more-information-on-event-details
Browse files Browse the repository at this point in the history
  • Loading branch information
xryuseix authored Mar 24, 2024
2 parents ff5e23a + 5f99ab0 commit 53b87a5
Show file tree
Hide file tree
Showing 12 changed files with 89 additions and 143 deletions.
147 changes: 45 additions & 102 deletions components/EventList.tsx
Original file line number Diff line number Diff line change
@@ -1,94 +1,6 @@
/** @format */
import detailsStyle from '../styles/details.module.css'

export type EventType = {
title: string
detail: string
date?: 'Day 1' | 'Day 2' | 'Day 3'
id: string
}

// TODO: detailの日時・場所をのフォーマット統一させる
export const Events: EventType[] = [
{
title: '立命合宿 2019',
date: 'Day 1',
detail: '3/5 - 3/7 立命館大学 BKC にて合宿を開催.',
id: 'rupc2019'
},
{
title: '会津合宿 2018',
date: 'Day 1',
detail: '会津大学 9/19 - 9/21 に行われた合宿に参加しました.',
id: 'acpc2018'
},
{
title: '立命合宿 2018',
date: 'Day 1',
detail: '3/26 - 3/28 立命館大学 BKC にて合宿を開催.',
id: 'rupc2018'
},
{
title: '会津合宿 2017',
date: 'Day 1',
detail: '会津大学にて 9/18 - 9/20 に行われた合宿に参加しました.',
id: 'acpc2017'
},
{
title: '立命合宿 2017',
date: 'Day 1',
detail: '3/22 - 3/24 立命館大学 BKC にて合宿を開催しました.',
id: 'rupc2017'
},
{
title: '会津合宿 2016',
date: 'Day 1',
detail: '会津大学にて 9/17 - 9/19 に行われた合宿に参加しました.',
id: 'acpc2016'
},
{
title: '立命合宿 2016',
date: 'Day 1',
detail: '3/6 - 3/8 立命館大学 BKC にて合宿を開催しました.',
id: 'rupc2016'
},
{
title: '会津合宿 2015',
date: 'Day 1',
detail: '会津大学にて 9/21 - 9/23 に行われた合宿に参加しました.',
id: 'acpc2015'
},
{
title: '立命合宿 2015',
date: 'Day 1',
detail: '3/14 - 3/16 立命館大学 BKC にて合宿を開催しました.',
id: 'rupc2015'
},
{
title: '立命合宿 2013',
date: 'Day 3',
detail: '3/11 - 3/13 立命館大学 BKC にて合宿を開催しました.',
id: 'rupc2013'
},
{
title: '会津合宿 2012',
date: 'Day 1',
detail: '会津大学にて9/3 - 9/5に行われた合宿に参加しました.',
id: 'acpc2012'
},
{
title: '立命合宿 2012',
date: 'Day 3',
detail: '3/13 - 3/15 立命館大学 BKC にて合宿を開催しました.',
id: 'rupc2012'
},
{
title: '立命館プログラミングコンテスト2011',
detail: '10/15 立命館大学 BKC にてコンテストを開催しました.',
id: 'rupc2011'
}
]

type problemSetType = {
college: string
link: string
Expand Down Expand Up @@ -119,7 +31,7 @@ export type EventDetailType = {
judge: string
iodata?: JSX.Element
schedule?: JSX.Element
place?: string
place: string
otherContent?: otherContentType[]
}

Expand Down Expand Up @@ -159,7 +71,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'E: LISum', link: 'E.pdf' },
{ title: 'F: Absum', link: 'F.pdf' },
{ title: 'G: イルミネーション', link: 'G.pdf' }
]
],
place: '立命館大学 BKC'
},
acpc2018: {
title: '会津合宿 2018',
Expand Down Expand Up @@ -194,7 +107,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'F: Swap', link: 'F.pdf' },
{ title: 'G: 式の切り取り', link: 'G.pdf' },
{ title: 'H: 板', link: 'H.pdf' }
]
],
place: '会津大学'
},
rupc2018: {
title: '立命合宿 2018',
Expand Down Expand Up @@ -228,7 +142,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'E: いたずらされたグラフ', link: 'E.pdf' },
{ title: 'F: ごちうさ数', link: 'F.pdf' },
{ title: 'G: エレベータ', link: 'G.pdf' }
]
],
place: '立命館大学 BKC'
},
acpc2017: {
title: '会津合宿 2017',
Expand All @@ -252,7 +167,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'E: 敵襲から守れ', link: 'E.pdf' },
{ title: 'F: 階段', link: 'F.pdf' },
{ title: 'G: 鍵', link: 'G.pdf' }
]
],
place: '会津大学'
},
rupc2017: {
title: '立命合宿 2017',
Expand Down Expand Up @@ -283,7 +199,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'I: Islands Survival', link: 'I.pdf' },
{ title: 'J: エナジードリンク', link: 'J.pdf' },
{ title: 'K: AORイカちゃんの成績', link: 'K.pdf' }
]
],
place: '立命館大学 BKC'
},
acpc2016: {
title: '会津合宿 2016',
Expand All @@ -308,7 +225,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'E: 札', link: 'E.pdf' },
{ title: 'F: 紙の折りたたみ', link: 'F.pdf' },
{ title: 'G: DAGトリオ(Hard)', link: 'G.pdf' }
]
],
place: '会津大学'
},
rupc2016: {
title: '立命合宿 2016',
Expand All @@ -332,7 +250,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'F: リレー', link: 'F.pdf' },
{ title: '別解', link: 'F_tm.pdf' },
{ title: 'G: 塗るだけ', link: 'G.pdf' }
]
],
place: '立命館大学 BKC'
},
acpc2015: {
title: '会津合宿 2015',
Expand All @@ -355,7 +274,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'D: 市松模様', link: 'D.pdf' },
{ title: 'E: 台風', link: 'E.pdf' },
{ title: 'F: 卵', link: 'F.pdf' }
]
],
place: '会津大学'
},
rupc2015: {
title: '立命合宿 2015',
Expand All @@ -382,7 +302,7 @@ export const EventDetails: EventDetailsType = {
],
picture: 'rupc2015.png',
judge: 'http://judge.u-aizu.ac.jp/onlinejudge/index.jsp',
place: '立命館大学BKC',
place: '立命館大学 BKC',
schedule: (
<table className={detailsStyle.table}>
<thead>
Expand Down Expand Up @@ -461,7 +381,6 @@ export const EventDetails: EventDetailsType = {
begin: '2013/3/11',
end: '2013/3/13'
},
detailURL: 'http://kokucheese.com/event/index/72089',
problemSet: [
{ college: 'Day1(会津大学)', link: 'https://onlinejudge.u-aizu.ac.jp/beta/room.html#RitsCamp13Day1' },
{ college: 'Day2(大阪大学)', link: 'https://onlinejudge.u-aizu.ac.jp/beta/room.html#RitsCamp13Day2' },
Expand All @@ -477,7 +396,7 @@ export const EventDetails: EventDetailsType = {
{ title: 'G: Computer Onesan', link: '' }
],
judge: 'http://judge.u-aizu.ac.jp/onlinejudge/index.jsp',
place: '立命館大学',
place: '立命館大学 BKC',
schedule: (
<table className={detailsStyle.table}>
<thead>
Expand Down Expand Up @@ -566,7 +485,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'E: マークアップ言語は衰退しました', link: 'E.pdf' },
{ title: 'F: 透明な麻雀牌', link: 'F.pdf' },
{ title: 'G: コードアートオンライン', link: 'G.pdf' }
]
],
place: '会津大学'
},
rupc2012: {
title: '立命合宿 2012',
Expand All @@ -589,7 +509,8 @@ export const EventDetails: EventDetailsType = {
{ title: 'E: Elevator', link: 'D.pdf' },
{ title: 'F: Icy Composer', link: 'E.pdf' },
{ title: 'G: Satan Attacks', link: 'F.pdf' }
]
],
place: '立命館大学 BKC'
},
rupc2011: {
title: '立命館プログラミングコンテスト2011',
Expand All @@ -615,6 +536,7 @@ export const EventDetails: EventDetailsType = {
{ title: '問題H: Oh, My Goat!', link: 'H.pdf' },
{ title: '問題I: カスタムペイント職人', link: 'I.pdf' }
],
place: '立命館大学 BKC',
iodata: (
<a href="dataset.zip" download>
データセット
Expand All @@ -623,3 +545,24 @@ export const EventDetails: EventDetailsType = {
writer: ['shirokurostone', 'kioa341', 'slip0110', 'epee_noir', 'Respect2D', '_shnyh']
}
}

export type EventType = {
title: string
detail: string
date?: 'Day 1' | 'Day 2' | 'Day 3'
id: string
}

export const Events: EventType[] = Object.keys(EventDetails).map((id) => {
const event: EventDetailType = EventDetails[id]
const date = event.date?.begin && event.date?.end ? `${event.date.begin} - ${event.date.end}` : event.date?.begin
const detail = event.place.includes('立命')
? `${event.place} にて ${date} 合宿を開催しました.`
: `${event.place} にて ${date} 合宿に参加しました.`
return {
title: event.title,
detail: detail,
date: event.day,
id: id
}
})
2 changes: 1 addition & 1 deletion components/IndexArticles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { VFC } from 'react'
import Link from 'next/link'

import styles from './section.module.css'
import styles from '../styles/section.module.css'
import articleStyles from './IndexArticles.module.css'

const IndexArticles: VFC = () => {
Expand Down
8 changes: 4 additions & 4 deletions components/Layout/Navigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Navigator: VFC = () => {
<Stack spacing={1} direction="row">
<Link href="/">
<Button variant="text" className={styles.navibutton}>
Top
トップ
</Button>
</Link>
<Link href="/welcome">
Expand All @@ -23,17 +23,17 @@ const Navigator: VFC = () => {
</Link>
<Link href="/event">
<Button variant="text" className={styles.navibutton}>
Event
解説
</Button>
</Link>
<Link href="/contact">
<Button variant="text" className={styles.navibutton}>
Contact
お問い合わせ
</Button>
</Link>
<Link href="/links">
<Button variant="text" className={styles.navibutton}>
Links
リンク
</Button>
</Link>
<Link href="/menbers">
Expand Down
2 changes: 1 addition & 1 deletion components/Twitter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { VFC } from 'react'
import { Timeline } from 'react-twitter-widgets'

import styles from './section.module.css'
import styles from '../styles/section.module.css'

const Header: VFC = () => {
return (
Expand Down
23 changes: 0 additions & 23 deletions components/section.module.css

This file was deleted.

9 changes: 6 additions & 3 deletions pages/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ import { VFC } from 'react'
import { Layout } from '../components/Layout'
import Twitter from '../components/Twitter'

import styles from '../components/section.module.css'
import styles from '../styles/section.module.css'

const Contact: VFC = () => {
return (
<Layout title="Contact - RiPPro(立命館大学情報理工学部プロジェクト団体)" description="RiPProへのコンタクトページ">
<Layout
title="お問い合わせ - RiPPro(立命館大学情報理工学部プロジェクト団体)"
description="RiPProへのコンタクトページ"
>
<div className={styles.section}>
<h2>Contact</h2>
<h2>お問い合わせ</h2>
<h3>連絡先</h3>
入部希望者または質問等がある方は,名前・学部学科・回生を明記の上,下記のメールアドレスにメールをしていただくか,
下記のRiPProのTwitter公式アカウントにDMしてください.
Expand Down
2 changes: 1 addition & 1 deletion pages/event/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Layout } from '../../components/Layout'
import { EventDetails, EventDetailType } from '../../components/EventList'
import { useState, useEffect } from 'react'

import styles from '../../components/section.module.css'
import styles from '../../styles/section.module.css'
import detailsStyle from '../../styles/details.module.css'

const defaultId = 'rupc2018'
Expand Down
4 changes: 2 additions & 2 deletions pages/event/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import Link from 'next/link'
import { Layout } from '../../components/Layout'
import { EventType, Events } from '../../components/EventList'

import styles from '../../components/section.module.css'
import styles from '../../styles/section.module.css'
import eventStyles from '../../styles/event.module.css'

const Event: VFC = () => {
return (
<Layout
title="Event - RiPPro(立命館大学情報理工学部プロジェクト団体)"
title="解説 - RiPPro(立命館大学情報理工学部プロジェクト団体)"
description="過去に開催したイベント一覧ページ"
>
{Events.map((event: EventType) => {
Expand Down
4 changes: 2 additions & 2 deletions pages/links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { VFC } from 'react'
import { Layout } from '../components/Layout'
import { SectionType, LinksType, sections } from '../components/Links'

import styles from '../components/section.module.css'
import styles from '../styles/section.module.css'

const LinkSection: VFC<SectionType> = (Props: SectionType): JSX.Element => {
return (
Expand All @@ -28,7 +28,7 @@ const LinkSection: VFC<SectionType> = (Props: SectionType): JSX.Element => {
const Links: VFC = () => {
return (
<Layout
title="Links - RiPPro(立命館大学情報理工学部プロジェクト団体)"
title="リンク - RiPPro(立命館大学情報理工学部プロジェクト団体)"
description="他サイトへのリンクを記載したページ"
>
<div className={styles.section}>
Expand Down
Loading

0 comments on commit 53b87a5

Please sign in to comment.