-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
175 lines (149 loc) · 5.36 KB
/
Copy pathindex.html
File metadata and controls
175 lines (149 loc) · 5.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NavigationPilot - Modern SwiftUI Navigation</title>
<meta name="description" content="Type-safe, scalable navigation for SwiftUI apps with NavigationPilot." />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
<style>
* { box-sizing: border-box; }
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: radial-gradient(circle at top, #1e293b, #020617);
color: #e2e8f0;
}
.container { max-width: 1200px; margin: auto; padding: 20px; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { font-weight: 700; font-size: 1.3rem; }
.hero { text-align: center; padding: 120px 20px 80px; }
h1 { font-size: 3.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; }
.gradient-text {
background: linear-gradient(90deg, #38bdf8, #6366f1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
p { color: #94a3b8; font-size: 1.15rem; line-height: 1.7; }
.btn {
display: inline-block; margin: 10px; padding: 14px 24px;
border-radius: 10px; text-decoration: none; font-weight: 600;
}
.btn-primary { background: linear-gradient(90deg, #3b82f6, #6366f1); color: white; }
.btn-secondary { border: 1px solid #334155; color: #e2e8f0; }
.section { margin-top: 100px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 40px; }
.card {
background: rgba(30, 41, 59, 0.6);
padding: 30px;
border-radius: 16px;
backdrop-filter: blur(10px);
text-align: left;
}
.code {
background: #020617; padding: 20px; border-radius: 12px;
margin-top: 20px; color: #38bdf8; font-family: monospace;
}
.two-col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
margin-top: 60px;
align-items: center;
}
footer { text-align: center; margin-top: 100px; padding-bottom: 40px; color: #64748b; }
@media(max-width: 768px){
.two-col { grid-template-columns: 1fr; }
h1 { font-size: 2.5rem; }
}
</style>
</head>
<body>
<div class="container">
<div class="nav">
<div class="logo">🚀 NavigationPilot</div>
<a href="https://github.com/DKVekariya/NavigationPilot" class="btn btn-secondary">GitHub</a>
</div>
<!-- HERO -->
<section class="hero">
<h1>
Type-Safe Navigation <br>
<span class="gradient-text">Built for Real Apps</span>
</h1>
<p>
NavigationPilot is a production-ready navigation architecture for SwiftUI.
Designed to eliminate fragile routing, improve maintainability, and scale with your app.
</p>
<a href="https://github.com/DKVekariya/NavigationPilot" class="btn btn-primary">Get Started</a>
<a href="https://medium.com/@dkvekariya/type-safe-swiftui-navigation-building-a-better-navigationstack-with-navigationpilot-ce633e29b565" class="btn btn-secondary">Read Article</a>
</section>
<!-- PROBLEM -->
<section class="section">
<h2>Why Navigation in SwiftUI is Painful</h2>
<div class="grid">
<div class="card">❌ String-based routing leads to runtime crashes</div>
<div class="card">❌ Hard to scale for large apps</div>
<div class="card">❌ Deep linking becomes messy</div>
<div class="card">❌ Poor separation of concerns</div>
</div>
</section>
<!-- SOLUTION -->
<section class="section">
<h2>The NavigationPilot Approach</h2>
<div class="grid">
<div class="card">🔒 Fully type-safe navigation</div>
<div class="card">🧠 Clean architecture friendly</div>
<div class="card">🔗 Built-in deep linking</div>
<div class="card">⚡ Minimal boilerplate</div>
</div>
</section>
<!-- CODE EXAMPLE -->
<section class="section">
<h2>Simple API</h2>
<div class="code">
navigationPilot.push(.detail(id: 1))
</div>
</section>
<!-- HOW IT WORKS -->
<section class="section">
<h2>How It Works</h2>
<div class="two-col">
<div>
<p>
NavigationPilot introduces a strongly-typed routing system using enums.
Each route represents a destination in your app.
</p>
<p>
This ensures compile-time safety and eliminates invalid navigation states.
</p>
</div>
<div class="code">
enum Route {
case home
case detail(id: Int)
}
</div>
</div>
</section>
<!-- INSTALL -->
<section class="section">
<h2>Install</h2>
<div class="code">
https://github.com/DKVekariya/NavigationPilot.git
</div>
</section>
<!-- CTA -->
<section class="section">
<h2>Start Building Better Navigation</h2>
<p>
Stop fighting SwiftUI navigation. Start building scalable apps today.
</p>
<a href="https://github.com/DKVekariya/NavigationPilot" class="btn btn-primary">View on GitHub</a>
</section>
<footer>
Built with ❤️ by Divyesh · Open Source
</footer>
</div>
</body>
</html>