返回 oh-my-ppt
preview.html
根目录 / resources / styles / palace-ink-red / 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>故宫墨红 · palace-ink-red</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", "Microsoft YaHei", sans-serif;
14 }
15 .slide {
16 width: min(100vw, calc(100vh * 16 / 9));
17 aspect-ratio: 16 / 9;
18 background: #CAD2C5;
19 position: relative;
20 overflow: hidden;
21 }
22 .ink-block {
23 position: absolute;
24 top: 0; left: 0; bottom: 0;
25 width: 38%;
26 background: #8C3232;
27 display: flex;
28 flex-direction: column;
29 justify-content: center;
30 padding: 8% 7%;
31 }
32 .ink-block::after {
33 content: "";
34 position: absolute;
35 right: -40px;
36 top: 15%;
37 width: 80px;
38 height: 80px;
39 border: 3px solid #8C323266;
40 border-radius: 50%;
41 }
42 .category {
43 font-size: clamp(7px, 0.8vw, 10px);
44 font-weight: 400;
45 letter-spacing: 0.35em;
46 text-transform: uppercase;
47 color: #DAD8CC88;
48 margin-bottom: 6%;
49 }
50 h1 {
51 font-size: clamp(32px, 5.5vw, 64px);
52 font-weight: 900;
53 color: #E6E1D3;
54 line-height: 1.1;
55 letter-spacing: 0.05em;
56 }
57 .sub {
58 font-size: clamp(10px, 1.2vw, 14px);
59 color: #DAD8CCaa;
60 margin-top: 5%;
61 font-weight: 300;
62 line-height: 1.6;
63 max-width: 85%;
64 }
65 .seal {
66 position: absolute;
67 bottom: 10%;
68 left: 7%;
69 width: clamp(28px, 3.5vw, 44px);
70 height: clamp(28px, 3.5vw, 44px);
71 border: 2px solid #DAD8CC55;
72 border-radius: 4px;
73 display: flex;
74 align-items: center;
75 justify-content: center;
76 font-size: clamp(10px, 1.2vw, 15px);
77 color: #DAD8CC88;
78 font-weight: 700;
79 }
80 .right-content {
81 position: absolute;
82 top: 0; right: 0; bottom: 0;
83 left: 38%;
84 padding: 7% 7%;
85 display: flex;
86 flex-direction: column;
87 justify-content: center;
88 }
89 .right-title {
90 font-size: clamp(11px, 1.3vw, 16px);
91 font-weight: 700;
92 color: #2F2F2F;
93 letter-spacing: 0.08em;
94 margin-bottom: 4%;
95 }
96 .right-desc {
97 font-size: clamp(9px, 1vw, 12px);
98 color: #5a5a5a;
99 line-height: 1.7;
100 max-width: 80%;
101 margin-bottom: 6%;
102 }
103 .card {
104 background: #363636;
105 border-radius: 20px;
106 padding: 5% 6%;
107 max-width: 85%;
108 color: #DAD8CC;
109 }
110 .card-label {
111 font-size: clamp(7px, 0.75vw, 9px);
112 letter-spacing: 0.2em;
113 text-transform: uppercase;
114 color: #DAD8CC77;
115 margin-bottom: 3%;
116 }
117 .card-text {
118 font-size: clamp(9px, 1vw, 12px);
119 line-height: 1.6;
120 color: #DAD8CCcc;
121 }
122 .palette {
123 position: absolute;
124 bottom: 7%;
125 right: 7%;
126 display: flex;
127 gap: 8px;
128 align-items: center;
129 }
130 .dot {
131 width: clamp(12px, 1.5vw, 18px);
132 height: clamp(12px, 1.5vw, 18px);
133 border-radius: 50%;
134 background: var(--c);
135 }
136 .tags {
137 position: absolute;
138 top: 7%;
139 right: 7%;
140 display: flex;
141 gap: 8px;
142 }
143 .tag {
144 font-size: clamp(7px, 0.7vw, 9px);
145 border: 1px solid #CFC8BA;
146 border-radius: 100px;
147 padding: 3px 10px;
148 color: #5a5a5a;
149 }
150 .grid-line {
151 position: absolute;
152 background: #8C323215;
153 }
154 .gl-h { height: 1px; left: 38%; right: 0; }
155 .gl1 { top: 35%; }
156 .gl2 { top: 65%; }
157 @media (max-aspect-ratio: 16/9) {
158 .slide { width: min(100vw, calc(100vh * 16 / 9)); height: auto; }
159 }
160 @media (min-aspect-ratio: 16/9) {
161 .slide { height: min(100vh, calc(100vw * 9 / 16)); width: auto; }
162 }
163 </style>
164 </head>
165 <body>
166 <main class="slide" aria-label="故宫墨红 style preview">
167 <div class="ink-block">
168 <div class="category">国风商务 / Palace Ink Red</div>
169 <h1>故宫<br/>墨红</h1>
170 <p class="sub">厚重墨红配宣纸米灰,新中式高级感的东方力量</p>
171 <div class="seal">墨</div>
172 </div>
173 <div class="grid-line gl-h gl1"></div>
174 <div class="grid-line gl-h gl2"></div>
175 <div class="tags">
176 <span class="tag">传统文化</span>
177 <span class="tag">品牌提案</span>
178 <span class="tag">高端汇报</span>
179 </div>
180 <div class="right-content">
181 <div class="right-title">东方审美里的力量感</div>
182 <p class="right-desc">宫墙墨红的沉淀感,宣纸米灰的温润底色,玄石灰的沉稳衬托——每一个色块都像展板缓缓落位。</p>
183 <div class="card">
184 <div class="card-label">配色体系</div>
185 <div class="card-text">墨红 #8C3232 · 玄石灰 #363636 · 宣纸米灰 #CAD2C5 · 米白 #DAD8CC</div>
186 </div>
187 </div>
188 <div class="palette">
189 <div class="dot" style="--c:#8C3232"></div>
190 <div class="dot" style="--c:#363636"></div>
191 <div class="dot" style="--c:#2F2F2F"></div>
192 <div class="dot" style="--c:#DAD8CC"></div>
193 <div class="dot" style="--c:#CAD2C5"></div>
194 </div>
195 </main>
196 </body>
197 </html>
198
198 lines HTML