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
14 changes: 14 additions & 0 deletions src/blog-background/glow-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/blog-background/glow-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions src/blog-background/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
linear-gradient(180deg, rgba(15, 23, 42, 0.02), transparent 72%),
linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px);
--rs-blog-glow-bg: url('./glow-light.svg');
}

html.dark {
--rs-blog-list-frame-bg:
linear-gradient(180deg, rgba(148, 163, 184, 0.04), transparent 72%),
linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px);
--rs-blog-glow-bg: url('./glow-dark.svg');
}
}

Expand All @@ -28,3 +30,19 @@
background-size: 1200px;
opacity: 0.15;
}

.glowBackground {
position: absolute;
inset: 0;
background: var(--rs-blog-glow-bg) no-repeat center 300px;
background-size: 1200px;
pointer-events: none;
z-index: -1;
opacity: 0.6;
}

:global(html.dark) {
.glowBackground {
opacity: 0.2;
}
}
1 change: 1 addition & 0 deletions src/blog-background/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function BlogBackground({

return (
<div className={styles.blogBackground}>
<div className={styles.glowBackground} />
<div className={styles.blogFrame} />
<MeteorsBackground
gridSize={backgroundGridSize}
Expand Down
59 changes: 31 additions & 28 deletions src/blog-list/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
radial-gradient(94.38% 84.84% at 0% 2.15%, #ffffff29 0%, #fff0 100%),
#ffffff9c;
--rs-blog-list-card-border: 1px solid #0e0e0f16;
--rs-blog-list-card-shadow: 0 4px 24px #0e0e0f09;
}

html.dark {
--rs-blog-list-title-color: var(--rp-c-text-0);
--rs-blog-list-desc-color: var(--rp-c-text-2);
--rs-blog-list-card-bg: #ffffff0d;
--rs-blog-list-card-border: 1px solid #ffffff12;
--rs-blog-list-card-shadow: 0 4px 24px #00000040;
}
}

Expand Down Expand Up @@ -45,12 +47,13 @@
flex-direction: column;
border-radius: 24px;
background: var(--rs-blog-list-card-bg);
backdrop-filter: blur(1px);
backdrop-filter: blur(2px);
border: var(--rs-blog-list-card-border) !important;
overflow: hidden;
text-decoration: none !important;
color: var(--rp-c-text-1) !important;
box-sizing: border-box;
box-shadow: var(--rs-blog-list-card-shadow);
}

.interactiveCard {
Expand All @@ -70,33 +73,6 @@
}
}

/* ── Featured Post Card ── */
.featuredSection {
margin-bottom: 20px;
}

.featured {
padding: 32px 36px;
min-height: 240px;
}

.featuredTitle {
font-size: 28px;
font-weight: 700;
line-height: 1.25;
margin-bottom: 16px;
color: var(--rs-blog-list-title-color);
}

.featuredDescription {
font-size: 15px;
font-weight: 400;
color: var(--rs-blog-list-desc-color);
line-height: 1.7;
flex-grow: 1;
margin-bottom: 24px;
}

/* ── Post Grid ── */
.grid {
display: grid;
Expand Down Expand Up @@ -171,6 +147,33 @@
}
}

/* ── Featured Post Card ── */
.featuredSection {
margin-bottom: 20px;
}

.featured {
padding: 32px 36px;
min-height: 240px;
}

.featuredTitle {
font-size: 28px;
font-weight: 700;
line-height: 1.25;
margin-bottom: 20px;
color: var(--rs-blog-list-title-color);
}

.featuredDescription {
font-size: 15px;
font-weight: 400;
color: var(--rs-blog-list-desc-color);
line-height: 1.7;
flex-grow: 1;
margin-bottom: 24px;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1015px) {
.blogPage {
Expand Down
2 changes: 2 additions & 0 deletions src/blog-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ export function BlogList({
) : null}
{hideDocLayoutSidebarAndOutline ? (
<style>{`
.rp-doc > h1 { font-weight: 700; }
.rp-doc > p { color: var(--rs-blog-list-desc-color); }
.rp-doc-layout__sidebar-placeholder { display: none; }
.rp-doc-layout__outline { display: none; }
.rp-doc-layout__doc { width: 100% !important; max-width: 100% !important; }
Expand Down
Loading