返回 oh-my-ppt
preview.html
1 <!DOCTYPE html>
2 <html lang="zh-CN">
3 <head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 <title>日式极简 · japanese-minimal</title>
7 <style>
8 * { box-sizing: border-box; margin: 0; padding: 0; }
9 html, body {
10 width: 100%; height: 100%; overflow: hidden;
11 background: #0f1117;
12 display: flex; align-items: center; justify-content: center;
13 font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Georgia, serif;
14 }
15 .slide {
16 width: min(100vw, calc(100vh * 16 / 9));
17 aspect-ratio: 16 / 9;
18 background: #faf8f5;
19 position: relative;
20 overflow: hidden;
21 display: flex;
22 align-items: center;
23 justify-content: center;
24 }
25 .enso {
26 position: absolute;
27 right: 15%;
28 top: 50%;
29 transform: translateY(-50%);
30 width: clamp(100px, 18vw, 220px);
31 height: clamp(100px, 18vw, 220px);
32 border: 3px solid #1c1c1c;
33 border-radius: 50%;
34 opacity: 0.08;
35 }
36 .enso::before {
37 content: '';
38 position: absolute;
39 top: -3px; right: 20%;
40 width: 3px;
41 height: 40%;
42 background: #dc2626;
43 opacity: 0.7;
44 transform: rotate(-5deg);
45 }
46 .red-stroke {
47 position: absolute;
48 right: 8%;
49 top: 20%;
50 bottom: 20%;
51 width: 3px;
52 background: linear-gradient(180deg, transparent 0%, #dc2626 20%, #dc2626 80%, transparent 100%);
53 opacity: 0.6;
54 }
55 .content {
56 position: absolute;
57 left: 10%;
58 top: 50%;
59 transform: translateY(-50%);
60 max-width: 55%;
61 }
62 .category {
63 font-size: clamp(7px, 0.7vw, 9px);
64 color: #525252;
65 letter-spacing: 0.35em;
66 text-transform: uppercase;
67 font-weight: 400;
68 margin-bottom: 5%;
69 }
70 h1 {
71 font-size: clamp(40px, 7vw, 84px);
72 font-weight: 300;
73 color: #1c1c1c;
74 line-height: 1.15;
75 letter-spacing: 0.12em;
76 font-family: "Songti SC", Georgia, serif;
77 }
78 .divider {
79 width: 30px;
80 height: 1px;
81 background: #dc2626;
82 margin: 5% 0;
83 opacity: 0.5;
84 }
85 .desc {
86 font-size: clamp(10px, 1.2vw, 14px);
87 color: #525252;
88 line-height: 1.8;
89 font-weight: 300;
90 max-width: 80%;
91 }
92 .uses {
93 display: flex;
94 gap: 16px;
95 margin-top: 6%;
96 }
97 .uses span {
98 font-size: clamp(7px, 0.7vw, 9px);
99 color: #a3a3a3;
100 border-left: 1px solid #d4d4d4;
101 padding-left: 10px;
102 font-weight: 300;
103 }
104 .palette {
105 position: absolute;
106 bottom: 8%;
107 left: 10%;
108 display: flex;
109 gap: 8px;
110 align-items: center;
111 }
112 .palette i {
113 display: block;
114 width: clamp(10px, 1.2vw, 16px);
115 height: clamp(10px, 1.2vw, 16px);
116 border-radius: 50%;
117 background: var(--c);
118 }
119 .en-label {
120 position: absolute;
121 bottom: 8%;
122 right: 10%;
123 font-size: clamp(7px, 0.7vw, 9px);
124 color: #a3a3a3;
125 font-weight: 300;
126 letter-spacing: 0.15em;
127 }
128 .corner-mark {
129 position: absolute;
130 top: 8%;
131 right: 8%;
132 width: 20px;
133 height: 20px;
134 border-top: 1px solid #d4d4d4;
135 border-right: 1px solid #d4d4d4;
136 opacity: 0.5;
137 }
138 @media (max-aspect-ratio: 16/9) {
139 .slide { width: min(100vw, calc(100vh * 16 / 9)); height: auto; }
140 }
141 @media (min-aspect-ratio: 16/9) {
142 .slide { height: min(100vh, calc(100vw * 9 / 16)); width: auto; }
143 }
144 </style>
145 </head>
146 <body>
147 <main class="slide" aria-label="日式极简 style preview">
148 <div class="enso"></div>
149 <div class="red-stroke"></div>
150 <div class="corner-mark"></div>
151 <section class="content">
152 <div class="category">浅色 · 专业 / Japanese Minimal</div>
153 <h1>日式极简</h1>
154 <div class="divider"></div>
155 <p class="desc">象牙白上一笔朱红,万物留白处见匠心</p>
156 <div class="uses">
157 <span>品牌升级</span>
158 <span>匠人故事</span>
159 <span>禅意叙事</span>
160 <span>高端产品发布</span>
161 </div>
162 </section>
163 <div class="palette">
164 <i style="--c:#1c1c1c"></i>
165 <i style="--c:#525252"></i>
166 <i style="--c:#dc2626"></i>
167 <i style="--c:#b91c1c"></i>
168 <i style="--c:#faf8f5; border: 1px solid #d4d4d4"></i>
169 </div>
170 <div class="en-label">japanese-minimal</div>
171 </main>
172 </body>
173 </html>
173 lines HTML