From db15d385b14a44f844e9c739a6e30847585b8cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20P=C3=A0mies?= Date: Thu, 15 Jun 2023 07:39:31 +0200 Subject: [PATCH] first commit --- README.md | 42 +++++++++- content-roll.php | 212 +++++++++++++++++++++++++++++++++++++++++++++++ single-roll.php | 53 ++++++++++++ 3 files changed, 306 insertions(+), 1 deletion(-) create mode 100644 content-roll.php create mode 100644 single-roll.php diff --git a/README.md b/README.md index 59c8f40..aa4bafb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,43 @@ # rolls-calculator-template -Single page template for Wordpress GeneratePress theme that contains a javascript code and form to allow calculate rolls \ No newline at end of file +Single page template for Wordpress GeneratePress theme that contains a javascript code and form to allow calculate rolls + +## CSS + +Add this css code to style.css into Wordpress child theme: + +``` +.gb-container-rolls { + max-width: 1200px; + margin-right: auto; + margin-left: auto; + margin-top:80px; + margin-bottom: 80px; + display:flex; + align-items:center; + justify-content:center; +} + +.gb-inner-rolls { + width:50%; +} + +input.error-data-roll { + border:1px solid red; +} + +input.data-roll { + margin-bottom:20px; + width:100%; +} + +#errorrolls { + color:red; +} + +#resultrolls { + font-size:24px; + margin-top:20px; + text-align: center; +} +``` diff --git a/content-roll.php b/content-roll.php new file mode 100644 index 0000000..66ab527 --- /dev/null +++ b/content-roll.php @@ -0,0 +1,212 @@ + + +
> +
+ + +
+ +
+ + + +
> +
+
+

+ Calcular mi cantidad de papel pintado. Determina el número de rollos necesarios para tus paredes: +

+ + +
+ Anchura total de las paredes que desea empapelar. +
+ +
+ Altura total desde el suelo hasta el techo (descontado el rodapié y/o la moldura). +
+ +
+ datos incluidos en la hoja de descripción del producto. +
+ +
+ datos incluidos en la hoja de descripción del producto. +
+ +
+ Repetición del patrón: datos incluidos en la hoja de descripción del producto. +
+ +
+
+ +
+
+ +
+ '', + ) + ); + ?> +
+
+
+ + + +
+
diff --git a/single-roll.php b/single-roll.php new file mode 100644 index 0000000..5206723 --- /dev/null +++ b/single-roll.php @@ -0,0 +1,53 @@ + + +
> +
> + + + +
+
+ +