Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
deminearchiver committed Jun 3, 2024
1 parent 7255274 commit 45a347b
Show file tree
Hide file tree
Showing 12 changed files with 330 additions and 300 deletions.
1 change: 1 addition & 0 deletions app/src/components/search/search-view.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const searchViewStyle = recipe({
borderRadius: 28,
overflowX: "hidden",
overflowY: "auto",
scrollbarWidth: "thin",
display: "flex",
flexDirection: "column",

Expand Down
10 changes: 10 additions & 0 deletions app/src/content/blog/astro-dynamic-images.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
wip: true
title: Everything about Dynamic Image Loading in Astro
description: In this post I will show you everything you need to know about Astro's image loading capabilities
authors: [deminearchiver]
createdAt: 2024-06-03
tags:
- astro
- typescript
---
141 changes: 0 additions & 141 deletions app/src/content/blog/tooltip.mdx

This file was deleted.

24 changes: 23 additions & 1 deletion app/src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
import { getBlogCollection } from "../../schemas/blog";
import type { ActionError } from "astro:actions";
import type { JSX } from "astro/jsx-runtime";
import { TAGS, type Tag } from "../../schemas/blog";
dayjs.extend(utc);
Expand Down Expand Up @@ -81,7 +84,21 @@ const posts = (await getBlogCollection())
<span class="date">{date}</span>
<h3 id={anchorId} class="title">{post.title}</h3>
{post.description && <p class="description">{post.description}</p>}
{post.tags && <ul class="tags">{post.tags.map(tag => <li class="tag">{tag.name}</li>)}</ul>}
{post.tags
&& <ul class="tags">{
post.tags.map(id => {
const value = TAGS[id];
const tag: Tag = typeof value === "string"
? { label: value }
: { ...value };
return (
<li class:list={["tag", tag.icon && "with-icon"]}>
{tag.icon && <tag.icon width={18} height={18} />}
{tag.label}
</li>
);
})
}</ul>}
</div>
</a>
<div class="authors">
Expand Down Expand Up @@ -375,6 +392,7 @@ const posts = (await getBlogCollection())
display: flex;
align-items: center;
justify-content: center;
gap: 8px;

background-color: var(--color-secondary-container);
border-radius: 8px;
Expand All @@ -389,5 +407,9 @@ const posts = (await getBlogCollection())
text-decoration: none;
font-variation-settings: "GRAD" 0;
color: var(--color-on-secondary-container);

&.with-icon {
padding-inline-start: 8px;
}
}
</style>
5 changes: 1 addition & 4 deletions app/src/pages/showcase/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ const entries = (await getShowcaseCollection())
entries.map(entry => {
return (
<li>
{/* <a href={`/showcase/${entry.slug}/`}>
{entry.data.title}
</a> */}
<ShowcaseCard class="card" entry={entry} />
</li>
);
Expand Down Expand Up @@ -54,7 +51,7 @@ const entries = (await getShowcaseCollection())
}
}

li {
.entries > li {
display: contents;
}

Expand Down
Loading

0 comments on commit 45a347b

Please sign in to comment.