diff --git a/.github/workflows/tf_update.yml b/.github/workflows/tf_update.yml index 1bed507..8ed51a9 100644 --- a/.github/workflows/tf_update.yml +++ b/.github/workflows/tf_update.yml @@ -1,22 +1,43 @@ +<<<<<<< HEAD name: Ourworld.tf on: push: branch: [ master ] +======= +name: freeflow.life +on: + push: + branch: [ development ] +>>>>>>> template/master jobs: job_one: name: Deploy runs-on: ubuntu-latest steps: +<<<<<<< HEAD - name: pushing latest change on www.ourworld.tf uses: appleboy/ssh-action@master with: host: www.ourworld.tf +======= + - name: pushing latest change on www2.freeflow.life + uses: appleboy/ssh-action@master + with: + host: www2.freeflow.life +>>>>>>> template/master username: root key: ${{ secrets.TF_SECRET }} port: 22 script: | +<<<<<<< HEAD cd /opt/www_ourworld_tf/ git log -1 git pull npm run build +======= + cd /opt/www_freeflow_life + git log -1 + git pull + bash build.sh +>>>>>>> template/master diff --git a/.gitignore b/.gitignore index 07feb71..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +0,0 @@ -/public -/.vscode -# Local Netlify folder -/.netlify -/node_modules -/static/css \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..fae6947 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,7 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) +# and commit this file to your remote git repository to share the goodness with others. + +tasks: + - init: sh build + command: sh build diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..3e11e8e --- /dev/null +++ b/build.sh @@ -0,0 +1,44 @@ +echo "Starting build..." + +# TODO: Check if current version is latest to avoid redundant installation +if [[ -f "tailwindcss" ]] +then + rm tailwindcss +fi + +# checks os and architecture for correct release +# https://stackoverflow.com/a/8597411 +echo "Installing & building tailwind..." +ASSET="tailwindcss" + +if [[ "$OSTYPE" == "linux-gnu"* ]]; then + ASSET="$ASSET-linux" +elif [[ "$OSTYPE" == "darwin"* ]]; then + ASSET="$ASSET-macos" +fi +if [[ "$(uname -m)" == "x86_64"* ]]; then + ASSET="$ASSET-x64" +elif [[ "$(uname -m)" == "arm64"* ]]; then + ASSET="$ASSET-arm64" +fi + +curl -sLO "https://github.com/tailwindlabs/tailwindcss/releases/latest/download/${ASSET}" +chmod +x $ASSET +mv $ASSET tailwindcss + + +# initialized and configures tailwind if not configured +echo "Initializing tailwind..." +if [[ ! -f "tailwind.config.js" ]] +then + ./tailwindcss init + sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js +fi + +# compiles tailwind css for prod & builds project +echo "Compiling tailwindcss and building zola project..." +rm -rf public static/css +./tailwindcss -i css/index.css -o ./static/css/index.css --minify +zola build + + diff --git a/config.toml b/config.toml index 205f933..818a2ce 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ # The URL the site will be built for -base_url = "https://liquiditypool.threefold.io" +base_url = "https://ourworld.tf" # Change this to your own URL! Please note this variable **must** be uncommented. title = "ThreeFold" diff --git a/css/layout.css b/css/layout.css index a8e08b5..574c21b 100644 --- a/css/layout.css +++ b/css/layout.css @@ -2,6 +2,18 @@ main { @apply pt-0; } +<<<<<<< HEAD +======= +#text-1xl { @apply text-xl } +#text-2xl { @apply text-2xl } +#text-3xl { @apply text-3xl } +#text-4xl { @apply text-4xl } +#text-5xl { @apply text-5xl } +#text-6xl { @apply text-6xl } +#text-7xl { @apply text-7xl } +#text-8xl { @apply text-8xl } + +>>>>>>> template/master /* html, body { @apply dark:bg-black; @@ -120,6 +132,7 @@ h5, .h5, h6, .h6 { +<<<<<<< HEAD @apply font-sans leading-none tracking-tight; } @@ -137,6 +150,11 @@ h6, .h6, h1, +======= +} + +h1, +>>>>>>> template/master .h1 { @apply text-4xl font-extrabold; } diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..ac927fd --- /dev/null +++ b/start.sh @@ -0,0 +1,25 @@ +# builds if executable isn't foound +if [[ ! -f "tailwindcss" ]] +then + sh build.sh +fi + +# initialized and configures tailwind if not configured +if [[ ! -f "tailwind.config.js" ]] +then + ./tailwindcss init + sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js +fi + +# compiles tailwind css & launches locally +rm -rf public static/css +./tailwindcss -i css/index.css -o ./static/css/index.css --watch & zola serve & + +# compiles tailwind css for prod & builds project +./tailwindcss -i css/index.css -o ./static/css/index.css --minify +zola build + +# kills zola and tw bg processes on interrupt +trap 'kill $(jobs -p); exit 1' INT +wait + diff --git a/templates/_default/base.html b/templates/_default/base.html index 1e64aa0..a21fd71 100644 --- a/templates/_default/base.html +++ b/templates/_default/base.html @@ -1,5 +1,6 @@ +<<<<<<< HEAD {% include "partials/head.html" %}
@@ -9,4 +10,16 @@ +======= + + {% include "partials/head.html" %} + + + {% include "partials/header.html" %} +