Skip to content

Commit cc90118

Browse files
authored
Merge pull request #99 from fest-snct/develop_saku
feat: ニュース追加
2 parents 8086f5a + 9224481 commit cc90118

File tree

10 files changed

+196
-4
lines changed

10 files changed

+196
-4
lines changed

css/news.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,4 +605,8 @@ img.profile-image {
605605
.object-position-bottom {
606606
-o-object-position: bottom !important;
607607
object-position: bottom !important;
608+
}
609+
610+
.duel-poster-image {
611+
width: 80vw;
608612
}

css/scss/news.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,7 @@ img.profile-image {
222222
}
223223
.object-position-bottom {
224224
object-position: bottom !important;
225-
}
225+
}
226+
.duel-poster-image{
227+
width: 80vw;
228+
}

pages/event/card_duel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// OGP settings
33
$ogp_title = 'デュエマ大会 | 高専祭2025';
4-
$ogp_description = '高専祭2025でデュエマ大会を開催します奮ってご参加ください。';
4+
$ogp_description = '高専祭2025でデュエマ大会を開催します!奮ってご参加ください。';
55
$ogp_type = 'article';
66
$ogp_image = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . '/2025/images/event/poster.webp';
77

pages/event/card_yuugi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// OGP settings
33
$ogp_title = '遊戯王大会 | 高専祭2025';
4-
$ogp_description = '高専祭2025で遊戯王大会を開催します奮ってご参加ください。';
4+
$ogp_description = '高専祭2025で遊戯王大会を開催します!奮ってご参加ください。';
55
$ogp_type = 'article';
66
$ogp_image = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . '/2025/images/event/poster.webp';
77

pages/event/puyoteto.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// OGP settings
33
$ogp_title = 'ぷよテト大会 | 高専祭2025';
4-
$ogp_description = '高専祭2025でぷよテト大会を開催します奮ってご参加ください。';
4+
$ogp_description = '高専祭2025でぷよテト大会を開催します!奮ってご参加ください。';
55
$ogp_type = 'article';
66
$ogp_image = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . '/2025/images/event/poster.webp';
77

