Skip to content

Commit 2c0521c

Browse files
committed
wip
1 parent 51532b7 commit 2c0521c

File tree

9 files changed

+140
-14
lines changed

9 files changed

+140
-14
lines changed

astro.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default defineConfig({
2222
icon({
2323
include: {
2424
feather: ["*"],
25+
flowbite: ["*"],
2526
},
2627
}),
2728
mdx(),

bun.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@astrojs/svelte": "^7.0.8",
1010
"@date-fns/tz": "^1.2.0",
1111
"@iconify-json/feather": "^1.2.1",
12+
"@iconify-json/flowbite": "^1.2.5",
1213
"@tailwindcss/typography": "^0.5.16",
1314
"astro": "^5.5.5",
1415
"astro-icon": "^1.1.5",
@@ -165,6 +166,8 @@
165166

166167
"@iconify-json/feather": ["@iconify-json/[email protected]", "", { "dependencies": { "@iconify/types": "*" } }, "sha512-gURNg2TJYuO1U7DoOGCylm9TwkMfzjOH2BHdWsE0IXLXj/MNkFIJu56Wu1xRws27M8hzDzUDt/biGUa/LfAjdg=="],
167168

169+
"@iconify-json/flowbite": ["@iconify-json/[email protected]", "", { "dependencies": { "@iconify/types": "*" } }, "sha512-HPaKCC4U5F3OrzDGkC6vTNv5DO9HG4rTYl2D1B4x6vetoNNhuHdh1mM3hDnpCPhNIUlbe2sBSMJxBtewP+YjVA=="],
170+
168171
"@iconify/tools": ["@iconify/[email protected]", "", { "dependencies": { "@iconify/types": "^2.0.0", "@iconify/utils": "^2.2.0", "@types/tar": "^6.1.13", "axios": "^1.7.9", "cheerio": "1.0.0", "domhandler": "^5.0.3", "extract-zip": "^2.0.1", "local-pkg": "^0.5.1", "pathe": "^1.1.2", "svgo": "^3.3.2", "tar": "^6.2.1" } }, "sha512-Hybu/HGhv6T8nLQhiG9rKx+ekF7NNpPOEQAy7JRSKht3s3dcFSsPccYzk24Znc9MTxrR6Gak3cg6CPP5dyvS2Q=="],
169172

170173
"@iconify/types": ["@iconify/[email protected]", "", {}, "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg=="],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@astrojs/svelte": "^7.0.8",
2929
"@date-fns/tz": "^1.2.0",
3030
"@iconify-json/feather": "^1.2.1",
31+
"@iconify-json/flowbite": "^1.2.5",
3132
"@tailwindcss/typography": "^0.5.16",
3233
"astro": "^5.5.5",
3334
"astro-icon": "^1.1.5",

src/components/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import banner from "+contents/banner.ts";
77
import Logo from "./Logo.astro";
88
99
const links = [
10+
{ title: "About", href: "/about", focus: Focus.about },
1011
{ title: "プロジェクト", href: "/projects", focus: Focus.projects },
1112
{ title: "記事", href: "/articles", focus: Focus.articles },
1213
{ title: "メンバー", href: "/members", focus: Focus.members },
1314
{ title: "参加", href: "/join", focus: Focus.join },
14-
{ title: "お問い合わせ", href: "/contact", focus: Focus.contact },
1515
];
1616
1717
interface Props {

src/layouts/StaticDocumentWrapper.astro

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@ const { header, fill, title, position } = Astro.props;
2121
loading="eager"
2222
src={header}
2323
width="1920"
24-
height="600"
25-
class:list={[
26-
"my-8 h-100 w-full object-cover md:h-100 lg:h-150",
27-
fill,
28-
position,
29-
]}
24+
height={300}
25+
class:list={["my-8 h-75 w-full object-cover", fill, position]}
3026
/>
3127
<article class="prose mx-5 mb-20 max-w-xl sm:mx-10 md:mx-auto">
3228
<slot />

src/pages/about/index.astro

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
---
2+
import GlobalLayout from "+/layouts/GlobalLayout.astro";
3+
import StaticDocumentWrapper from "+/layouts/StaticDocumentWrapper.astro";
4+
5+
import ActionButton from "+/components/ActionButton.astro";
6+
import Header from "+/images/activity/develop/solo-dev.jpg";
7+
import { Focus } from "+/schema";
8+
---
9+
10+
<GlobalLayout
11+
focus={Focus.about}
12+
title="About Us"
13+
description={null}
14+
image={Header}
15+
>
16+
<StaticDocumentWrapper title="About Us" header={Header} fill="bg-gray-400">
17+
<section>
18+
<h2>団体概要</h2>
19+
20+
<ul>
21+
<li>団体名: ut.code();</li>
22+
<li>構成人数: 30 人程度</li>
23+
<li>発足: 2019 年</li>
24+
<li>
25+
X: <a class="link" target="_blank" href="https://x.com/utokyo_code"
26+
>utokyo_code</a
27+
>
28+
</li>
29+
<li>
30+
GitHub: <a
31+
class="link"
32+
target="_blank"
33+
href="https://github.com/ut-code">ut-code</a
34+
>
35+
</li>
36+
<li>Email: <span id="email-loader">読込中...</span></li>
37+
<li>
38+
紹介動画: <a
39+
target="_blank"
40+
class="link"
41+
href="https://www.youtube.com/watch?v=aUoa1AyfbMA">Youtube</a
42+
>
43+
</li>
44+
</ul>
45+
<script>
46+
document.getElementById("");
47+
console.log("loading email...");
48+
// スパム対策
49+
function showEmail() {
50+
const elem = document.getElementById("email-loader");
51+
if (!elem) return;
52+
const addr = `contact${String.fromCharCode(64)}utcode.net`;
53+
if (elem.innerText !== addr) {
54+
elem.outerHTML = `<a class="link" href="mailto:${addr}">${addr}</a>`;
55+
}
56+
}
57+
// HACK: setTimeout だとブラウザバックで戻った時、うまく実行されない
58+
setInterval(showEmail, 3000);
59+
</script>
60+
</section>
61+
<section>
62+
<h2>活動内容</h2>
63+
ut.code(); には「学習」「交流」「開発」の三軸を主にして活動しています。
64+
<p>
65+
活動例:
66+
<ul>
67+
<li>学習: ut.code(); Learn、全ゼミ・自主ゼミ</li>
68+
<li>交流: 五月祭・駒場祭、合宿</li>
69+
<li>開発: プロジェクト、ハッカソン</li>
70+
</ul>
71+
</p>
72+
</section>
73+
<section>
74+
<h2>活動場所</h2>
75+
<ul>
76+
<li>部室: 駒場学生会館 313B</li>
77+
<li>本郷図書館 プロジェクトボックス</li>
78+
<li>オンライン (Discord)</li>
79+
など
80+
</ul>
81+
</section>
82+
<section>
83+
<h2>FAQ / よくある質問</h2>
84+
<article>
85+
<h3>Q: 活動頻度はどのくらいですか?</h3>
86+
A: プロジェクトの参加数や各プロジェクトによって異なりますが、 一般的には毎週夜のミーティングと月1~2回の作業会になります。
87+
</article>
88+
<article>
89+
<h3>Q: 初心者でも大丈夫ですか?</h3>
90+
A: 全く問題ありません! ut.code(); は全くの初心者がフルスタックのアプリケーションを作成できるようになる教材を公開しており、その教材を用いた勉強会や講習会も実施しています!
91+
</article>
92+
<article>
93+
<h3>Q: 東京大学ではないです・一年生ではありません・文系です</h3>
94+
A: 全く問題ありません! ut.code(); は大学名・学年による制限は設けていません。
95+
</article>
96+
</section>
97+
<section>
98+
<h2>主な使用技術・スタック</h2>
99+
<aside class="alert alert-outline alert-info">
100+
具体的な使用技術はプロジェクトによって異なります。
101+
</aside>
102+
<ul>
103+
<li>言語: JavaScript, TypeScript など</li>
104+
<li>フレームワーク: React・Next.js, Svelte(Kit) など</li>
105+
<li>UI: MUI, Tailwind, DaisyUI など</li>
106+
<li>バックエンド: Hono, Express, Prisma, Drizzle など</li>
107+
<li>データベース: Supabase, Neon など</li>
108+
<li>インフラ: Cloudflare, Fly.io, Render など</li>
109+
<li>情報: Notion, Discord, GitHub など</li>
110+
</ul>
111+
</section>
112+
<section>
113+
<h2>ご寄付・ご協賛のお願い</h2>
114+
<p>
115+
ut.code();
116+
では、活動を支援していただける方を募集しております。詳細につきましては、次のページをご覧ください。
117+
</p>
118+
<p class="not-prose">
119+
<ActionButton to="/donation"> ご寄付・ご協賛のお願い </ActionButton>
120+
</p>
121+
</section>
122+
</StaticDocumentWrapper>
123+
</GlobalLayout>

src/pages/contact.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import Header from "+/images/headers/contact.jpg";
44
import GlobalLayout from "+/layouts/GlobalLayout.astro";
55
import StaticDocumentWrapper from "+/layouts/StaticDocumentWrapper.astro";
66
import { Focus } from "+/schema";
7+
8+
// TODO: delete this file
79
---
810

911
<GlobalLayout
1012
title="連絡"
1113
description="ut.code(); に連絡する手段"
12-
focus={Focus.contact}
14+
focus={Focus.about}
1315
image={Header}
1416
>
1517
<StaticDocumentWrapper

src/pages/donation.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Focus } from "+/schema";
99
<GlobalLayout
1010
title="ご寄付・ご協賛のお願い"
1111
description="ご寄付・ご協賛をお願いしております"
12-
focus={Focus.contact}
12+
focus={Focus.about}
1313
class="prose"
1414
image={Header}
1515
>

src/schema.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ export const CreateMemberSchema = ({ image }: { image: ImageFunction }) =>
7878
// ヘッダーのスタイリングに使われています
7979
export enum Focus {
8080
none = 0,
81-
projects = 1,
82-
articles = 2,
83-
members = 3,
84-
join = 4,
85-
contact = 5,
81+
about = 1,
82+
projects = 2,
83+
articles = 3,
84+
members = 4,
85+
join = 5,
8686
}

0 commit comments

Comments
 (0)