Skip to content

Commit 553235c

Browse files
committed
feat: mobile compatibility
1 parent 572d5b8 commit 553235c

18 files changed

Lines changed: 1197 additions & 48 deletions

.github/workflows/deploy.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Bun
25+
uses: oven-sh/setup-bun@v2
26+
with:
27+
bun-version: latest
28+
29+
- name: Install dependencies
30+
run: bun install
31+
32+
- name: Build website
33+
run: bun run build
34+
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: ./dist
39+
40+
deploy:
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
runs-on: ubuntu-latest
45+
needs: build
46+
steps:
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

README.md

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
1-
# Astro Starter Kit: Minimal
1+
# LibreDB Studio Website
22

3-
```sh
4-
bun create astro@latest -- --template minimal
5-
```
3+
Official website for LibreDB Studio - The Modern, AI-Powered Open-Source SQL IDE.
64

7-
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
5+
## Tech Stack
86

9-
## 🚀 Project Structure
7+
- [Astro](https://astro.build) - Static Site Generator
8+
- [Tailwind CSS](https://tailwindcss.com) - Styling
9+
- [TypeScript](https://www.typescriptlang.org/) - Type Safety
1010

11-
Inside of your Astro project, you'll see the following folders and files:
11+
## Development
1212

13-
```text
14-
/
15-
├── public/
16-
├── src/
17-
│ └── pages/
18-
│ └── index.astro
19-
└── package.json
20-
```
13+
```bash
14+
# Install dependencies
15+
bun install
16+
17+
# Start dev server
18+
bun dev
2119

22-
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
20+
# Build for production
21+
bun run build
22+
23+
# Preview production build
24+
bun preview
25+
```
2326

24-
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
27+
## Deployment
2528

26-
Any static assets, like images, can be placed in the `public/` directory.
29+
This site is deployed to GitHub Pages via GitHub Actions.
2730

28-
## 🧞 Commands
31+
Any push to the `main` branch will trigger an automatic build and deployment.
2932

30-
All commands are run from the root of the project, from a terminal:
33+
## Links
3134

32-
| Command | Action |
33-
| :------------------------ | :----------------------------------------------- |
34-
| `bun install` | Installs dependencies |
35-
| `bun dev` | Starts local dev server at `localhost:4321` |
36-
| `bun build` | Build your production site to `./dist/` |
37-
| `bun preview` | Preview your build locally, before deploying |
38-
| `bun astro ...` | Run CLI commands like `astro add`, `astro check` |
39-
| `bun astro -- --help` | Get help using the Astro CLI |
35+
- **Live Site**: https://libredb.github.io
36+
- **Main Project**: https://github.com/libredb/libredb-studio
37+
- **Live Demo**: https://demo.libredb.studio
4038

41-
## 👀 Want to learn more?
39+
## License
4240

43-
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
41+
MIT License

astro.config.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
3+
import tailwind from '@astrojs/tailwind';
4+
import sitemap from '@astrojs/sitemap';
35

46
// https://astro.build/config
5-
export default defineConfig({});
7+
export default defineConfig({
8+
site: 'https://libredb.github.io',
9+
integrations: [tailwind(), sitemap()],
10+
build: {
11+
assets: 'assets'
12+
}
13+
});

bun.lock

Lines changed: 167 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"astro": "astro"
1010
},
1111
"dependencies": {
12-
"astro": "^5.16.6"
12+
"@astrojs/sitemap": "^3.6.0",
13+
"@astrojs/tailwind": "^6.0.2",
14+
"astro": "^5.16.6",
15+
"autoprefixer": "^10.4.23",
16+
"tailwindcss": "3"
1317
}
1418
}

public/logo.svg

Lines changed: 32 additions & 0 deletions
Loading

public/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://libredb.github.io/sitemap-index.xml

src/components/BottomNav.astro

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
3+
---
4+
5+
<!-- Mobile Bottom Navigation - only visible on mobile -->
6+
<nav class="md:hidden fixed bottom-0 left-0 right-0 z-50 backdrop-blur-xl bg-slate-950/95 border-t border-slate-800/50 safe-area-bottom">
7+
<div class="grid grid-cols-5 h-16">
8+
<a href="#" class="flex flex-col items-center justify-center gap-1 text-slate-400 hover:text-primary-400 active:text-primary-500 transition-colors">
9+
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
10+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path>
11+
</svg>
12+
<span class="text-[10px] font-medium">Home</span>
13+
</a>
14+
15+
<a href="#features" class="flex flex-col items-center justify-center gap-1 text-slate-400 hover:text-primary-400 active:text-primary-500 transition-colors">
16+
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
17+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
18+
</svg>
19+
<span class="text-[10px] font-medium">Features</span>
20+
</a>
21+
22+
<a
23+
href="https://demo.libredb.studio"
24+
target="_blank"
25+
rel="noopener noreferrer"
26+
class="flex flex-col items-center justify-center -mt-4"
27+
>
28+
<div class="w-14 h-14 rounded-full bg-gradient-to-r from-primary-600 to-accent-600 flex items-center justify-center shadow-lg shadow-primary-600/30">
29+
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
30+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"></path>
31+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
32+
</svg>
33+
</div>
34+
<span class="text-[10px] font-medium text-primary-400 mt-1">Demo</span>
35+
</a>
36+
37+
<a href="#databases" class="flex flex-col items-center justify-center gap-1 text-slate-400 hover:text-primary-400 active:text-primary-500 transition-colors">
38+
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
39+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4"></path>
40+
</svg>
41+
<span class="text-[10px] font-medium">DBs</span>
42+
</a>
43+
44+
<a href="#get-started" class="flex flex-col items-center justify-center gap-1 text-slate-400 hover:text-primary-400 active:text-primary-500 transition-colors">
45+
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
46+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"></path>
47+
</svg>
48+
<span class="text-[10px] font-medium">Docs</span>
49+
</a>
50+
</div>
51+
</nav>
52+
53+
<style>
54+
.safe-area-bottom {
55+
padding-bottom: env(safe-area-inset-bottom);
56+
}
57+
</style>

0 commit comments

Comments
 (0)