返回 oh-my-ppt
preview.html
根目录 / resources / styles / corporate-clean / 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>企业洁净 · corporate-clean</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 display: flex;
22 }
23 .sidebar {
24 width: 25%;
25 height: 100%;
26 background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
27 display: flex;
28 flex-direction: column;
29 justify-content: space-between;
30 padding: 10% 8%;
31 position: relative;
32 }
33 .sidebar::after {
34 content: '';
35 position: absolute;
36 right: 0; top: 15%; bottom: 15%;
37 width: 1px;
38 background: rgba(255,255,255,0.1);
39 }
40 .sidebar-label {
41 font-size: clamp(7px, 0.7vw, 9px);
42 color: rgba(255,255,255,0.4);
43 letter-spacing: 0.25em;
44 text-transform: uppercase;
45 font-weight: 600;
46 }
47 .sidebar-title {
48 font-size: clamp(16px, 2.2vw, 26px);
49 color: #ffffff;
50 font-weight: 700;
51 line-height: 1.3;
52 }
53 .sidebar-palette {
54 display: flex;
55 gap: 6px;
56 flex-wrap: wrap;
57 }
58 .sidebar-palette span {
59 width: clamp(10px, 1.2vw, 16px);
60 height: clamp(10px, 1.2vw, 16px);
61 border-radius: 3px;
62 background: var(--c);
63 }
64 .main {
65 flex: 1;
66 padding: 8% 7%;
67 display: flex;
68 flex-direction: column;
69 justify-content: space-between;
70 }
71 .category {
72 font-size: clamp(7px, 0.75vw, 9px);
73 color: #3b82f6;
74 letter-spacing: 0.2em;
75 text-transform: uppercase;
76 font-weight: 600;
77 border-bottom: 2px solid #1e3a8a;
78 padding-bottom: 4px;
79 display: inline-block;
80 align-self: flex-start;
81 }
82 .title-block {
83 margin-top: auto;
84 }
85 h1 {
86 font-size: clamp(28px, 4.5vw, 54px);
87 color: #0f172a;
88 font-weight: 800;
89 line-height: 1.1;
90 }
91 .en-name {
92 font-size: clamp(10px, 1.1vw, 14px);
93 color: #334155;
94 font-weight: 400;
95 margin-top: 1%;
96 }
97 .desc {
98 font-size: clamp(9px, 1vw, 13px);
99 color: #64748b;
100 line-height: 1.6;
101 margin-top: 4%;
102 max-width: 80%;
103 }
104 .grid {
105 display: grid;
106 grid-template-columns: 1fr 1fr 1fr;
107 gap: 8%;
108 margin-top: 4%;
109 }
110 .grid-item {
111 border-top: 2px solid #e2e8f0;
112 padding-top: 6%;
113 }
114 .grid-item strong {
115 font-size: clamp(8px, 0.85vw, 11px);
116 color: #1e3a8a;
117 font-weight: 700;
118 display: block;
119 margin-bottom: 4%;
120 }
121 .grid-item span {
122 font-size: clamp(7px, 0.7vw, 9px);
123 color: #64748b;
124 line-height: 1.5;
125 }
126 .footer {
127 display: flex;
128 justify-content: space-between;
129 align-items: center;
130 border-top: 1px solid #e2e8f0;
131 padding-top: 3%;
132 }
133 .footer span {
134 font-size: clamp(7px, 0.7vw, 9px);
135 color: #94a3b8;
136 }
137 @media (max-aspect-ratio: 16/9) {
138 .slide { width: min(100vw, calc(100vh * 16 / 9)); height: auto; }
139 }
140 @media (min-aspect-ratio: 16/9) {
141 .slide { height: min(100vh, calc(100vw * 9 / 16)); width: auto; }
142 }
143 </style>
144 </head>
145 <body>
146 <main class="slide" aria-label="企业洁净 style preview">
147 <aside class="sidebar">
148 <div>
149 <div class="sidebar-label">Style Preview</div>
150 <div class="sidebar-title" style="margin-top: 12%;">Corporate Clean</div>
151 </div>
152 <div class="sidebar-palette">
153 <span style="--c:#0f172a"></span>
154 <span style="--c:#334155"></span>
155 <span style="--c:#1e3a8a"></span>
156 <span style="--c:#3b82f6"></span>
157 <span style="--c:#ffffff"></span>
158 </div>
159 </aside>
160 <section class="main">
161 <div class="category">浅色 · 专业</div>
162 <div class="grid">
163 <div class="grid-item">
164 <strong>董事会汇报</strong>
165 <span>专业权威的视觉语言</span>
166 </div>
167 <div class="grid-item">
168 <strong>B2B 销售</strong>
169 <span>商务场合最稳妥的选择</span>
170 </div>
171 <div class="grid-item">
172 <strong>金融报告</strong>
173 <span>纯白上海军蓝落笔</span>
174 </div>
175 </div>
176 <div class="title-block">
177 <h1>企业洁净</h1>
178 <div class="en-name">纯白上海军蓝落笔,商务场合最稳妥的选择</div>
179 </div>
180 <div class="footer">
181 <span>corporate-clean</span>
182 <span>16:9</span>
183 </div>
184 </section>
185 </main>
186 </body>
187 </html>
187 lines HTML