Skip to content

Conversation

mucho613
Copy link
Collaborator

@mucho613 mucho613 commented Aug 16, 2025

デザインとの差異を修正

  • 見出しのテキストの抜け、行間、マージンなどのスタイルを調整
  • 修正内容はコードにつけたコメントに記載しました 🙏

@mucho613 mucho613 self-assigned this Aug 16, 2025
@@ -1,6 +1,6 @@
<div class="relative mt-20 xl:mt-48">
<div class="max-w-7xl mx-6 xl:mx-auto">
<div class="max-w-3xl mx-auto xl:absolute xl:bottom-[45%]">
<div class="max-w-3xl mx-auto xl:absolute xl:bottom-2/5">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

説明文の高さが大きくなったため位置を調整

@@ -14,13 +14,13 @@ <h2 class="relative xl:hidden max-w-lg">
</h2>

<!-- 説明文セクション -->
<div class="mt-9 xl:ml-18 xl:max-w-[620px]">
<p>
<div class="mt-9 xl:ml-18 xl:max-w-[620px] leading-7">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デザインファイル(.psd)では行間は 28px なので、それに合わせて設定

<div class="mt-9 xl:ml-18 xl:max-w-[620px]">
<p>
<div class="mt-9 xl:ml-18 xl:max-w-[620px] leading-7">
<p class="mb-4">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デザインでは段落の間に余白が設けられていため、margin で確保する

CoderDojoは子ども達にプログラミングを学ぶ場を提供する、ボランティア主導の世界的な非営利活動です。
</p>
<p>
CoderDojoは2011年にアイルランドから始まり、現在は世界100カ国に2,000以上の道場があり、日本国内でも全国200以上の道場で毎年1,000回以上(*1)開催されています。CoderDojoはエンジニアやデザイナー、各地域の保護者や学生、研究者や経営者など(メンター)と子どもが出会える場にもなっています。<br />
<small>*1 統計情報:https://coderdojo.jp/stats</small>
<small class="break-all">*1 統計情報:https://coderdojo.jp/stats</small>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ウィンドウ幅が縮んだ際(-300px 前後)で、この URL 部分が折り返さず body が見切れてしまうので、word-break: break-all で折り返すようにした

@@ -4,7 +4,7 @@
<h2>
<img src="/img/top/inspire-next/inspire-next-heading.webp" alt="Inspire NEXT ~好奇心に火をつけよう~" />
</h2>
<div class="mt-9 max-w-3xl">
<div class="mt-9 max-w-3xl leading-7">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デザインファイル(.psd)では行間は 28px なので、それに合わせて設定

@@ -32,7 +32,7 @@ <h2 class="relative max-w-7xl">
<img class="h-[140%] w-auto absolute right-0 -bottom-1/5 w-3xs" src="/img/top/inspire-next/fire-transparent.webp" />
</h2>

<div class="mt-9">
<div class="mt-9 leading-7">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デザインファイル(.psd)では行間は 28px なので、それに合わせて設定

@@ -9,7 +9,7 @@ <h2 class="text-4xl text-center mb-12">
生成AI時代における<br />
「子どもたちの創造」と学び
</p>
<p class="text-xl mb-4">宮島 衣瑛(みやじま きりえ)</p>
<p class="text-xl mb-2">宮島 衣瑛(みやじま きりえ)</p>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デザインではもっと余白が少なかったため調整

Comment on lines +31 to +35
<h2 class="text-4xl text-center mb-12">
招待講演
<span class="block mt-5 text-2xl">KEYNOTE 02</span>
</h2>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

見出しが抜けていたため追加

<div class="flex max-w-7xl mx-auto px-6 lg:px-12 jutify-between gap-x-12 flex-col lg:flex-row">
<div class="w-full lg:w-[55%] mb-8">
<p class="text-3xl lg:text-4xl leading-12 lg:leading-15 mb-2">
生成AIをはじめ急速に変化する環境で、<br />
子どもの好奇心をどう伸ばすか
</p>
<p class="text-xl mb-4">小宮山 利恵子(こみやま りえこ)</p>
<p class="text-xl mb-2">小宮山 利恵子(こみやま りえこ)</p>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デザインではもっと余白が少なかったため調整

@@ -4,7 +4,7 @@ <h2 class="text-4xl mt-20 sm:mt-32 text-center">
</h2>

<div class="m-6 flex flex-col items-center">
<ul class="border-y divide-y max-w-7xl mx-auto mb-12">
<ul class="border-y border-[#ccc] divide-y divide-[#ccc] max-w-7xl mx-auto mb-12">
Copy link
Collaborator Author

@mucho613 mucho613 Aug 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

区切り線の色をデザインと同じ色にした

@@ -17,8 +17,8 @@ <h2 class="text-4xl mb-4 text-center lg:text-left">
<li class="flex-1 min-w-full sm:min-w-64">
<img class="w-full" src="https://placehold.jp/1920x1080.png" alt="セッションのイメージ">
<p class="mt-2">セッションタイトル。2行ぐらいあるかも</p>
<p class="text-xs mb-2">セッションの説明です。最大2行ぐらいまで許容しそうな雰囲気</p>
<p class="text-xs text-gray-400">
<p class="text-xs mb-2 leading-5">セッションの説明です。最大2行ぐらいまで許容しそうな雰囲気</p>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デザインと同じぐらいの行間になるように調整(.psd ファイル上でも、どこかのページのスクリーンショットが使われているため正確な行間値は測れなかった)

Comment on lines +5 to +8
<div class="text-xl sm:text-2xl md:text-4xl text-center mt-10 mx-8 leading-6 sm:leading-10 md:leading-16">
<div class="mb-4">DojoCon Japan 2025 実行委員会</div>
<div>一般社団法人 CoderDojo Japan</div>
</div>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ウィンドウ幅が縮んだ際、テキストも段階的に小さくなるようにした(できるだけテキストが折り返さないように)
  • 2つの項目の間に余白を確保

@mucho613 mucho613 marked this pull request as ready for review August 16, 2025 03:39
@mucho613 mucho613 changed the title fix: デザインとの差異を修正(テキストとスタイル) デザインとの差異を修正(テキストとスタイル) Aug 16, 2025
@mucho613 mucho613 merged commit 052a2f0 into main Aug 16, 2025
2 checks passed
@mucho613 mucho613 deleted the fix/text-and-styles branch August 16, 2025 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants