Skip to content
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
7 changes: 5 additions & 2 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import { Image } from "astro:assets";
import ZDK_logo from "../assets/zdk_logo_full.svg";
import ZDK_logo_dark from "../assets/zdk_logo_full_for_darkmode.svg";
---
Expand All @@ -18,11 +19,13 @@ import ZDK_logo_dark from "../assets/zdk_logo_full_for_darkmode.svg";
<picture>
<source
srcset={ZDK_logo_dark.src}
width={ZDK_logo_dark.width}
height={ZDK_logo_dark.height}
media="(prefers-color-scheme: dark)"
/>
<img
<Image
class="footer__logo"
src={ZDK_logo.src}
src={ZDK_logo}
alt="全学学類・専門学群・総合学域群代表者会議"
/>
</picture>
Expand Down
76 changes: 39 additions & 37 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import headerSVGDark from "../assets/header_for_darkmode.svg";
<picture>
<source
srcset={headerSVGDark.src}
width={headerSVGDark.width}
height={headerSVGDark.height}
media="(prefers-color-scheme: dark)"
/>
<Image
Expand All @@ -21,42 +23,42 @@ import headerSVGDark from "../assets/header_for_darkmode.svg";
</picture>
<Image class="icon" loading="eager" src={Icon} alt="" />
</div>

<style>
.top-link {
display: inline-block;
margin-block-start: 2rem;
text-decoration: none;
color: inherit;
}
.title-container {
display: flex;
align-items: center;
}
.title {
height: 5rem;
width: fit-content;
}
.icon {
height: 5rem;
width: 5rem;
}
@media screen and (max-width: 768px) {
.header {
text-align: center;
}
.title {
height: 14vw;
max-height: 5rem;
width: fit-content;
}
.icon {
height: 14vw;
width: 14vw;
max-height: 5rem;
max-width: 5rem;
}
}
</style>
</a>
</header>

<style>
.top-link {
display: inline-block;
margin-block-start: 2rem;
text-decoration: none;
color: inherit;
}
.title-container {
display: flex;
align-items: center;
}
.title {
height: 5rem;
width: fit-content;
}
.icon {
height: 5rem;
width: 5rem;
}
@media screen and (max-width: 768px) {
.header {
text-align: center;
}
.title {
height: 14vw;
max-height: 5rem;
width: fit-content;
}
.icon {
height: 14vw;
width: 14vw;
max-height: 5rem;
max-width: 5rem;
}
}
</style>