pages/includes/breadcrumb.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ function render_breadcrumb() {
1717
'02' => '出店一覧を公開しました!',
1818
'03' => '松本紀生さんが高専祭にやってくる!',
1919
'04' => 'しらはぎ号が今年も走る!',
20+
'05' => 'デュエマ大会を開催します!',
21+
'06' => '遊戯王大会を開催します!',
22+
'07' => 'ぷよテト大会を開催します!',
2023
'guest' => '松本紀生オーロラフォトライブ',
2124
'card_yuugi' => '遊戯王大会',
2225
'card_duel' => 'デュエマ大会',

pages/news.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,39 @@
3131
<?php include './includes/breadcrumb.php'; render_breadcrumb(); ?>
3232
<p class="title">ニュース一覧</p>
3333
<div class="news_list">
34+
<div class="news_item">
35+
<a href="./news/07.php">
36+
<div class="news_item_top">
37+
<img src="../images/event/puyoteko.png" alt="News Image">
38+
</div>
39+
</a>
40+
<div class="news_item_bottom">
41+
<p class="news_date">2025.10.17</p>
42+
<p class="news_title"><a href="./news/07.php">ぷよテト大会を開催します!</a></p>
43+
</div>
44+
</div>
45+
<div class="news_item">
46+
<a href="./news/06.php">
47+
<div class="news_item_top">
48+
<img src="../images/event/yuugi_poster.webp" alt="News Image">
49+
</div>
50+
</a>
51+
<div class="news_item_bottom">
52+
<p class="news_date">2025.10.17</p>
53+
<p class="news_title"><a href="./news/06.php">遊戯王大会を開催します!</a></p>
54+
</div>
55+
</div>
56+
<div class="news_item">
57+
<a href="./news/05.php">
58+
<div class="news_item_top">
59+
<img src="../images/event/duel_poster.webp" alt="News Image">
60+
</div>
61+
</a>
62+
<div class="news_item_bottom">
63+
<p class="news_date">2025.10.17</p>
64+
<p class="news_title"><a href="./news/05.php">デュエマ大会を開催します!</a></p>
65+
</div>
66+
</div>
3467
<div class="news_item">
3568
<a href="./news/04.php">
3669
<div class="news_item_top">

pages/news/05.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
// OGP settings
3+
$ogp_title = 'デュエマ大会を開催します! | 高専祭2025';
4+
$ogp_description = '高専祭2025でデュエマ大会を開催します!奮ってご参加ください。';
5+
$ogp_type = 'article';
6+
$ogp_image = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . '/2025/images/event/duel_poster.webp';
7+
8+
session_start();
9+
$nonce = base64_encode(random_bytes(16));
10+
$_SESSION['nonce'] = $nonce;
11+
header("Content-Security-Policy:
12+
default-src 'self';
13+
script-src 'self' 'nonce-" . $nonce . "';
14+
style-src 'self' 'nonce-" . $nonce . "';
15+
frame-src 'self';
16+
frame-ancestors 'none';
17+
");
18+
?>
19+
<!DOCTYPE html>
20+
<html lang="ja">
21+
<head>
22+
<meta charset="UTF-8">
23+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
24+
<title>デュエマ大会を開催します! | 高専祭2025</title>
25+
<link rel="stylesheet" href="../../css/news.css" nonce="<?= htmlspecialchars($nonce, ENT_QUOTES, 'UTF-8') ?>">
26+
<?php include '../includes/header-favicon.php'; ?>
27+
<script src="../../js/hamburger.js"nonce="<?= htmlspecialchars($nonce, ENT_QUOTES, "UTF-8"); ?>" defer></script>
28+
</head>
29+
<body>
30+
<?php include '../includes/header.php' ?>
31+
<div class="wrapper">
32+
<main>
33+
<?php include '../includes/breadcrumb.php'; render_breadcrumb(); ?>
34+
<p class="title">デュエマ大会を開催します!</p>
35+
<div class="news_content">
36+
<p>高専祭2025でデュエマ大会を開催します!自慢のデッキでデュエルしよう!</p>
37+
<p>日時:10月25日(土) 9:00~16:00</p>
38+
<p>会場:AL-B(8-303)</p>
39+
<p>参加費は無料です。</p>
40+
<p>大会形式:トーナメント形式</p>
41+
<p>参加希望者は当日、会場までお越しください。</p>
42+
<p>以下のリンクから申し込みしてください。</p>
43+
<a href="https://forms.office.com/Pages/ResponsePage.aspx?id=XYP-cpVeEkWK4KezivJfyOmZXv_zmDxKgY7cnTNY2AxUN0RUQUtRRTQzWU1FQk02WlVHVVZaV0dOSS4u&origin=QRCode" class="link">参加申し込みForms</a>
44+
<img src="../../images/event/duel_poster.webp" alt="Duel Poster" class="duel-poster-image">
45+
</div>
46+
</main>
47+
</div>
48+
<?php include '../includes/footer.php' ?>
49+
</body>
50+
</html>

pages/news/06.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
// OGP settings
3+
$ogp_title = '遊戯王大会を開催します! | 高専祭2025';
4+
$ogp_description = '高専祭2025で遊戯王大会を開催します!奮ってご参加ください。';
5+
$ogp_type = 'article';
6+
$ogp_image = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . '/2025/images/event/yuugi_poster.webp';
7+
8+
session_start();
9+
$nonce = base64_encode(random_bytes(16));
10+
$_SESSION['nonce'] = $nonce;
11+
header("Content-Security-Policy:
12+
default-src 'self';
13+
script-src 'self' 'nonce-" . $nonce . "';
14+
style-src 'self' 'nonce-" . $nonce . "';
15+
frame-src 'self';
16+
frame-ancestors 'none';
17+
");
18+
?>
19+
<!DOCTYPE html>
20+
<html lang="ja">
21+
<head>
22+
<meta charset="UTF-8">
23+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
24+
<title>遊戯王大会を開催します! | 高専祭2025</title>
25+
<link rel="stylesheet" href="../../css/news.css" nonce="<?= htmlspecialchars($nonce, ENT_QUOTES, 'UTF-8') ?>">
26+
<?php include '../includes/header-favicon.php'; ?>
27+
<script src="../../js/hamburger.js"nonce="<?= htmlspecialchars($nonce, ENT_QUOTES, "UTF-8"); ?>" defer></script>
28+
</head>
29+
<body>
30+
<?php include '../includes/header.php' ?>
31+
<div class="wrapper">
32+
<main>
33+
<?php include '../includes/breadcrumb.php'; render_breadcrumb(); ?>
34+
<p class="title">遊戯王大会を開催します!</p>
35+
<div class="news_content">
36+
<p>高専祭2025で遊戯王大会を開催します!自慢のデッキでデュエルしよう!</p>
37+
<p>日時:10月25日(土) 9:00~16:00</p>
38+
<p>会場:AL-B(8-303)</p>
39+
<p>参加費は無料です。</p>
40+
<p>大会形式:トーナメント形式</p>
41+
<p>参加希望者は当日、会場までお越しください。</p>
42+
<p>以下のリンクから申し込みしてください。</p>
43+
<a href="https://docs.google.com/forms/d/e/1FAIpQLSewJGuuIuniq1awxzmSJ9kqL4PXb1MWhdE-3REx3hYMVu8SQQ/viewform" class="link">参加申し込みForms</a>
44+
<img src="../../images/event/yuugi_poster.webp" alt="Yuugi Poster" class="poster-image">
45+
</div>
46+
</main>
47+
</div>
48+
<?php include '../includes/footer.php' ?>
49+
</body>
50+
</html>

pages/news/07.php

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
// OGP settings
3+
$ogp_title = 'ぷよテト大会を開催します! | 高専祭2025';
4+
$ogp_description = '高専祭2025でぷよテト大会を開催します!奮ってご参加ください。';
5+
$ogp_type = 'article';
6+
$ogp_image = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . '/2025/images/event/puyoteko.png';
7+
8+
session_start();
9+
$nonce = base64_encode(random_bytes(16));
10+
$_SESSION['nonce'] = $nonce;
11+
header("Content-Security-Policy:
12+
default-src 'self';
13+
script-src 'self' 'nonce-" . $nonce . "';
14+
style-src 'self' 'nonce-" . $nonce . "';
15+
frame-src 'self';
16+
frame-ancestors 'none';
17+
");
18+
?>
19+
<!DOCTYPE html>
20+
<html lang="ja">
21+
<head>
22+
<meta charset="UTF-8">
23+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
24+
<title>ぷよテト大会を開催します! | 高専祭2025</title>
25+
<link rel="stylesheet" href="../../css/news.css" nonce="<?= htmlspecialchars($nonce, ENT_QUOTES, 'UTF-8') ?>">
26+
<?php include '../includes/header-favicon.php'; ?>
27+
<script src="../../js/hamburger.js"nonce="<?= htmlspecialchars($nonce, ENT_QUOTES, "UTF-8"); ?>" defer></script>
28+
</head>
29+
<body>
30+
<?php include '../includes/header.php' ?>
31+
<div class="wrapper">
32+
<main>
33+
<?php include '../includes/breadcrumb.php'; render_breadcrumb(); ?>
34+
<p class="title">ぷよテト大会を開催します!</p>
35+
<div class="news_content">
36+
<p>高専祭2025でぷよテト大会を開催します!最強のぷよテトプレイヤーは誰だ!?</p>
37+
<p>日時:10月25日(土) 11:00~13:00</p>
38+
<p>会場:第一体育館</p>
39+
<p>参加費は無料です。</p>
40+
<p>大会形式:トーナメント形式</p>
41+
<p>参加希望者は以下のリンクから申し込み完了後、当日会場へお越しください。</p>
42+
<a href="https://forms.office.com/Pages/ResponsePage.aspx?id=XYP-cpVeEkWK4KezivJfyE-ptyii6zlJj-PM44-6mdJUOEtCTEpRM0pFSzJUUUk5UkhUWVQwMUpGNy4u&origin=QRCode" class="link">参加申し込みForms</a>
43+
<img src="../../images/event/puyoteko.png" alt="PuyoTeto Poster" class="poster-image">
44+
</div>
45+
</main>
46+
</div>
47+
<?php include '../includes/footer.php' ?>
48+
</body>
49+
</html>

0 commit comments

Comments
 (0)