mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Update interactive client preview
This commit is contained in:
1 parent
c6fbc04236
commit
0ad64fd4f8
3 files changed
+6
-1
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 421 KiB |
@@ -48,3 +48,8 @@
|
||||
@media(max-width:900px){.status-grid{grid-template-columns:1fr}.status-grid article{min-height:auto}.tour-layout{grid-template-columns:1fr}.tour-tabs{display:grid;grid-template-columns:1fr 1fr}.tour-tabs button{min-height:115px}.install-steps{grid-template-columns:1fr}}
|
||||
@media(max-width:600px){.tour-screen{padding:4px}.hotspot{width:28px;height:28px;box-shadow:0 0 0 5px #28c9f51a}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin:5px 0 0;padding:13px}.tour-tabs{grid-template-columns:1fr}.tour-tabs button{min-height:auto}.install-steps{margin-top:28px}.faq{padding-top:20px}.faq-list summary{font-size:14px}.faq-list details p{padding-left:33px;padding-right:8px}.command{gap:10px}}
|
||||
@media(prefers-reduced-motion:reduce){.is-visible .status-grid article,.hotspot:not(.active),.faq-list details[open] p{animation:none}}
|
||||
|
||||
/* Wide current-client preview */
|
||||
.product-tour{width:min(1380px,calc(100% - 48px))}.product-tour .section-head{width:min(1160px,100%);margin-left:auto;margin-right:auto}.tour-layout{grid-template-columns:minmax(0,3.2fr) minmax(250px,.8fr);gap:18px}.tour-screen{padding:8px}.tour-image{position:relative;overflow:hidden;border-radius:9px}.tour-image>img{display:block;width:100%;height:auto}.hotspot-tree{left:11%;top:31%}.hotspot-chat{left:55%;top:82%}.hotspot-voice{left:18%;top:4.5%}.hotspot-whisper{left:19%;top:18%}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin-top:8px;min-height:73px}.tour-tabs button{padding:17px}.tour-tabs small{font-size:11px}
|
||||
@media(max-width:900px){.product-tour{width:min(100% - 48px,1160px)}.tour-layout{grid-template-columns:1fr}.tour-tabs button{padding:19px}}
|
||||
@media(max-width:600px){.product-tour{width:min(100% - 30px,1160px)}.hotspot{width:26px;height:26px}.hotspot-tree{left:10%;top:29%}.hotspot-chat{left:54%;top:80%}.hotspot-voice{left:18%;top:3%}.hotspot-whisper{left:19%;top:18%}.tour-caption{margin-top:5px}}
|
||||
+1
-1
@@ -132,7 +132,7 @@ function Landing() {
|
||||
|
||||
<section className="section shell showcase reveal"><div className="showcase-copy"><span className="kicker">{t.screenKicker}</span><h2>{t.screenTitle[0]}<br/>{t.screenTitle[1]}</h2><p>{t.screenText}</p><div className="theme-pills"><span>☾ Dark Mode</span><span>☀ Light Mode</span><span>⌁ Responsive</span></div></div><div className="screens"><img src="../screenshots/webspeak_dark.png" alt="WebSpeak3 Dark Mode"/><img src="../screenshots/webspeak_light.png" alt="WebSpeak3 Light Mode"/></div></section>
|
||||
|
||||
<section className="section shell product-tour reveal"><div className="section-head"><div><span className="kicker">{t.tourKicker}</span><h2>{t.tourTitle}</h2></div><p>{t.tourText}</p></div><div className="tour-layout"><div className="tour-screen"><img src="../screenshots/webspeak_dark.png" alt={t.imageAlt}/>{t.tourItems.map((item, index) => <button key={item[0]} className={`hotspot hotspot-${item[0]} ${activeTour === index ? "active" : ""}`} onClick={() => setActiveTour(index)} aria-label={item[1]} aria-pressed={activeTour === index}><span>{index + 1}</span></button>)}<div className="tour-caption"><span>0{activeTour + 1}</span><div><strong>{t.tourItems[activeTour][1]}</strong><p>{t.tourItems[activeTour][2]}</p></div></div></div><div className="tour-tabs">{t.tourItems.map((item, index) => <button key={item[0]} className={activeTour === index ? "active" : ""} onClick={() => setActiveTour(index)}><span>0{index + 1}</span><div><strong>{item[1]}</strong><small>{item[2]}</small></div></button>)}</div></div></section>
|
||||
<section className="section shell product-tour reveal"><div className="section-head"><div><span className="kicker">{t.tourKicker}</span><h2>{t.tourTitle}</h2></div><p>{t.tourText}</p></div><div className="tour-layout"><div className="tour-screen"><div className="tour-image"><img src="../screenshots/webspeak_current.png" alt={t.imageAlt}/>{t.tourItems.map((item, index) => <button key={item[0]} className={`hotspot hotspot-${item[0]} ${activeTour === index ? "active" : ""}`} onClick={() => setActiveTour(index)} aria-label={item[1]} aria-pressed={activeTour === index}><span>{index + 1}</span></button>)}</div><div className="tour-caption"><span>0{activeTour + 1}</span><div><strong>{t.tourItems[activeTour][1]}</strong><p>{t.tourItems[activeTour][2]}</p></div></div></div><div className="tour-tabs">{t.tourItems.map((item, index) => <button key={item[0]} className={activeTour === index ? "active" : ""} onClick={() => setActiveTour(index)}><span>0{index + 1}</span><div><strong>{item[1]}</strong><small>{item[2]}</small></div></button>)}</div></div></section>
|
||||
|
||||
<section className="install shell reveal" id="install"><span className="kicker">{t.installKicker}</span><h2>{t.installTitle}</h2><p>{t.installText}</p><div className="install-steps">{t.installSteps.map(([number, title, description]) => <article key={number}><span>{number}</span><div><strong>{title}</strong><small>{description}</small></div></article>)}</div><div className="command"><code><i>$</i> docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest</code><button className={copied ? "copied" : ""} onClick={copyDockerCommand} aria-label={t.copyCommand}>{copied ? `✓ ${t.copied}` : "⧉"}</button></div><div className="actions centered-actions"><a className="button primary" href={`${github}#-installation`} target="_blank" rel="noreferrer">{t.installGuide} <span>→</span></a><a className="text-link" href="https://hub.docker.com/r/moepchi/webspeak3" target="_blank" rel="noreferrer">Docker Hub ↗</a></div></section>
|
||||
|
||||
|
||||
Reference in new issue
Block a user