/* From Uiverse.io by EddyBel - Tags: gradient, card, clean, video */
/* In this section you start by assigning a shape to the letter and an assigned size. */
.card {
--rounded: 20px;
--size: 270px;
width: var(--size);
height: calc(var(--size) - 10px);
border-radius: var(--rounded);
background: #fff;
position: relative;
overflow: hidden;
cursor: pointer;
}
/* With the before property assigns the gradient that will be used as background for the chart. */
.card::before {
--size: 100%;
--blur: 20px;
content: "";
position: absolute;
width: var(--size);
height: var(--size);
filter: blur(var(--blur));
background-color: #faff99;
background-image: radial-gradient(at 33% 82%, hsla(254,71%,69%,1) 0px, transparent 50%),
radial-gradient(at 28% 4%, hsla(289,96%,63%,1) 0px, transparent 50%),
这个组件运行的是打包后的版本,脚本在这里只读。可以改 HTML 和 CSS,完整源码在「代码」标签里。