Skip to content

Commit 21719a4

Browse files
committed
feat(web): landing page
1 parent f8cbd07 commit 21719a4

24 files changed

Lines changed: 3800 additions & 59 deletions

.vscode/moroccan-stream.code-workspace

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
"source.fixAll.biome": "explicit",
1717
"source.organizeImports.biome": "explicit"
1818
},
19-
"typescript.tsdk": "node_modules/typescript/lib"
19+
"typescript.tsdk": "node_modules/typescript/lib",
20+
"[xml]": {
21+
"editor.defaultFormatter": "redhat.vscode-xml"
22+
},
23+
"[astro]": {
24+
"editor.defaultFormatter": "biomejs.biome"
25+
}
2026
}
2127
}

apps/web/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/

apps/web/README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Astro Starter Kit: Minimal
2+
3+
```sh
4+
npm create astro@latest -- --template minimal
5+
```
6+
7+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal)
8+
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal)
9+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json)
10+
11+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
12+
13+
## 🚀 Project Structure
14+
15+
Inside of your Astro project, you'll see the following folders and files:
16+
17+
```text
18+
/
19+
├── public/
20+
├── src/
21+
│ └── pages/
22+
│ └── index.astro
23+
└── package.json
24+
```
25+
26+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
27+
28+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
29+
30+
Any static assets, like images, can be placed in the `public/` directory.
31+
32+
## 🧞 Commands
33+
34+
All commands are run from the root of the project, from a terminal:
35+
36+
| Command | Action |
37+
| :------------------------ | :----------------------------------------------- |
38+
| `npm install` | Installs dependencies |
39+
| `npm run dev` | Starts local dev server at `localhost:4321` |
40+
| `npm run build` | Build your production site to `./dist/` |
41+
| `npm run preview` | Preview your build locally, before deploying |
42+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
43+
| `npm run astro -- --help` | Get help using the Astro CLI |
44+
45+
## 👀 Want to learn more?
46+
47+
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

apps/web/astro.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// @ts-check
2+
import react from '@astrojs/react';
3+
import tailwindcss from '@tailwindcss/vite';
4+
import { defineConfig } from 'astro/config';
5+
6+
import favicons from 'astro-favicons';
7+
8+
import vercel from '@astrojs/vercel';
9+
10+
// https://astro.build/config
11+
export default defineConfig({
12+
integrations: [react(), favicons()],
13+
14+
vite: {
15+
plugins: [tailwindcss()],
16+
},
17+
18+
adapter: vercel(),
19+
});

apps/web/components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/styles/global.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

apps/web/package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "@moroccan-stream/web",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"build": "astro build",
8+
"preview": "astro preview",
9+
"astro": "astro",
10+
"lint": "npx ultracite lint",
11+
"format": "npx ultracite format"
12+
},
13+
"dependencies": {
14+
"@astrojs/react": "^4.3.0",
15+
"@astrojs/vercel": "^8.2.2",
16+
"@radix-ui/react-separator": "^1.1.7",
17+
"@radix-ui/react-slot": "^1.2.3",
18+
"@tailwindcss/vite": "^4.1.11",
19+
"@types/react": "^19.1.8",
20+
"@types/react-dom": "^19.1.6",
21+
"astro": "^5.12.0",
22+
"astro-favicons": "^3.1.5",
23+
"class-variance-authority": "^0.7.1",
24+
"clsx": "^2.1.1",
25+
"lucide-react": "^0.525.0",
26+
"react": "^19.1.0",
27+
"react-dom": "^19.1.0",
28+
"react-icons": "^5.5.0",
29+
"tailwind-merge": "^3.3.1",
30+
"tailwindcss": "^4.0.0"
31+
},
32+
"devDependencies": {
33+
"tw-animate-css": "^1.3.5"
34+
}
35+
}

apps/web/public/favicon.svg

Lines changed: 58 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)