Skip to content

Commit cb213bd

Browse files
committed
TOP ページの hero section を追加
1 parent e13e65a commit cb213bd

File tree

4 files changed

+39
-2
lines changed

4 files changed

+39
-2
lines changed

_includes/top/sections/hero.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="max-w-[1500px] mt-2 xl:-mt-14 mx-auto px-[2%] md:px-8">
2+
<img src="/img/2025/top/hero-image.png" alt="好奇心に火をつけよう!! Inspire Next" />
3+
</div>
4+
5+
<div class="flex mx-auto max-w-[1020px] justify-center lg:justify-start">
6+
<p class="lg:-mt-6 xl:-mt-10 leading-8 px-6 text-lg font-bold">
7+
DojoCon Japanとは日本の CoderDojo コミュニティメンバーが全国から集まる、<br />
8+
年に1度のカンファレンスイベント(CoderDojo Conference) です。<br />
9+
2016年に始まり、2025年は福岡県久留米市にて開催します。
10+
</p>
11+
</div>

_layouts/top.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{% if page_title or page_title == '' %}
2+
{% assign page_title = page.title %}
3+
{% endif %}
4+
{% if page_subtitle or page_subtitle == '' %}
5+
{% assign page_subtitle = page.subtitle %}
6+
{% endif %}
7+
{% assign page_title = page.title %}
8+
<!DOCTYPE html>
9+
<html lang="ja" dir="ltr">
10+
{% include head.html %}
11+
12+
<body class="bg-linear-106 from-[#9d1e29] to-[#d4932a] text-[#262626] font-bold tracking-wider min-h-dvh p-4 flex">
13+
<div class="bg-white rounded-2xl min-h-full flex-grow flex flex-col">
14+
<div class="bg-[url(/img/2025/top/hero-section-background.png)] bg-contain">
15+
{% include header.html %}
16+
17+
<div class="flex-grow">
18+
{{ content }}
19+
</div>
20+
</div>
21+
22+
{% include footer.html %}
23+
</div>
24+
</body>
25+
26+
</html>

img/2025/top/hero-image.png

799 KB
Loading

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
layout: default
2+
layout: top
33
---
4-
{% include top/sections/contact.html %}
4+
{% include top/sections/hero.html %}

0 commit comments

Comments
 (0)