| 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>日光浅 · solarized-light</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: #fdf6e3; |
| 19 | position: relative; |
| 20 | overflow: hidden; |
| 21 | } |
| 22 | .lines { |
| 23 | position: absolute; |
| 24 | inset: 0; |
| 25 | background: repeating-linear-gradient( |
| 26 | 0deg, |
| 27 | transparent, |
| 28 | transparent 11.11%, |
| 29 | rgba(88,110,117,0.06) 11.11%, |
| 30 | rgba(88,110,117,0.06) 11.2% |
| 31 | ); |
| 32 | pointer-events: none; |
| 33 | } |
| 34 | .content { |
| 35 | position: absolute; |
| 36 | top: 10%; left: 9%; right: 9%; bottom: 10%; |
| 37 | display: flex; |
| 38 | flex-direction: column; |
| 39 | } |
| 40 | .top-row { |
| 41 | display: flex; |
| 42 | justify-content: space-between; |
| 43 | align-items: flex-start; |
| 44 | } |
| 45 | .category { |
| 46 | font-size: clamp(7px, 0.75vw, 10px); |
| 47 | color: #586e75; |
| 48 | letter-spacing: 0.25em; |
| 49 | text-transform: uppercase; |
| 50 | font-weight: 600; |
| 51 | } |
| 52 | .solar-badge { |
| 53 | display: flex; gap: 4px; align-items: center; |
| 54 | } |
| 55 | .solar-badge span { |
| 56 | width: clamp(8px, 0.9vw, 12px); |
| 57 | height: clamp(8px, 0.9vw, 12px); |
| 58 | border-radius: 2px; |
| 59 | background: var(--c); |
| 60 | } |
| 61 | .title-area { |
| 62 | flex: 1; |
| 63 | display: flex; |
| 64 | flex-direction: column; |
| 65 | justify-content: center; |
| 66 | padding-top: 5%; |
| 67 | } |
| 68 | h1 { |
| 69 | font-size: clamp(32px, 5.5vw, 66px); |
| 70 | font-weight: 700; |
| 71 | color: #073642; |
| 72 | line-height: 1.15; |
| 73 | } |
| 74 | .en-name { |
| 75 | font-size: clamp(10px, 1.1vw, 14px); |
| 76 | color: #586e75; |
| 77 | font-weight: 400; |
| 78 | margin-top: 1%; |
| 79 | letter-spacing: 0.05em; |
| 80 | } |
| 81 | .desc { |
| 82 | font-size: clamp(10px, 1.1vw, 14px); |
| 83 | color: #586e75; |
| 84 | line-height: 1.8; |
| 85 | margin-top: 3%; |
| 86 | max-width: 65%; |
| 87 | } |
| 88 | .columns { |
| 89 | display: grid; |
| 90 | grid-template-columns: repeat(4, 1fr); |
| 91 | gap: 4%; |
| 92 | margin-top: auto; |
| 93 | padding-top: 3%; |
| 94 | border-top: 1px solid rgba(88,110,117,0.15); |
| 95 | } |
| 96 | .col-item { |
| 97 | display: flex; |
| 98 | flex-direction: column; |
| 99 | gap: 4px; |
| 100 | } |
| 101 | .col-item strong { |
| 102 | font-size: clamp(8px, 0.85vw, 11px); |
| 103 | color: #268bd2; |
| 104 | font-weight: 700; |
| 105 | } |
| 106 | .col-item span { |
| 107 | font-size: clamp(7px, 0.7vw, 9px); |
| 108 | color: #586e75; |
| 109 | line-height: 1.5; |
| 110 | } |
| 111 | .palette { |
| 112 | position: absolute; |
| 113 | bottom: 4%; |
| 114 | left: 9%; |
| 115 | display: flex; gap: 6px; |
| 116 | } |
| 117 | .palette i { |
| 118 | width: clamp(10px, 1.2vw, 16px); |
| 119 | height: clamp(10px, 1.2vw, 16px); |
| 120 | border-radius: 3px; |
| 121 | background: var(--c); |
| 122 | } |
| 123 | .label { |
| 124 | position: absolute; |
| 125 | bottom: 4%; |
| 126 | right: 9%; |
| 127 | font-size: clamp(7px, 0.7vw, 9px); |
| 128 | color: #93a1a1; |
| 129 | letter-spacing: 0.1em; |
| 130 | } |
| 131 | @media (max-aspect-ratio: 16/9) { |
| 132 | .slide { width: min(100vw, calc(100vh * 16 / 9)); height: auto; } |
| 133 | } |
| 134 | @media (min-aspect-ratio: 16/9) { |
| 135 | .slide { height: min(100vh, calc(100vw * 9 / 16)); width: auto; } |
| 136 | } |
| 137 | </style> |
| 138 | </head> |
| 139 | <body> |
| 140 | <main class="slide" aria-label="日光浅 style preview"> |
| 141 | <div class="lines"></div> |
| 142 | <section class="content"> |
| 143 | <div class="top-row"> |
| 144 | <div class="category">浅色 · 沉静</div> |
| 145 | <div class="solar-badge"> |
| 146 | <span style="--c:#073642"></span> |
| 147 | <span style="--c:#268bd2"></span> |
| 148 | <span style="--c:#2aa198"></span> |
| 149 | <span style="--c:#fdf6e3"></span> |
| 150 | </div> |
| 151 | </div> |
| 152 | <div class="title-area"> |
| 153 | <h1>日光浅</h1> |
| 154 | <div class="en-name">Solarized Light</div> |
| 155 | <p class="desc">低眩光暖黄抚平视觉疲劳,八小时会议也不刺眼</p> |
| 156 | </div> |
| 157 | <div class="columns"> |
| 158 | <div class="col-item"> |
| 159 | <strong>工作坊</strong> |
| 160 | <span>长时间舒适阅读</span> |
| 161 | </div> |
| 162 | <div class="col-item"> |
| 163 | <strong>教学培训</strong> |
| 164 | <span>低眩光暖黄背景</span> |
| 165 | </div> |
| 166 | <div class="col-item"> |
| 167 | <strong>技术教学</strong> |
| 168 | <span>经典 Solarized 配色</span> |
| 169 | </div> |
| 170 | <div class="col-item"> |
| 171 | <strong>学术讨论</strong> |
| 172 | <span>护眼持久演示</span> |
| 173 | </div> |
| 174 | </div> |
| 175 | </section> |
| 176 | <div class="palette"> |
| 177 | <i style="--c:#073642"></i> |
| 178 | <i style="--c:#586e75"></i> |
| 179 | <i style="--c:#268bd2"></i> |
| 180 | <i style="--c:#2aa198"></i> |
| 181 | <i style="--c:#fdf6e3; border: 1px solid #e8dcc8"></i> |
| 182 | </div> |
| 183 | <div class="label">solarized-light</div> |
| 184 | </main> |
| 185 | </body> |
| 186 | </html> |