From b74b662e9a8cb5abb65784abefacc6d7c3e93297 Mon Sep 17 00:00:00 2001 From: Daniele Viti Date: Sun, 6 Jul 2025 23:42:11 +0000 Subject: [PATCH] added more functions --- .github/workflows/docker-publish.yml | 2 +- Dockerfile | 2 +- index.html | 88 ------------------- .../cost-calculator.html | 0 pages/index.html | 77 ++++++++++++++++ .../savings-calculator.html | 0 6 files changed, 79 insertions(+), 90 deletions(-) delete mode 100644 index.html rename cost-calculator.html => pages/cost-calculator.html (100%) create mode 100644 pages/index.html rename savings-calculator.html => pages/savings-calculator.html (100%) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4714879..9ed431d 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -5,7 +5,7 @@ name: Docker Image CI for Electricity Calculator # Controls when the workflow will run on: push: - branches: [ "main" ] # Triggers on pushes to the main branch + branches: [ "master" ] # Triggers on pushes to the main branch # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/Dockerfile b/Dockerfile index dbce16a..cef0901 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM nginx:stable-alpine RUN rm -rf /usr/share/nginx/html/* # Copy the web application files (your index.html) to the Nginx web root directory -COPY index.html /usr/share/nginx/html/index.html +COPY pages/ /usr/share/nginx/html/ # Expose port 80 for HTTP traffic EXPOSE 80 diff --git a/index.html b/index.html deleted file mode 100644 index 473f4ea..0000000 --- a/index.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - Energy Calculator - Home - - - - -
-

Energy Calculator

-

Benvenuto! Scegli una funzione per iniziare:

-
-
-
-
-

Calcolatore Risparmi

-

Scopri quanto puoi risparmiare con il nostro calcolatore.

- Vai al Calcolatore Risparmi -
-
-

Calcolatore Costi

-

Calcola i costi energetici in modo semplice e veloce.

- Vai al Calcolatore Costi -
-
-
- - \ No newline at end of file diff --git a/cost-calculator.html b/pages/cost-calculator.html similarity index 100% rename from cost-calculator.html rename to pages/cost-calculator.html diff --git a/pages/index.html b/pages/index.html new file mode 100644 index 0000000..358b47d --- /dev/null +++ b/pages/index.html @@ -0,0 +1,77 @@ + + + + + Energy Calculator - Home + + + + + + + +
+

Energy Calculator Suite

+

I tuoi strumenti per un'analisi energetica completa e consapevole.

+
+ + +
+
+ + +
+

Calcolatore Costi Avanzato

+

+ Simula i consumi e i costi dell'elettricità. Include opzioni per analizzare l'impatto di un impianto fotovoltaico e di una batteria di accumulo per una stima precisa e dettagliata. +

+ Vai al Calcolatore Costi +
+ + +
+

Calcolatore Risparmio Fotovoltaico

+

+ Analizza in dettaglio i costi, i risparmi e i possibili guadagni derivanti dall'installazione di un impianto fotovoltaico. Ottimo per valutare il tuo investimento. +

+ Vai al Calcolatore Risparmi +
+ +
+
+ + + + + diff --git a/savings-calculator.html b/pages/savings-calculator.html similarity index 100% rename from savings-calculator.html rename to pages/savings-calculator.html