Skip to content

Commit ebc05dc

Browse files
committed
docs: add static Previewer component
1 parent 9f176e1 commit ebc05dc

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/.vuepress/theme/Previewer.vue

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<div class="previewer">
3+
<div class="content"></div>
4+
</div>
5+
</template>
6+
7+
<style lang="less" scoped>
8+
.previewer {
9+
@s-width: 334px;
10+
@ratio: 1425/700;
11+
12+
position: relative;
13+
width: @s-width;
14+
height: @s-width * @ratio;
15+
background: url('./assets/images/16th-mockup.png') no-repeat center/100%;
16+
17+
.content {
18+
@s-vertical: 28px;
19+
@s-horizontal: 11px;
20+
21+
position: absolute;
22+
z-index: 1;
23+
top: @s-vertical;
24+
bottom: @s-vertical;
25+
left: @s-horizontal;
26+
right: @s-horizontal;
27+
background-color: #fff;
28+
box-shadow: 0 0 0 1.5px rgba(0,0,0,0.8);
29+
border-radius: 32px;
30+
}
31+
}
32+
</style>
31.7 KB
Loading

0 commit comments

Comments
 (0)