Skip to content

Commit 1995ef1

Browse files
committed
feat: new style
1 parent 64376b4 commit 1995ef1

4 files changed

Lines changed: 36 additions & 2 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.rspress-home-feature-card {
2+
--rp-home-feature-bg: var(--iringo-semi-transparent-component-color);
3+
position: relative;
4+
overflow: hidden;
5+
backdrop-filter: saturate(180%) blur(20px);
6+
border: 0;
7+
&::after {
8+
--bg-size: calc(100% + 14px);
9+
10+
position: absolute;
11+
inset: 0;
12+
pointer-events: none;
13+
content: "";
14+
background: linear-gradient(to bottom right, #0894ff 0%, #c959dd 34%, #ff2e54 68%, #ff9004) 50% / var(--bg-size)
15+
var(--bg-size);
16+
border-radius: 2rem;
17+
mask: linear-gradient(hsla(0deg, 0%, 100%, 0), hsla(0deg, 0%, 100%, 0)),
18+
linear-gradient(hsl(0deg, 0%, 100%), hsl(0deg, 0%, 100%));
19+
mask-clip: padding-box, border-box;
20+
mask-composite: intersect;
21+
transition: border-color .3s ease-in-out;
22+
}
23+
&:hover {
24+
border: 0;
25+
&::after {
26+
border: 2px solid #0000;
27+
}
28+
}
29+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import Theme from 'rspress/theme';
2+
import './home-layout.css';
3+
4+
export const HomeLayout = () => <Theme.HomeLayout />;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './home-layout';

theme/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Theme from 'rspress/theme';
2-
//import { HomeLayout } from './components/home-layout';
2+
import { HomeLayout } from './components/home-layout';
33
import { Layout } from './components/layout';
44

55
export default {
66
...Theme,
7-
//HomeLayout,
7+
HomeLayout,
88
Layout,
99
};
1010

0 commit comments

Comments
 (0)