Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

久米田康治ニュースのリンク表示をアイコン主体に変更 #613

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions astro/public/kumeta/image/icon_bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions astro/public/kumeta/image/icon_discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions astro/public/kumeta/image/icon_mastodon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 28 additions & 6 deletions astro/src/pages/kumeta/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import GithubSlugger from 'github-slugger';
import Layout from '@layouts/Kumeta.astro';
import H from '@components/H.astro';
import LinkExternal from '@components/LinkExternal.astro';
import Section from '@components/Section.astro';
import TopUpdate from '@components/TopUpdate.astro';
import type { StructuredData } from '@type/types.js';
Expand Down Expand Up @@ -93,15 +94,36 @@ const slugger = new GithubSlugger();
<Section slugger={slugger} depth={2} headingType="b">
<H slot="heading">最新ニュース</H>

<ul class="p-links -index">
<li><a href="https://calendar.google.com/calendar/u/0/[email protected]">久米田康治カレンダー</a><small>(Google カレンダー)</small></li>
<li><a href="https://discord.gg/3G4kchxRgk">久米田康治情報</a><small>(Discord)</small></li>
<li><a href="https://mastodon.social/@kumeta_news">久米田康治ニュース</a><small>(Mastodon)</small></li>
<ul class="p-kumeta-top-news">
<li>
<LinkExternal href="https://calendar.google.com/calendar/u/0/[email protected]" icon={false}>
<span class="p-kumeta-top-news__image"><img src="/kumeta/image/icon_google-calendar.png" alt="" width="64" height="64" /></span>
<span class="p-kumeta-top-news__text">Google カレンダー</span>
</LinkExternal>
</li>
<li>
<LinkExternal href="https://discord.gg/3G4kchxRgk" icon={false}>
<span class="p-kumeta-top-news__image"><img src="/kumeta/image/icon_discord.svg" alt="" width="64" height="49" /></span>
<span class="p-kumeta-top-news__text">Discord</span></LinkExternal
>
</li>
<li>
<LinkExternal href="https://mastodon.social/@kumeta_news" icon={false}>
<span class="p-kumeta-top-news__image"><img src="/kumeta/image/icon_mastodon.svg" alt="" width="61" height="64" /></span>
<span class="p-kumeta-top-news__text">Mastodon</span></LinkExternal
>
</li>
<li>
<LinkExternal href="https://bsky.app/profile/kumeta-news.mastodon.social.ap.brid.gy" icon={false}>
<span class="p-kumeta-top-news__image"><img src="/kumeta/image/icon_bluesky.svg" alt="" width="64" height="64" /></span>
<span class="p-kumeta-top-news__text">Bluesky</span></LinkExternal
>
</li>
</ul>

<ul class="p-notes">
<li>本誌連載、コミックス発売、イベント開催などの情報を Google カレンダーに蓄積し、自動投稿で Discord と Mastodon に流しています。</li>
<li>皆さまからの情報提供もお待ちしております。上記 Discord サーバーに参加のうえ #news チャンネルに投稿ください。</li>
<li>本誌連載、コミックス発売、イベント開催などの情報を Google カレンダーに蓄積し、自動投稿で Discord と Mastodon、Bluesky に流しています。</li>
<li>情報提供も歓迎します。上記 Discord サーバーに参加のうえ <code>#news</code> チャンネルに投稿ください。</li>
</ul>
</Section>
</div>
Expand Down
1 change: 1 addition & 0 deletions astro/style/kumeta.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
@import url("object/project/_main-top.css") layer(project);
@import url("object/project/_main.css") layer(project);

@import url("object/project/_main-kumeta-top.css") layer(project);
@import url("object/project/_main-kumeta-x.css") layer(project);

/* Object - Utility */
Expand Down
33 changes: 33 additions & 0 deletions astro/style/object/project/_main-kumeta-top.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* ==============================
* 久米田康治データベース・ トップページ
* ============================== */

/* ===== 最新ニュース ===== */
.p-kumeta-top-news {
--_icon-size: 64px;

display: block flex;
flex-wrap: wrap;
gap: calc(var(--_icon-size) / 2);
line-height: var(--line-height-narrow);
font-size: calc(100% / pow(var(--font-ratio), 2));

& > li {
inline-size: var(--_icon-size);
text-align: center;
}
}

.p-kumeta-top-news__image {
display: inline flex;
align-items: center;
margin-block-end: 0.5em;
block-size: var(--_icon-size);
}

.p-kumeta-top-news__text {
&::before {
display: block flow;
content: "";
}
}
Loading