Skip to content

Commit

Permalink
Merge pull request #264 from hepengwei/feat_he
Browse files Browse the repository at this point in the history
新增几个背景图案案例
  • Loading branch information
hepengwei authored Dec 20, 2024
2 parents 16f00a7 + e50370e commit 1ab1a4e
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/155.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/main.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions src/pages/html/BackgroundEffect/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -677,4 +677,44 @@
radial-gradient($size at 100% 100%, $g) $color2;
background-size: calc(2 * $r) calc(2 * $r);
}

.bg30 {
@include bg;
background-image: repeating-radial-gradient(#f8f1f1ee 88%, #963fdd 90%);
background-size: 50px 50px;
}

.bg31 {
@include bg;
background: linear-gradient(
45deg,
transparent 33.33%,
rgba(57, 144, 179, 0.1) 33.33%,
rgba(0, 0, 0, 0.1) 66.66%,
transparent 66.66%
),
lightblue;
background-size: 20px 20px;
}

.bg32 {
@include bg;
background-image: repeating-radial-gradient(#f8f1f1ee 87%, #3fa7b4 90%);
background-size: 50px 50px;
}

.bg33 {
@include bg;
background: repeating-radial-gradient(red 55%, white 56%);
}

.bg34 {
@include bg;
background-image: repeating-radial-gradient(
#e2d1d1 50%,
#e7d2d2ee 70%,
#f5c7a1 95%
);
background-size: 50px 50px;
}
}
2 changes: 1 addition & 1 deletion src/pages/html/BackgroundEffect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import GridContent from "components/GridContent";
import styles from "./index.module.scss";

const { GridBox } = GridContent;
const gridboxList = new Array(29).fill("1");
const gridboxList = new Array(34).fill("1");

const BackgroundEffect = () => {
const { setScrollTop } = useGlobalContext();
Expand Down

0 comments on commit 1ab1a4e

Please sign in to comment.