Skip to content
Closed
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
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CodeSnip CI

on:
pull_request:
push:
branches: ["26Q2.5"]
workflow_dispatch:

jobs:
validate:
name: Validate project
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Validate JavaScript syntax
shell: bash
run: |
set -e
find . -maxdepth 1 -type f -name '*.js' -print0 | xargs -0 -r -n1 node --check

build:
name: Build Windows app
runs-on: windows-latest
needs: validate
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Build Windows application
run: npm run dist
37 changes: 37 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy CodeSnip to GitHub Pages

on:
push:
branches: ["26Q2.5"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure Pages
uses: actions/configure-pages@v5

- name: Upload site artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
102 changes: 102 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="CodeSnip — a modern, fast and offline code & prompt manager for developers.">
<meta name="theme-color" content="#0b0d12">
<title>CodeSnip — Next-Gen Code & Prompt Manager</title>
<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=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="nav-wrap">
<nav class="nav container">
<a class="brand" href="#top" aria-label="CodeSnip home">
<span class="brand-mark">&lt;/&gt;</span><span>CodeSnip</span>
</a>
<div class="nav-links">
<a href="#features">Features</a>
<a href="#screenshots">Screenshots</a>
<a href="#roadmap">Roadmap</a>
<a href="https://github.com/MstfSlm38/CodeSnip" target="_blank" rel="noreferrer">GitHub</a>
</div>
<button class="menu" id="menu" aria-label="Open menu">☰</button>
</nav>
</header>

<main id="top">
<section class="hero container">
<div class="hero-copy">
<span class="eyebrow">NEXT-GENERATION CODE & PROMPT MANAGER</span>
<h1>Your code.<br><span>Organized.</span></h1>
<p class="lead">A modern, fast and completely offline desktop app for code snippets, terminal commands and AI prompts.</p>
<div class="actions">
<a class="btn primary" href="https://github.com/MstfSlm38/CodeSnip/releases" target="_blank" rel="noreferrer">Download CodeSnip <span>↗</span></a>
<a class="btn secondary" href="https://github.com/MstfSlm38/CodeSnip" target="_blank" rel="noreferrer">View source</a>
</div>
<div class="meta"><span>Electron</span><i></i><span>MIT License</span><i></i><span>Offline-first</span></div>
</div>
<div class="hero-card glass">
<div class="window-bar"><span></span><span></span><span></span><b>CodeSnip</b></div>
<div class="mock-sidebar">
<div class="mock-logo">&lt;/&gt;</div>
<div class="mock-line active"></div><div class="mock-line"></div><div class="mock-line"></div><div class="mock-line short"></div>
</div>
<div class="mock-main">
<div class="mock-search">⌕ &nbsp; Search snippets...</div>
<div class="mock-title">My snippets</div>
<div class="snippet"><small>JavaScript</small><strong>fetchData()</strong><span>async function fetchData() { ... }</span></div>
<div class="snippet"><small>PowerShell</small><strong>Build project</strong><span>npm run dist</span></div>
<div class="snippet"><small>Prompt</small><strong>Code reviewer</strong><span>Review this code for bugs...</span></div>
</div>
</div>
</section>

<section class="trusted container"><span>BUILT FOR PEOPLE WHO BUILD</span><div><b>Developers</b><b>AI Users</b><b>Designers</b><b>Power Users</b></div></section>

<section id="features" class="section container">
<div class="section-head"><span class="eyebrow">FEATURES</span><h2>Everything you need.<br>Nothing you don't.</h2><p>CodeSnip keeps your frequently used code and prompts close, searchable and available even without an internet connection.</p></div>
<div class="feature-grid">
<article class="feature glass"><div class="icon">⌕</div><h3>Spotlight Search</h3><p>Find snippets instantly with global Spotlight search. Use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>S</kbd> from anywhere.</p></article>
<article class="feature glass"><div class="icon">✦</div><h3>Liquid Glass UI</h3><p>A clean, modern interface designed around fast navigation and a focused workspace.</p></article>
<article class="feature glass"><div class="icon">↗</div><h3>Share with Base64</h3><p>Create compact Base64-based sharing links for snippets without sending your data to a server.</p></article>
<article class="feature glass"><div class="icon">◉</div><h3>Offline by Design</h3><p>Your snippets stay local. CodeSnip works without requiring an internet connection.</p></article>
<article class="feature glass"><div class="icon">文</div><h3>TR / EN</h3><p>Switch between Turkish and English and keep the workspace comfortable for your workflow.</p></article>
<article class="feature glass"><div class="icon">▦</div><h3>Categories</h3><p>Organize snippets into categories and filter your collection quickly as it grows.</p></article>
</div>
</section>

<section id="screenshots" class="section container screenshots">
<div class="section-head"><span class="eyebrow">THE WORKSPACE</span><h2>Made to stay out of your way.</h2></div>
<div class="shots">
<figure class="shot large"><img src="https://github.com/user-attachments/assets/1e01968b-ef57-46bb-a8e7-743f0b2e65e5" alt="CodeSnip application interface"></figure>
<figure class="shot"><img src="https://github.com/user-attachments/assets/e31ec191-3f60-4b64-9a4b-7a8306fd653d" alt="CodeSnip screenshot"></figure>
<figure class="shot"><img src="https://github.com/user-attachments/assets/83036436-5c32-43c4-aa88-24eea23bbb24" alt="CodeSnip screenshot"></figure>
</div>
</section>

<section id="roadmap" class="section container">
<div class="section-head"><span class="eyebrow">ROADMAP</span><h2>Built in releases.<br>Always moving forward.</h2></div>
<div class="timeline">
<div class="release done"><span>v1.0</span><div><h3>Initial Release</h3><p>CodeSnip starts its journey.</p></div></div>
<div class="release done"><span>26Q2</span><div><h3>Spotlight & Liquid Glass</h3><p>Spotlight search, sharing and redesigned UI.</p></div></div>
<div class="release done"><span>26Q2.5</span><div><h3>JSON & Improved Spotlight</h3><p>Import/export improvements and updated version naming.</p></div></div>
<div class="release done"><span>26Q3.1</span><div><h3>Critical Hotfixes</h3><p>Stability improvements for the current release line.</p></div></div>
<div class="release next"><span>26Q3.5</span><div><h3>Next up</h3><p>Important hotfixes, Spanish language support and light-theme improvements.</p></div></div>
<div class="release"><span>27Q1</span><div><h3>Plugin System</h3><p>Plugins and code preview are planned for the future.</p></div></div>
</div>
</section>

<section class="cta container glass">
<div><span class="eyebrow">READY?</span><h2>Keep your best code one shortcut away.</h2><p>Download CodeSnip or explore the source on GitHub.</p></div>
<div class="actions"><a class="btn primary" href="https://github.com/MstfSlm38/CodeSnip/releases" target="_blank" rel="noreferrer">Get CodeSnip ↗</a><a class="btn secondary" href="https://github.com/MstfSlm38/CodeSnip" target="_blank" rel="noreferrer">GitHub</a></div>
</section>
</main>

<footer class="footer container"><div><b>CodeSnip</b><span>Next-Gen Code & Prompt Manager</span></div><div><span>MIT License</span><a href="https://github.com/MstfSlm38/CodeSnip" target="_blank" rel="noreferrer">MstfSlm38/CodeSnip</a></div></footer>
<script src="script.js"></script>
</body>
</html>
36 changes: 36 additions & 0 deletions docs/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const menu = document.getElementById('menu');
const navLinks = document.querySelector('.nav-links');

menu?.addEventListener('click', () => {
const open = navLinks.style.display === 'flex';
navLinks.style.display = open ? '' : 'flex';
if (!open) {
navLinks.style.position = 'absolute';
navLinks.style.top = '62px';
navLinks.style.left = '14px';
navLinks.style.right = '14px';
navLinks.style.padding = '18px';
navLinks.style.flexDirection = 'column';
navLinks.style.background = 'rgba(10,12,18,.96)';
navLinks.style.border = '1px solid rgba(255,255,255,.1)';
navLinks.style.borderRadius = '14px';
navLinks.style.backdropFilter = 'blur(18px)';
}
});

const reveal = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
reveal.unobserve(entry.target);
}
});
}, { threshold: 0.08 });

document.querySelectorAll('.feature, .shot, .release, .cta').forEach((el) => {
el.style.opacity = '0';
el.style.transform = 'translateY(16px)';
el.style.transition = 'opacity .55s ease, transform .55s ease';
reveal.observe(el);
});
1 change: 1 addition & 0 deletions docs/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.