Skip to content

Commit

Permalink
Try actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ilMatto99 committed Feb 4, 2025
1 parent b950f7a commit 6bb9e18
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 6 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build after Push


on:
push:
branches:
- master # Trigger automatico dopo una push su master
workflow_dispatch: # Possibilità di attivare il workflow manualmente
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: '20'

- name: Install Dependencies
run: npm install --force

- name: Run Build
run: npm run build
25 changes: 19 additions & 6 deletions apps/documentation-app/src/pages/DocsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ const DocsPage = () => {
<pre className="bg-gray-900 text-cyan-300 p-4 rounded mt-2">
<code>npm install @marino-ui/core</code>
</pre>
<p className="text-gray-300 mt-4">Then import components as needed:</p>
<p className="text-gray-300 mt-4">
Then import components as needed:
</p>
<pre className="bg-gray-900 text-cyan-300 p-4 rounded mt-2">
<code>import Button from '@marino-ui/core;</code>
<code>import Button from '@marino-ui/core;</code>
</pre>
</div>
);
Expand All @@ -32,10 +34,13 @@ const DocsPage = () => {
<div>
<h2 className="text-2xl font-bold mb-4">Components</h2>
<p className="text-gray-300">
Our library offers a wide range of customizable components like Buttons, Forms, and more.
Our library offers a wide range of customizable components like
Buttons, Forms, and more.
</p>
<Link to="/components">
<a className="text-cyan-300 underline mt-4 block">View all components</a>
<a className="text-cyan-300 underline mt-4 block">
View all components
</a>
</Link>
</div>
);
Expand All @@ -44,7 +49,8 @@ const DocsPage = () => {
<div>
<h2 className="text-2xl font-bold mb-4">Styling</h2>
<p className="text-gray-300">
Customize components using Tailwind CSS utility classes or extend default styles.
Customize components using Tailwind CSS utility classes or extend
default styles.
</p>
<pre className="bg-gray-900 text-cyan-300 p-4 rounded mt-2">
<code>className="bg-blue-500 hover:bg-blue-700 text-white"</code>
Expand Down Expand Up @@ -81,9 +87,16 @@ const DocsPage = () => {
<div className="md:col-span-3 bg-gray-800 p-6 rounded-xl shadow-lg">
{renderContent()}
</div>
<div className="mt-8">
<Link to="/">
<button className="px-6 py-2 bg-cyan-300 text-black rounded-2xl hover:bg-cyan-200 transition">
⬅ Back to Homepage
</button>
</Link>
</div>
</div>
</div>
);
};

export default DocsPage;
export default DocsPage;

0 comments on commit 6bb9e18

Please sign in to comment.