Skip to content

Commit

Permalink
chore: imaging
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Oct 4, 2024
1 parent b2de4d7 commit 6583cfb
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
Binary file added public/kaplay.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions src/components/Land/About.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ import AboutFeatured from "./AboutFeatured.astro";
</div>
</div>
<div>
<Image
<img
class="w-full max-w-3xl"
src={kaplayBanner}
src={kaplayBanner.src}
alt="KAPLAY Banner"
height={1400}
width={500}
Expand Down
2 changes: 0 additions & 2 deletions src/components/Land/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { Image } from "astro:assets";
const urlPath = Astro.url.pathname;
const linksPrefix = urlPath === "/" ? "" : "/";
const internalLinks = [
{
name: "Home",
Expand Down
5 changes: 3 additions & 2 deletions src/components/Sidebar/Sidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { cn } from "@/util/cn";
import { t } from "@/util/i18n";
import { getLangedRoute } from "@/util/path";
import type { MarkdownHeading } from "astro";
import Image from "astro/components/Image.astro";
import { Image } from "astro:assets";
import {
getBlogEntries,
getBookEntries,
Expand Down Expand Up @@ -161,11 +161,12 @@ else if (sidebarMode === "books") {
<figure>
<a class="btn btn-ghost h-max" href={getLangedRoute(lang, "/")}>
<Image
src={kaplayOutlined}
src="/kaplay.webp"
alt="kaplay logo"
class="w-52 h-24 aspect-auto object-contain"
width={208}
height={100}
loading={"eager"}
/>
</a>
</figure>
Expand Down
8 changes: 2 additions & 6 deletions src/layouts/Page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,11 @@ const image = meta?.image ?? "/kaplayjs.png";
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/base16/summerfruit-dark.min.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
integrity="sha384-MlJdn/WNKDGXveldHDdyRP1R4CTHr3FeuDNfhsLPYrq2t0UBkUdK2jyTnXPEK1NQ"
crossorigin="anonymous"
/>

<title>{meta?.title}</title>
<ViewTransitions />
<script src="/pagefind/pagefind-ui.js" is:inline></script>
<slot name="head" />
</head>
<body>
<slot />
Expand Down
2 changes: 2 additions & 0 deletions src/layouts/SidebarPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const { sidebarMode, meta, lang, headings } = Astro.props;
---

<Page lang={lang} meta={meta}>
<slot name="head" slot="head" />

<Sidebar sidebarMode={sidebarMode} headings={headings}>
<slot />
</Sidebar>
Expand Down
8 changes: 8 additions & 0 deletions src/pages/[...path]/books/[...book]/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ const { Content, headings } = await entry.render();
sidebarMode="books"
headings={headings}
>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
integrity="sha384-MlJdn/WNKDGXveldHDdyRP1R4CTHr3FeuDNfhsLPYrq2t0UBkUdK2jyTnXPEK1NQ"
crossorigin="anonymous"
slot="head"
/>

<Prose>
<Content />
</Prose>
Expand Down

0 comments on commit 6583cfb

Please sign in to comment.