diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..155704a --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + name: Deploy to Production + runs-on: docker + steps: + - name: Checkout code + run: | + git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git . + ls -la + + - name: Deploy via FTP + env: + USERNAME: ${{ secrets.USERNAME }} + PASSWORD: ${{ secrets.PASSWORD }} + PREPRODUCTION_HOST: ${{ secrets.PREPRODUCTION_HOST }} + run: | + apt-get update -qq && apt-get install -y -qq lftp + cat > /tmp/lftp-script.txt < + + diff --git a/site/snippets/picture.php b/site/snippets/picture.php new file mode 100644 index 0000000..ab28a7b --- /dev/null +++ b/site/snippets/picture.php @@ -0,0 +1,33 @@ + + alt() ?? ''; + $crop = $crop ?? false; + + $webPSrcset = $file->srcset('webp'); + $srcset = $file->srcset(); + $src = $file->url(); + $width = $file->resize(1800)->width(); + $height = $file->resize(1800)->height(); + $class = isset($class) ? 'class="' . $class . '"': ''; + $lazy = $lazy ?? true; + $span = isset($span) ? 'style="--span: ' . $span . ';"': ''; + ?> + + + + data-id="uuid() ?>" orientation="orientation() ?>"> + + + <?= $alt?> +
+
+ diff --git a/site/templates/product.php b/site/templates/product.php new file mode 100644 index 0000000..5fe6b40 --- /dev/null +++ b/site/templates/product.php @@ -0,0 +1,42 @@ + +
+
+
+

title() ?>

+

price() ?>

+
+ +
+ description() ?> +
+ + options()->isNotEmpty()): ?> +
+ options()->toEntries() as $option): ?> + + +
+ + + +
+ +
+ \ No newline at end of file diff --git a/site/templates/support.php b/site/templates/support.php index 0ac014d..40d3e6e 100644 --- a/site/templates/support.php +++ b/site/templates/support.php @@ -153,7 +153,7 @@

title() ?>

description() ?> - +