Skip to content

Commit

Permalink
🛠️ Just for the convenience of updating the unified progress
Browse files Browse the repository at this point in the history
  • Loading branch information
EveSunMaple committed Jun 2, 2024
1 parent bc9ba4f commit ec9b0e8
Showing 8 changed files with 1,009 additions and 926 deletions.
9 changes: 8 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import sitemap from '@astrojs/sitemap';
import tailwind from "@astrojs/tailwind";
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import rehypeExternalLinks from 'rehype-external-links';

export default defineConfig({
site: 'https://www.saroprock.com',
@@ -23,7 +24,13 @@ export default defineConfig({
}
}
},
rehypeKatex
rehypeKatex,
[
rehypeExternalLinks,
{
content: { type: 'text', value: ' 🔗' }
}
],
]
}
});
1,879 changes: 978 additions & 901 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@
"dayjs": "^1.11.11",
"katex": "^0.16.10",
"prismjs": "^1.29.0",
"rehype-external-links": "^3.0.0",
"rehype-katex": "^7.0.0",
"remark-math": "^6.0.0",
"shiki": "^1.6.1"
Binary file modified public/home.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/BaseCard.astro
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ const displayDate = dayjs(pubDate).format("ddd MMM DD YYYY");
format="webp"
alt={title}
class="card-img"
loading="lazy"
loading="eager"
/>
)
}
4 changes: 2 additions & 2 deletions src/components/page/LinkCard.astro
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Image } from "astro:assets";
---

<div
class="rounded-lg bg-base-100 hover:shadow-xl transition ease-in-out hover:scale-[102%]"
class="rounded-lg bg-base-100 hover:shadow-xl hover:transition-all ease-in-out hover:scale-[102%] link-card"
>
<a href={url} target={target}>
<div class="hero-content flex-col md:flex-row">
@@ -29,4 +29,4 @@ import { Image } from "astro:assets";
</div>
</div>
</a>
</div>
</div>
18 changes: 18 additions & 0 deletions src/components/page/LinkThere.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
const { desc, url, className, target = "_blank" } = Astro.props;
---

<div
class="rounded-lg bg-base-100 hover:shadow-xl hover:transition-all ease-in-out hover:scale-[102%]"
>
<a href={url} target={target}>
<div class="hero-content flex-col md:flex-row">
<div class={className}>
<slot />
</div>
<div class="grow w-full">
<p class="py-1 text-1xl">{desc}</p>
</div>
</div>
</a>
</div>
22 changes: 1 addition & 21 deletions src/styles/global.css
Original file line number Diff line number Diff line change
@@ -47,6 +47,7 @@ h5,
h6 {
margin: 0 0 0.5rem 0;
margin-bottom: 0.25em;
text-shadow: 0.01em -0.01em #fff, -0.01em 0.01em #999, -0.1em 0.1em 5px #80808080;
}

h1 {
@@ -86,27 +87,6 @@ a {
color: oklch(var(--p));
}

.main-card p a,
.main-card li a::before {
content: '';
position: absolute;
width: 100%;
height: 2px;
bottom: -0;
left: 0;
background-color: oklch(var(--a));
visibility: hidden;
transform: scaleX(0);
transition: all 0.3s ease;
z-index: 150;
}

.main-card p a,
.main-card li a:hover::before {
visibility: visible;
transform: scaleX(1);
}

p {
margin: 0.5em;
}

0 comments on commit ec9b0e8

Please sign in to comment.