Skip to content

Commit 2a875f1

Browse files
committed
added try online
1 parent ef33378 commit 2a875f1

File tree

3 files changed

+96
-4
lines changed

3 files changed

+96
-4
lines changed

docs-site/src/pages/Docs.css

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,68 @@ kbd {
159159
transition: color 0.3s ease;
160160
}
161161

162+
.try-it-section {
163+
margin-top: 4rem;
164+
padding: 3rem;
165+
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
166+
border-radius: 12px;
167+
text-align: center;
168+
color: white;
169+
}
170+
171+
.try-it-section h2 {
172+
margin-bottom: 1rem;
173+
font-size: 2rem;
174+
}
175+
176+
.try-it-section p {
177+
margin-bottom: 2rem;
178+
font-size: 1.1rem;
179+
opacity: 0.95;
180+
}
181+
182+
.cta-links {
183+
display: flex;
184+
gap: 1rem;
185+
justify-content: center;
186+
flex-wrap: wrap;
187+
}
188+
189+
.cta-button {
190+
padding: 1rem 2rem;
191+
border-radius: 8px;
192+
text-decoration: none;
193+
font-weight: 600;
194+
font-size: 1.1rem;
195+
transition: transform 0.3s ease, box-shadow 0.3s ease;
196+
display: inline-block;
197+
}
198+
199+
.cta-button:hover {
200+
transform: translateY(-3px);
201+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
202+
text-decoration: none;
203+
}
204+
205+
.cta-button.primary {
206+
background-color: white;
207+
color: var(--primary-color);
208+
}
209+
210+
.cta-button.primary:hover {
211+
background-color: #f0f0f0;
212+
}
213+
214+
.cta-button.secondary {
215+
background-color: rgba(255, 255, 255, 0.2);
216+
color: white;
217+
border: 2px solid white;
218+
}
219+
220+
.cta-button.secondary:hover {
221+
background-color: rgba(255, 255, 255, 0.3);
222+
}
223+
162224
@media (max-width: 768px) {
163225
.docs-grid {
164226
grid-template-columns: 1fr;
@@ -175,4 +237,21 @@ kbd {
175237
.getting-started {
176238
padding: 2rem 1.5rem;
177239
}
240+
241+
.try-it-section {
242+
padding: 2rem 1.5rem;
243+
}
244+
245+
.try-it-section h2 {
246+
font-size: 1.5rem;
247+
}
248+
249+
.cta-links {
250+
flex-direction: column;
251+
align-items: stretch;
252+
}
253+
254+
.cta-button {
255+
width: 100%;
256+
}
178257
}

docs-site/src/pages/Docs.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ export default function Docs() {
117117
</a>
118118
</div>
119119
</div>
120+
121+
<div className="try-it-section">
122+
<h2>Try EasyEdit Online</h2>
123+
<p>Experience EasyEdit directly in your browser without downloading anything!</p>
124+
<div className="cta-links">
125+
<Link to="/EasyEdit/docs" className="cta-button secondary">📚 Docs</Link>
126+
<a href="https://easyedit-web.web.app/" target="_blank" rel="noopener noreferrer" className="cta-button primary">🚀 Try It</a>
127+
<Link to="/EasyEdit/download" className="cta-button secondary">⬇️ Download</Link>
128+
</div>
129+
</div>
120130
</div>
121131
</section>
122132
</div>

docs-site/src/pages/Home.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ export default function Home() {
1717
Built for Linux with advanced features for developers and writers.
1818
</p>
1919
<div className="hero-buttons">
20-
<Link to="/download" className="btn btn-primary">
21-
Download Now
22-
</Link>
2320
<Link to="/docs" className="btn btn-secondary">
24-
View Documentation
21+
📚 Documentation
22+
</Link>
23+
<a href="https://easyedit-web.web.app/" target="_blank" rel="noopener noreferrer" className="btn btn-primary">
24+
🚀 Try It Online
25+
</a>
26+
<Link to="/download" className="btn btn-secondary">
27+
⬇️ Download
2528
</Link>
2629
</div>
2730
</div>

0 commit comments

Comments
 (0)