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

SOS への導線を追加 #99

Merged
merged 3 commits into from
Apr 29, 2024
Merged
Changes from 1 commit
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
29 changes: 29 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const xAccountURL = "https://twitter.com/" + SOPOTAN_TWITTER_ID.replace("@", "")
---

<TopLayout>
<div class="to-sos">
<a href="https://sos24.sohosai.com/">企画応募はこちら</a>
Ryoga-exe marked this conversation as resolved.
Show resolved Hide resolved
</div>
<Container>
<section>
<h2>{t("top.お知らせ")}</h2>
Expand Down Expand Up @@ -93,6 +96,32 @@ const xAccountURL = "https://twitter.com/" + SOPOTAN_TWITTER_ID.replace("@", "")
</TopLayout>

<style lang="scss">
.to-sos {
padding-block: 2rem;

> a {
display: block;
padding-block: 1rem;
font-size: 1rem;
color: white;
text-align: center;
text-decoration: none;
background: $orange;
}
@media screen and ($pc-query) {
width: 100%;
max-width: $content-width;
padding-inline: $side-padding;
margin-inline: auto;

> a {
width: fit-content;
padding-inline: 3rem;
border-radius: 3px;
}
}
}

.news {
display: grid;
grid-template-rows: max-content 1fr;
Expand Down