Skip to content

Commit

Permalink
Style 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Mar 5, 2024
1 parent fda9992 commit 0dea448
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Bookmark.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const result = await fetchMeta(url)
---

<div class="mb-10">
<a href={result.url} class="no-underline my-4 not-prose text-inherit flex gap-10 border-[1px] px-4 py-4 border-[var(--sl-color-gray-6)] rounded-lg">
<img class="md:block hidden drop-shadow-md object-cover w-32 rounded-lg" src={result.image ?? result.icon} alt={result.image}/>
<a href={result.url} class="no-underline mx-4 my-4 not-prose text-inherit flex gap-10 border-[1px] px-8 py-4 border-[var(--sl-color-gray-6)] rounded-lg">
<img class="md:block hidden drop-shadow-md object-contain w-32 rounded-lg" src={result.image ?? result.icon} alt={result.image}/>
<div class="prose gap-y-0.5 overflow-hidden flex flex-col">
<strong class="">{result.title}</strong>
<div className="">
Expand Down
16 changes: 14 additions & 2 deletions src/components/PageTitle.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
---
import type { Props } from '@astrojs/starlight/props';
import LastUpdated from 'virtual:starlight/components/LastUpdated';
const { labels, lang, lastUpdated } = Astro.props;
---


<h1 id='_top'>{Astro.props.entry.data.title}</h1>
<LastUpdated {...Astro.props} />
{
lastUpdated && (
<p>
<time>
{lastUpdated.toISOString()
.replace(/T|Z/g, ' ')
.slice(0, 16)
.replace(/-/g, '.')
}
</time>
</p>
)
}

<style>
h1 {
Expand Down

0 comments on commit 0dea448

Please sign in to comment.