From d0e823d6996387cade6e163eb9f1a8c06002935c Mon Sep 17 00:00:00 2001 From: despiegk Date: Sat, 23 Nov 2024 05:31:33 +0300 Subject: [PATCH] ... --- build.sh | 48 ++++++++++++++++++++++++---- templates/partials/why/timeline.html | 33 +++++++++---------- 2 files changed, 59 insertions(+), 22 deletions(-) diff --git a/build.sh b/build.sh index 000503f1d..8f7469227 100755 --- a/build.sh +++ b/build.sh @@ -1,10 +1,46 @@ -#!/bin/bash -set -ex +echo "Starting build..." -export BASE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -cd "${BASE}" +SOURCE=${BASH_SOURCE[0]} +DIR_OF_THIS_SCRIPT="$( dirname "$SOURCE" )" +ABS_DIR_OF_SCRIPT="$( realpath $DIR_OF_THIS_SCRIPT )" + +# 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 -source env.sh +# 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 -zola serve \ No newline at end of file +# 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 --root $ABS_DIR_OF_SCRIPT build \ No newline at end of file diff --git a/templates/partials/why/timeline.html b/templates/partials/why/timeline.html index b1a8967dc..c230e9719 100644 --- a/templates/partials/why/timeline.html +++ b/templates/partials/why/timeline.html @@ -42,14 +42,14 @@
Phase II
-
Traction & Expansion
+
Global Proof Of Concept
Open Source Development -
60+ Countries -
30,000+ Cores -
30,000,000 GB of Storage -
Signed with Government of ZNZ for a digital FreeZone and Connected Charter City -
Multiple global partners want to be part of the global expansion +
50+ Countries +
50,000+ Cores +
25,000,000 GB of Storage +
Decentralized reliable compute, network and storage layer for Web 2-3 +
Commitments from wonderful projects to build on top of us.
@@ -63,15 +63,16 @@
-
Current Phase
+
2025
-
ThreeFold Commercialization
+
ThreeFold Web4
- Launch Web 4 -
Introduce a Web4 Phone & Router -
Introduce the unbreakable network and storage layer for Web 4 -
Build a network of commercial farmers for optimal performance and uptime + Introduce a Web4 Phone & Router +
Web4 smart contracts for the Web3 world.
Expand the network to +1 Million Nodes +
Quantum Safe Compute, Storage & Network for agent centric Web 4. +
Build a network of commercial farmers for optimal performance and uptime +
@@ -85,13 +86,13 @@
-
Final Phase
+
The Result
Sovereignty for All
- Internet for All -
Data Sovereignty -
Decentralization & Digitization for billions + An upgraded Internet for Billions. +
A planet and people first hybrid of Humans and Machines deliver +
on the promise of Augmented Collective Intelligence