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

カードの縦幅を揃える #41

Merged
merged 2 commits into from
Nov 25, 2023
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
4 changes: 2 additions & 2 deletions src/components/index/about/AboutSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ const items: Item[] = [
<span class="inline-block">OUCCって</span>
<span class="inline-block">どんなサークル?</span>
</Fragment>
<ul class="flex flex-col items-center md:flex-row md:items-start gap-5">
<ul class="flex flex-col items-center md:flex-row md:items-stretch gap-5">
{
items.map(({ icon, description }) => (
<li class="flex-1 max-w-[32rem]">
<li class="flex-1 max-w-[32rem] flex items-stretch">
<AboutCard>
<Icon slot="icon" name={icon} alt="" class="w-20 h-20" />
{description.map((x) => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/join/place/LargeCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { title } = Astro.props
---

<div
class="flex-1 min-w-[16rem] p-4 rounded-lg bg-secondary border-2 border-primary drop-shadow-contrast flex flex-col gap-2.5"
class="min-w-[16rem] p-4 rounded-lg bg-secondary border-2 border-primary drop-shadow-contrast grid grid-rows-[subgrid] row-span-3 gap-2.5"
>
<h2 class="text-xl font-bold">{title}</h2>
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/components/join/place/PlaceDescription.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LargeCard from './LargeCard.astro'
import SmallCard from './SmallCard.astro'
---

<div class="flex flex-wrap items-start gap-2.5">
<div class="grid grid-cols-1 md:grid-cols-2 gap-2.5">
<LargeCard title="誰でも参加可能">
<SmallCard title="Discord 公開サーバー">
<p>
Expand Down
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />