Skip to content

Commit

Permalink
feat: hompage and routing
Browse files Browse the repository at this point in the history
  • Loading branch information
ilMatto99 committed Feb 3, 2025
1 parent 4af7090 commit 168fe34
Show file tree
Hide file tree
Showing 23 changed files with 942 additions and 922 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build after Push


on:
push:
branches:
- master # Trigger automatico dopo una push su master
workflow_dispatch: # Trigger manuale
inputs:
build_type:
description: "Tipo di build (esempio: fast-build, full-build)"
required: true
default: "fast-build"


jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install Dependencies
run: npm install

- name: Run Build
run: npm run build


41 changes: 0 additions & 41 deletions .github/workflows/ci.yml

This file was deleted.

1 change: 0 additions & 1 deletion apps/documentation-app/src/app/app.module.css

This file was deleted.

39 changes: 30 additions & 9 deletions apps/documentation-app/src/app/app.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Button } from '@marino-ui/button';
import styles from './app.module.css';

import NxWelcome from './nx-welcome';
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'; // Importa Router e Route da React Router
import Homepage from '../pages/Homepage';
import { Navbar } from '../components/Navbar';
import ComponentsPage from '../pages/ComponentsPage';
import Layout from '../components/Layout';
import DocsPage from '../pages/DocsPage';
import { Footer } from '@marino-ui/footer';

export function App() {
function App() {
return (
<div>
<Button/>
<Footer/>
</div>
<Router>
<Navbar />
<Routes>
<Route path="/" element={<Homepage />} />
<Route
path="/components"
element={
<Layout>
<ComponentsPage />
</Layout>
}
/>
<Route
path="/docs"
element={
<Layout>
<DocsPage />
</Layout>
}
/>
</Routes>
<Footer />
</Router>
);
}

Expand Down
Loading

0 comments on commit 168fe34

Please sign in to comment.