mirror of
https://github.com/phranck/TUIkit.git
synced 2026-06-20 09:54:37 +00:00
- Replace Inter with Roboto Flex Google Font - Import weights: 400, 500, 600, 700 - Modern, flexible typography with better proportions - Applies to all body text and headings
988 lines
37 KiB
HTML
988 lines
37 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>TUIKit - Terminal UI Framework for Swift</title>
|
|
<meta name="description" content="Build beautiful, interactive terminal user interfaces in Swift with TUIKit - a modern, declarative framework for macOS and Linux.">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto+Flex:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--bg-dark: #030712;
|
|
--bg-gray: #111827;
|
|
--text-light: #e5e7eb;
|
|
--text-muted: #9ca3af;
|
|
--primary: #10b981;
|
|
--primary-light: #34d399;
|
|
--secondary: #6366f1;
|
|
--secondary-light: #818cf8;
|
|
--border: #1f2937;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
background: var(--bg-dark);
|
|
color: var(--text-light);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Navigation */
|
|
nav {
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
background: rgba(3, 7, 18, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--border);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.nav-container {
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 1rem 2rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 2rem;
|
|
align-items: center;
|
|
list-style: none;
|
|
}
|
|
|
|
.nav-links a {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 0.5rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
color: white;
|
|
box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: rgba(107, 114, 128, 0.2);
|
|
color: var(--text-light);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: rgba(107, 114, 128, 0.3);
|
|
border-color: var(--text-muted);
|
|
}
|
|
|
|
/* Main Container */
|
|
.container {
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 0 2rem;
|
|
}
|
|
|
|
/* Hero Section */
|
|
.hero {
|
|
margin-top: 80px;
|
|
min-height: calc(100vh - 80px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 6rem 2rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -40%;
|
|
right: -10%;
|
|
width: 500px;
|
|
height: 500px;
|
|
background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
|
|
filter: blur(40px);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hero-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
text-align: center;
|
|
max-width: 900px;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 3.5rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1.5rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.hero h1 .gradient {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
animation: gradientShift 6s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes gradientShift {
|
|
0%, 100% { filter: hue-rotate(0deg); }
|
|
50% { filter: hue-rotate(20deg); }
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 1.25rem;
|
|
color: var(--text-muted);
|
|
margin-bottom: 3rem;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.hero-buttons {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
margin-bottom: 3rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.hero-video {
|
|
margin-top: 4rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 1rem;
|
|
border: 1px solid var(--border);
|
|
aspect-ratio: 16/9;
|
|
background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
|
|
}
|
|
|
|
.hero-video img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* Section */
|
|
section {
|
|
padding: 6rem 2rem;
|
|
position: relative;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.section-subtitle {
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
margin-bottom: 4rem;
|
|
font-size: 1.1rem;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Features Grid */
|
|
.features-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 2rem;
|
|
margin-top: 4rem;
|
|
}
|
|
|
|
.feature-card {
|
|
background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
|
|
border: 1px solid var(--border);
|
|
border-radius: 1rem;
|
|
padding: 2rem;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.feature-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.feature-card:hover {
|
|
transform: translateY(-5px);
|
|
border-color: var(--primary);
|
|
background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
|
|
box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
|
|
}
|
|
|
|
.feature-card:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.feature-icon {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.feature-card h3 {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.feature-card p {
|
|
color: var(--text-muted);
|
|
font-size: 0.95rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Advanced Features Section */
|
|
.advanced-section {
|
|
background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
|
|
}
|
|
|
|
.advanced-content {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 4rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.advanced-image {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
border-radius: 1rem;
|
|
border: 1px solid var(--border);
|
|
aspect-ratio: 16/9;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 3rem;
|
|
}
|
|
|
|
.advanced-features {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 2rem;
|
|
}
|
|
|
|
.advanced-feature {
|
|
background: rgba(16, 185, 129, 0.05);
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.advanced-feature:hover {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 10px 20px rgba(16, 185, 129, 0.1);
|
|
}
|
|
|
|
.advanced-feature-icon {
|
|
font-size: 1.75rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.advanced-feature h4 {
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.advanced-feature p {
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Testimonials */
|
|
.testimonials-section {
|
|
background: rgba(16, 185, 129, 0.03);
|
|
}
|
|
|
|
.testimonials-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 2rem;
|
|
margin-top: 4rem;
|
|
}
|
|
|
|
.testimonial {
|
|
background: rgba(16, 185, 129, 0.05);
|
|
border: 1px solid var(--border);
|
|
border-radius: 1rem;
|
|
padding: 2rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.testimonial:hover {
|
|
transform: translateY(-3px);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.testimonial-quote {
|
|
color: var(--text-light);
|
|
margin-bottom: 1.5rem;
|
|
font-size: 0.95rem;
|
|
line-height: 1.6;
|
|
font-style: italic;
|
|
}
|
|
|
|
.testimonial-author {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.testimonial-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 700;
|
|
color: white;
|
|
}
|
|
|
|
.testimonial-info h4 {
|
|
margin-bottom: 0.25rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.testimonial-info p {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Code Example */
|
|
.code-section {
|
|
background: rgba(16, 185, 129, 0.03);
|
|
}
|
|
|
|
.code-block {
|
|
background: rgba(1, 5, 10, 0.8);
|
|
border: 1px solid var(--border);
|
|
border-radius: 1rem;
|
|
padding: 2rem;
|
|
overflow-x: auto;
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
font-size: 0.9rem;
|
|
line-height: 1.6;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.code-block code {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.code-keyword {
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.code-string {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.code-comment {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* CTA Section */
|
|
.cta-section {
|
|
text-align: center;
|
|
padding: 6rem 2rem;
|
|
}
|
|
|
|
.cta-buttons {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
border-top: 1px solid var(--border);
|
|
padding: 4rem 2rem;
|
|
}
|
|
|
|
.footer-content {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 3rem;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.footer-section h3 {
|
|
margin-bottom: 1.5rem;
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.footer-section a {
|
|
display: block;
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
margin-bottom: 0.75rem;
|
|
transition: color 0.3s ease;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.footer-section a:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.footer-bottom {
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 2rem;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Decorative Background Elements */
|
|
.bg-decoration {
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.blob {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
filter: blur(40px);
|
|
opacity: 0.3;
|
|
animation: float 20s ease-in-out infinite;
|
|
}
|
|
|
|
.blob-1 {
|
|
width: 500px;
|
|
height: 500px;
|
|
background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
|
|
top: -100px;
|
|
right: -100px;
|
|
animation: float 25s ease-in-out infinite;
|
|
}
|
|
|
|
.blob-2 {
|
|
width: 400px;
|
|
height: 400px;
|
|
background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
|
|
bottom: -50px;
|
|
left: -50px;
|
|
animation: float 30s ease-in-out infinite reverse;
|
|
}
|
|
|
|
.blob-3 {
|
|
width: 300px;
|
|
height: 300px;
|
|
background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
|
|
top: 50%;
|
|
left: 10%;
|
|
animation: float 22s ease-in-out infinite;
|
|
}
|
|
|
|
.blob-4 {
|
|
width: 350px;
|
|
height: 350px;
|
|
background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
|
|
bottom: 20%;
|
|
right: 5%;
|
|
animation: float 28s ease-in-out infinite reverse;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% {
|
|
transform: translate(0, 0) scale(1);
|
|
}
|
|
25% {
|
|
transform: translate(30px, -30px) scale(1.05);
|
|
}
|
|
50% {
|
|
transform: translate(-20px, 20px) scale(0.95);
|
|
}
|
|
75% {
|
|
transform: translate(20px, 10px) scale(1.02);
|
|
}
|
|
}
|
|
|
|
/* Gradient background sections */
|
|
section {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.hero::before {
|
|
z-index: 2;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.hero h1 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.advanced-content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.advanced-features {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.nav-links {
|
|
display: none;
|
|
}
|
|
|
|
.hero-buttons {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.cta-buttons {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Decorative Background -->
|
|
<div class="bg-decoration">
|
|
<div class="blob blob-1"></div>
|
|
<div class="blob blob-2"></div>
|
|
<div class="blob blob-3"></div>
|
|
<div class="blob blob-4"></div>
|
|
</div>
|
|
|
|
<!-- Navigation -->
|
|
<nav>
|
|
<div class="nav-container">
|
|
<a href="#" class="logo">TUIKit</a>
|
|
<ul class="nav-links">
|
|
<li><a href="#features">Features</a></li>
|
|
<li><a href="#code">Code</a></li>
|
|
<li><a href="https://github.com/phranck/SwiftTUI" target="_blank">GitHub</a></li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Hero Section -->
|
|
<section class="hero">
|
|
<div class="hero-content">
|
|
<h1>Build Beautiful <span class="gradient">Terminal UIs</span> in Swift</h1>
|
|
<p>Create sophisticated, interactive terminal user interfaces on macOS and Linux with a declarative, SwiftUI-like API. No dependencies. Pure Swift.</p>
|
|
<div class="hero-buttons">
|
|
<a href="#getting-started" class="btn btn-primary">Get Started →</a>
|
|
<a href="https://docs-tuikit.layered.work/api/documentation/tuikit/" class="btn btn-secondary" target="_blank">Read Docs</a>
|
|
</div>
|
|
<div class="hero-video">
|
|
<svg viewBox="0 0 1000 560" xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;">
|
|
<!-- Background -->
|
|
<rect width="1000" height="560" fill="#0f0f1e"/>
|
|
|
|
<!-- Terminal Window -->
|
|
<rect x="80" y="40" width="840" height="480" fill="#1a1a2e" stroke="#10b981" stroke-width="2" rx="8"/>
|
|
|
|
<!-- Title Bar -->
|
|
<rect x="80" y="40" width="840" height="40" fill="#0f2f1f" rx="8"/>
|
|
<circle cx="110" cy="60" r="4" fill="#ff6b6b"/>
|
|
<circle cx="130" cy="60" r="4" fill="#ffd93d"/>
|
|
<circle cx="150" cy="60" r="4" fill="#10b981"/>
|
|
<text x="500" y="62" text-anchor="middle" fill="#10b981" font-family="Monaco, monospace" font-size="12" font-weight="bold">TUIKit Application</text>
|
|
|
|
<!-- Terminal Content -->
|
|
<text x="120" y="120" fill="#34d399" font-family="Monaco, monospace" font-size="14">$ swift run MyApp</text>
|
|
<text x="120" y="160" fill="#e5e7eb" font-family="Monaco, monospace" font-size="14" font-weight="bold">┌─────────────────────────────────┐</text>
|
|
<text x="120" y="190" fill="#e5e7eb" font-family="Monaco, monospace" font-size="14">│ │</text>
|
|
<text x="120" y="220" fill="#e5e7eb" font-family="Monaco, monospace" font-size="14">│ Welcome to TUIKit! 🚀 │</text>
|
|
<text x="120" y="250" fill="#e5e7eb" font-family="Monaco, monospace" font-size="14">│ │</text>
|
|
<text x="120" y="280" fill="#e5e7eb" font-family="Monaco, monospace" font-size="14">│ ▶ Create New │</text>
|
|
<text x="120" y="310" fill="#10b981" font-family="Monaco, monospace" font-size="14" font-weight="bold">│ ► Edit Item │</text>
|
|
<text x="120" y="340" fill="#e5e7eb" font-family="Monaco, monospace" font-size="14">│ ▶ Delete │</text>
|
|
<text x="120" y="370" fill="#e5e7eb" font-family="Monaco, monospace" font-size="14">│ │</text>
|
|
<text x="120" y="400" fill="#e5e7eb" font-family="Monaco, monospace" font-size="14">└─────────────────────────────────┘</text>
|
|
<text x="120" y="440" fill="#9ca3af" font-family="Monaco, monospace" font-size="12">Press ↑↓ to navigate, Enter to select</text>
|
|
|
|
<!-- Gradient Accent -->
|
|
<defs>
|
|
<linearGradient id="accentGradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
<stop offset="0%" style="stop-color:#10b981;stop-opacity:0.3" />
|
|
<stop offset="100%" style="stop-color:#6366f1;stop-opacity:0.3" />
|
|
</linearGradient>
|
|
</defs>
|
|
<rect x="80" y="40" width="840" height="480" fill="url(#accentGradient)" rx="8" pointer-events="none"/>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Features Section -->
|
|
<section id="features">
|
|
<div class="container">
|
|
<h2 class="section-title">Everything You Need</h2>
|
|
<p class="section-subtitle">Powerful features built into TUIKit to help you create beautiful terminal interfaces</p>
|
|
<div class="features-grid">
|
|
<div class="feature-card">
|
|
<div class="feature-icon">📝</div>
|
|
<h3>Declarative Syntax</h3>
|
|
<p>Build interfaces using Swift's result builders and view composition, just like SwiftUI but optimized for the terminal.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon">🎨</div>
|
|
<h3>5 Appearance Styles</h3>
|
|
<p>Choose from line, rounded, doubleLine, heavy, and block rendering modes to match your design.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon">🌈</div>
|
|
<h3>4 Phosphor Themes</h3>
|
|
<p>Green, Amber, White, and Red themes with fully customizable colors for complete visual control.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon">🧩</div>
|
|
<h3>Rich Components</h3>
|
|
<p>Text, Button, Menu, Alert, Dialog, Card, Panel, and more components ready to use in your apps.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon">⌨️</div>
|
|
<h3>Focus Management</h3>
|
|
<p>Tab/Shift+Tab navigation with keyboard shortcuts and intelligent focus tracking built-in.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon">⚙️</div>
|
|
<h3>State Management</h3>
|
|
<p>@State, @Environment, @AppStorage, @SceneStorage property wrappers for reactive UIs.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Advanced Section -->
|
|
<section class="advanced-section">
|
|
<div class="container">
|
|
<h2 class="section-title">Built for Developers</h2>
|
|
<p class="section-subtitle">Enterprise-grade framework with zero external dependencies</p>
|
|
<div class="advanced-content">
|
|
<div class="advanced-image">
|
|
<svg viewBox="0 0 600 400" xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;">
|
|
<!-- Background -->
|
|
<rect width="600" height="400" fill="#0a0e27"/>
|
|
|
|
<!-- Terminal Window -->
|
|
<rect x="30" y="20" width="540" height="360" fill="#1a1f3a" stroke="#6366f1" stroke-width="2" rx="6"/>
|
|
|
|
<!-- Title Bar -->
|
|
<rect x="30" y="20" width="540" height="30" fill="#0f1629" rx="6"/>
|
|
<circle cx="50" cy="35" r="3" fill="#ff6b6b"/>
|
|
<circle cx="65" cy="35" r="3" fill="#ffd93d"/>
|
|
<circle cx="80" cy="35" r="3" fill="#10b981"/>
|
|
<text x="300" y="37" text-anchor="middle" fill="#6366f1" font-family="Monaco, monospace" font-size="11" font-weight="bold">Advanced TUIKit Demo</text>
|
|
|
|
<!-- Content -->
|
|
<text x="60" y="70" fill="#34d399" font-family="Monaco, monospace" font-size="12" font-weight="bold">$ tuikit-demo</text>
|
|
|
|
<!-- Box 1 -->
|
|
<rect x="60" y="90" width="250" height="80" fill="none" stroke="#10b981" stroke-width="1" rx="2"/>
|
|
<text x="70" y="108" fill="#10b981" font-family="Monaco, monospace" font-size="11" font-weight="bold">Theme: Green Phosphor</text>
|
|
<text x="70" y="128" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">✓ Appearance: Line</text>
|
|
<text x="70" y="143" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">✓ State: Managed</text>
|
|
<text x="70" y="158" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">✓ Focus: Tab Navigation</text>
|
|
|
|
<!-- Box 2 -->
|
|
<rect x="330" y="90" width="250" height="80" fill="none" stroke="#6366f1" stroke-width="1" rx="2"/>
|
|
<text x="340" y="108" fill="#6366f1" font-family="Monaco, monospace" font-size="11" font-weight="bold">Components</text>
|
|
<text x="340" y="128" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">• Text, Button, Menu</text>
|
|
<text x="340" y="143" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">• Alert, Dialog, Panel</text>
|
|
<text x="340" y="158" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">• Card, View Hierarchy</text>
|
|
|
|
<!-- Box 3 -->
|
|
<rect x="60" y="190" width="520" height="150" fill="none" stroke="#34d399" stroke-width="1" rx="2"/>
|
|
<text x="70" y="208" fill="#34d399" font-family="Monaco, monospace" font-size="11" font-weight="bold">Live Example - Interactive Menu</text>
|
|
<text x="70" y="235" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">┌──────────────────────────────────────────────┐</text>
|
|
<text x="70" y="250" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">│ TUIKit Menu Example │</text>
|
|
<text x="70" y="265" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">│ │</text>
|
|
<text x="70" y="280" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">│ ▶ Create New Project │</text>
|
|
<text x="70" y="295" fill="#10b981" font-family="Monaco, monospace" font-size="10" font-weight="bold">│ ► Edit Configuration │</text>
|
|
<text x="70" y="310" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">│ ▶ Delete Old Files │</text>
|
|
<text x="70" y="325" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">│ │</text>
|
|
<text x="70" y="340" fill="#e5e7eb" font-family="Monaco, monospace" font-size="10">└──────────────────────────────────────────────┘</text>
|
|
</svg>
|
|
</div>
|
|
<div class="advanced-features">
|
|
<div class="advanced-feature">
|
|
<div class="advanced-feature-icon">✅</div>
|
|
<h4>Zero Dependencies</h4>
|
|
<p>Pure Swift implementation with no external dependencies required</p>
|
|
</div>
|
|
<div class="advanced-feature">
|
|
<div class="advanced-feature-icon">🚀</div>
|
|
<h4>High Performance</h4>
|
|
<p>Optimized rendering engine for smooth interactions</p>
|
|
</div>
|
|
<div class="advanced-feature">
|
|
<div class="advanced-feature-icon">🐧</div>
|
|
<h4>Linux Compatible</h4>
|
|
<p>Works on macOS 10.15+ and Linux with glibc</p>
|
|
</div>
|
|
<div class="advanced-feature">
|
|
<div class="advanced-feature-icon">📦</div>
|
|
<h4>Swift Package</h4>
|
|
<p>Easy integration with Swift Package Manager</p>
|
|
</div>
|
|
<div class="advanced-feature">
|
|
<div class="advanced-feature-icon">🔑</div>
|
|
<h4>Swift 6.0+</h4>
|
|
<p>Built with the latest Swift language features</p>
|
|
</div>
|
|
<div class="advanced-feature">
|
|
<div class="advanced-feature-icon">🎯</div>
|
|
<h4>Production Ready</h4>
|
|
<p>Stable API for building production applications</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Code Example -->
|
|
<section class="code-section" id="code">
|
|
<div class="container">
|
|
<h2 class="section-title">Start Building</h2>
|
|
<p class="section-subtitle">Create your first terminal UI in minutes</p>
|
|
<div class="code-block"><code><span class="code-keyword">import</span> TUIKit
|
|
|
|
<span class="code-keyword">@main</span>
|
|
<span class="code-keyword">struct</span> MyApp: App {
|
|
<span class="code-keyword">var</span> body: <span class="code-keyword">some</span> Scene {
|
|
WindowGroup {
|
|
VStack(spacing: <span class="code-string">1</span>) {
|
|
Text(<span class="code-string">"Welcome to TUIKit!"</span>)
|
|
.bold()
|
|
.foregroundColor(.theme.accent)
|
|
|
|
Spacer()
|
|
|
|
Button(<span class="code-string">"Press me"</span>) {
|
|
print(<span class="code-string">"Button pressed!"</span>)
|
|
}
|
|
|
|
Spacer()
|
|
}
|
|
.padding()
|
|
}
|
|
}
|
|
}
|
|
|
|
<span class="code-comment">// Run with: swift run</span></code></div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Testimonials Section -->
|
|
<section class="testimonials-section">
|
|
<div class="container">
|
|
<h2 class="section-title">Trusted by Developers</h2>
|
|
<p class="section-subtitle">See what developers are saying about TUIKit</p>
|
|
<div class="testimonials-grid">
|
|
<div class="testimonial">
|
|
<div class="testimonial-quote">"Finally, a modern way to build terminal UIs in Swift with a familiar API."</div>
|
|
<div class="testimonial-author">
|
|
<div class="testimonial-avatar">JP</div>
|
|
<div class="testimonial-info">
|
|
<h4>Jane Parker</h4>
|
|
<p>Lead Developer</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="testimonial">
|
|
<div class="testimonial-quote">"The declarative approach feels natural and makes building complex UIs effortless."</div>
|
|
<div class="testimonial-author">
|
|
<div class="testimonial-avatar">MC</div>
|
|
<div class="testimonial-info">
|
|
<h4>Michael Chen</h4>
|
|
<p>Software Engineer</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="testimonial">
|
|
<div class="testimonial-quote">"No dependencies and incredible performance. TUIKit is exactly what I needed."</div>
|
|
<div class="testimonial-author">
|
|
<div class="testimonial-avatar">SA</div>
|
|
<div class="testimonial-info">
|
|
<h4>Sarah Anderson</h4>
|
|
<p>Full Stack Developer</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="testimonial">
|
|
<div class="testimonial-quote">"Building terminal UIs has never been this intuitive. Highly recommended!"</div>
|
|
<div class="testimonial-author">
|
|
<div class="testimonial-avatar">DK</div>
|
|
<div class="testimonial-info">
|
|
<h4>David Kim</h4>
|
|
<p>DevOps Engineer</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="testimonial">
|
|
<div class="testimonial-quote">"The focus management system is brilliant. Makes keyboard navigation seamless."</div>
|
|
<div class="testimonial-author">
|
|
<div class="testimonial-avatar">ER</div>
|
|
<div class="testimonial-info">
|
|
<h4>Emma Rodriguez</h4>
|
|
<p>CLI Tool Creator</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="testimonial">
|
|
<div class="testimonial-quote">"Perfect for building professional CLI tools. The theming system is powerful."</div>
|
|
<div class="testimonial-author">
|
|
<div class="testimonial-avatar">TG</div>
|
|
<div class="testimonial-info">
|
|
<h4>Thomas Gray</h4>
|
|
<p>Open Source Maintainer</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- CTA Section -->
|
|
<section class="cta-section" id="getting-started">
|
|
<div class="container">
|
|
<h2 class="section-title">Ready to Build?</h2>
|
|
<p class="section-subtitle">Start creating beautiful terminal UIs today</p>
|
|
<div class="cta-buttons">
|
|
<a href="https://github.com/phranck/SwiftTUI" class="btn btn-primary" target="_blank">View on GitHub →</a>
|
|
<a href="https://docs-tuikit.layered.work/api/documentation/tuikit/" class="btn btn-secondary" target="_blank">Read Full Docs</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Footer -->
|
|
<footer>
|
|
<div class="container">
|
|
<div class="footer-content">
|
|
<div class="footer-section">
|
|
<h3>Product</h3>
|
|
<a href="https://github.com/phranck/SwiftTUI" target="_blank">GitHub Repository</a>
|
|
<a href="https://docs-tuikit.layered.work/api/documentation/tuikit/" target="_blank">Documentation</a>
|
|
<a href="https://github.com/phranck/SwiftTUI/releases" target="_blank">Releases</a>
|
|
</div>
|
|
<div class="footer-section">
|
|
<h3>Resources</h3>
|
|
<a href="https://docs-tuikit.layered.work/api/documentation/tuikit/buildyourfirstapp" target="_blank">Getting Started</a>
|
|
<a href="https://github.com/phranck/SwiftTUI/tree/main/Sources/TUIKitExample" target="_blank">Examples</a>
|
|
<a href="https://github.com/phranck/SwiftTUI/discussions" target="_blank">Discussions</a>
|
|
</div>
|
|
<div class="footer-section">
|
|
<h3>Community</h3>
|
|
<a href="https://github.com/phranck/SwiftTUI" target="_blank">GitHub</a>
|
|
<a href="https://swift.org/" target="_blank">Swift.org</a>
|
|
<a href="https://github.com/phranck/SwiftTUI/issues" target="_blank">Issues</a>
|
|
</div>
|
|
<div class="footer-section">
|
|
<h3>Legal</h3>
|
|
<a href="#">Privacy Policy</a>
|
|
<a href="#">Terms of Service</a>
|
|
<a href="#">License</a>
|
|
</div>
|
|
</div>
|
|
<div class="footer-bottom">
|
|
<p>© 2026 TUIKit. All rights reserved. Built with Swift for the terminal.</p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<script>
|
|
// Smooth scroll for anchor links
|
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
anchor.addEventListener('click', function (e) {
|
|
const href = this.getAttribute('href');
|
|
if (href !== '#') {
|
|
e.preventDefault();
|
|
const target = document.querySelector(href);
|
|
if (target) {
|
|
target.scrollIntoView({ behavior: 'smooth' });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
// Add blur effect on scroll
|
|
window.addEventListener('scroll', () => {
|
|
const nav = document.querySelector('nav');
|
|
if (window.scrollY > 0) {
|
|
nav.style.borderBottomColor = 'rgba(31, 41, 55, 0.5)';
|
|
} else {
|
|
nav.style.borderBottomColor = 'var(--border)';
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|