Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import { EDITOR_URL } from '../consts';
import ThemeIcon from './ThemeIcon.astro';
---
<div class="bg-base-100 sticky top-0 z-10">
Expand All @@ -11,6 +12,7 @@ import ThemeIcon from './ThemeIcon.astro';
</div>
<div class="navbar-end">
<ul class="menu menu-horizontal px-1">
<li><a href={EDITOR_URL} target="_blank">Try the Editor</a></li>
<li><a href="/blog">Blog</a></li>
<li><a href="/community">Community</a></li>
</ul>
Expand Down
3 changes: 2 additions & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export const SLACK_LINK = 'https://cloud-native.slack.com/messages/open-workflow
export const X_TWITTER_LINK = 'https://x.com/cncfworkflow';
export const LINKEDIN_LINK = 'https://www.linkedin.com/company/serverless-workflow/posts';
export const DEV_MAILING_LIST_LINK = 'mailto:cncf-serverlessws-maintainers@lists.cncf.io';
export const RSS_LINK = '/rss.xml';
export const RSS_LINK = '/rss.xml';
export const EDITOR_URL = "https://openworkflow-editor.netlify.app/";
48 changes: 48 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,54 @@ import OWSEditor from "../components/OWSEditor";
const examples = (await getCollection('example')).sort((a,b) => a.data.title.localeCompare(b.data.title));
---
<Layout>
<!-- Diagram Editor CTA -->
<div
id="editor-popup"
class="hidden fixed bottom-6 right-6 z-50 w-[300px] rounded-box border border-base-300 bg-base-100 p-5 shadow-2xl"
>
<button
id="editor-popup-close"
class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2"
aria-label="Close"
type="button"
>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
</svg>
</button>

<div>
<h3 class="text-xl font-bold">
Meet the Diagram Editor
</h3>
<p class="mt-1 text-sm opacity-80">
Visualize and explore workflows with our interactive editor.
</p>
<a
href="https://openworkflow-editor.netlify.app/"
target="_blank"
rel="noopener noreferrer"
class="btn btn-primary btn-sm mt-4"
>
Try the Editor
</a>
</div>
</div>

<script>
document.addEventListener("DOMContentLoaded", () => {
const popup = document.getElementById("editor-popup");
const closeButton = document.getElementById("editor-popup-close");
Comment thread
kumaradityaraj marked this conversation as resolved.
if (!popup) return;
setTimeout(() => {
popup.classList.remove("hidden");
}, 2000);
closeButton?.addEventListener("click", () => {
popup?.remove();
});
});
</script>

<!-- Hero -->
<div class="hero min-h-[60vh]">
<div class="relative h-full w-full bg-base-200 bg-[linear-gradient(to_right,#8080800a_1px,transparent_1px),linear-gradient(to_bottom,#8080800a_1px,transparent_1px)] bg-[size:14px_24px]">
Expand Down