WIP: XZH-21 后端改动 + 测试验收附加用例
This commit is contained in:
commit
1bd637528d
168 files changed
+13874
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<script setup lang="ts">
|
||||
// 原型 blog() 卡片封面的三套配色,按列表序号循环
|
||||
defineProps<{ index: number }>();
|
||||
const palettes = [
|
||||
["#dce6dc", "#b4c6b0", "#7f9b85", "#eaf0e5"],
|
||||
["#e9decc", "#c9b69a", "#9d9d7c", "#f6ecd9"],
|
||||
["#dce7e7", "#abc3c5", "#799c9d", "#e8efea"],
|
||||
];
|
||||
</script>
|
||||
<template>
|
||||
<svg
|
||||
class="blog-art"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 480 260"
|
||||
preserveAspectRatio="xMidYMid slice"
|
||||
role="presentation"
|
||||
:style="{ background: palettes[index % 3][0] }"
|
||||
>
|
||||
<circle cx="350" cy="65" r="29" :fill="palettes[index % 3][3]" />
|
||||
<path d="M0 180Q70 95 145 156T310 142T480 150V260H0Z" :fill="palettes[index % 3][1]" />
|
||||
<path d="M0 218Q110 125 222 209T480 175V260H0Z" :fill="palettes[index % 3][2]" />
|
||||
<path d="M0 247Q146 210 240 243T480 223V260H0Z" :fill="palettes[index % 3][3]" opacity=".5" />
|
||||
</svg>
|
||||
</template>
|
||||
Reference in new issue
Block a user