返回 oh-my-ppt
preview.html
根目录 / resources / styles / minimal-white / 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>极简白 · minimal-white</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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
14 }
15 .slide {
16 width: min(100vw, calc(100vh * 16 / 9));
17 aspect-ratio: 16 / 9;
18 background: #ffffff;
19 position: relative;
20 overflow: hidden;
21 }
22 .top-bar {
23 position: absolute; top: 0; left: 0; right: 0;
24 height: 2px;
25 background: #3b82f6;
26 opacity: 0.15;
27 }
28 .content {
29 position: absolute;
30 top: 18%; left: 10%; right: 10%; bottom: 20%;
31 display: flex; flex-direction: column;
32 justify-content: center;
33 }
34 .category {
35 font-size: clamp(8px, 0.9vw, 11px);
36 font-weight: 400;
37 letter-spacing: 0.3em;
38 text-transform: uppercase;
39 color: #94a3b8;
40 margin-bottom: 3%;
41 }
42 h1 {
43 font-size: clamp(36px, 6vw, 72px);
44 font-weight: 200;
45 color: #0f172a;
46 line-height: 1.1;
47 letter-spacing: 0.05em;
48 }
49 .desc {
50 font-size: clamp(10px, 1.3vw, 15px);
51 color: #94a3b8;
52 margin-top: 3%;
53 line-height: 1.6;
54 max-width: 50%;
55 font-weight: 300;
56 }
57 .kuhaku {
58 position: absolute;
59 top: 50%; right: 12%;
60 transform: translateY(-50%);
61 font-size: clamp(60px, 10vw, 120px);
62 font-weight: 100;
63 color: #f1f5f9;
64 letter-spacing: 0.15em;
65 user-select: none;
66 }
67 .accent-line {
68 position: absolute;
69 bottom: 28%; left: 10%;
70 width: 40px; height: 1px;
71 background: #3b82f6;
72 }
73 .palette {
74 position: absolute;
75 bottom: 8%; left: 10%;
76 display: flex; gap: 10px; align-items: center;
77 }
78 .palette-dot {
79 width: clamp(12px, 1.5vw, 18px);
80 height: clamp(12px, 1.5vw, 18px);
81 border-radius: 50%;
82 background: var(--c);
83 box-shadow: 0 2px 8px rgba(0,0,0,0.08);
84 }
85 .meta {
86 position: absolute;
87 bottom: 8%; right: 10%;
88 font-size: clamp(7px, 0.8vw, 10px);
89 color: #cbd5e1;
90 text-align: right;
91 line-height: 1.8;
92 font-weight: 300;
93 }
94 .tags {
95 position: absolute;
96 top: 8%; left: 10%;
97 display: flex; gap: 12px;
98 }
99 .tags span {
100 font-size: clamp(7px, 0.75vw, 9px);
101 color: #94a3b8;
102 border: 1px solid #e2e8f0;
103 border-radius: 100px;
104 padding: 3px 10px;
105 font-weight: 400;
106 }
107 .bottom-stripe {
108 position: absolute; bottom: 0; left: 0; right: 0;
109 height: 3px;
110 background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, transparent 100%);
111 opacity: 0.6;
112 }
113 @media (max-aspect-ratio: 16/9) {
114 .slide { width: min(100vw, calc(100vh * 16 / 9)); height: auto; }
115 }
116 @media (min-aspect-ratio: 16/9) {
117 .slide { height: min(100vh, calc(100vw * 9 / 16)); width: auto; }
118 }
119 </style>
120 </head>
121 <body>
122 <main class="slide" aria-label="极简白 style preview">
123 <div class="top-bar"></div>
124 <div class="tags">
125 <span>内部汇报</span>
126 <span>技术评审</span>
127 <span>严肃话题</span>
128 </div>
129 <div class="content">
130 <div class="category">浅色 · 沉静 / Minimal White</div>
131 <h1>极简白</h1>
132 <p class="desc">克制到极致的高级感,留白是最有力的表达</p>
133 </div>
134 <div class="kuhaku">留白</div>
135 <div class="accent-line"></div>
136 <div class="palette">
137 <div class="palette-dot" style="--c:#0f172a"></div>
138 <div class="palette-dot" style="--c:#475569"></div>
139 <div class="palette-dot" style="--c:#3b82f6"></div>
140 <div class="palette-dot" style="--c:#60a5fa"></div>
141 <div class="palette-dot" style="--c:#ffffff; border: 1px solid #e2e8f0"></div>
142 </div>
143 <div class="meta">
144 minimal-white<br />
145 极简 · 留白 · 克制
146 </div>
147 <div class="bottom-stripe"></div>
148 </main>
149 </body>
150 </html>
150 lines HTML