This commit is contained in:
2024-09-19 12:57:43 +04:00
parent dd653badcb
commit b42f05d4d6
6 changed files with 173 additions and 165 deletions

View File

@@ -13,6 +13,7 @@ Staging: www2.threefold.io (development branch)
Last Updated: May 2023 Last Updated: May 2023
## Administrators ## Administrators
[ThreeFold's Web Admins](https://github.com/orgs/threefoldfoundation/teams/team_web_admin) [ThreeFold's Web Admins](https://github.com/orgs/threefoldfoundation/teams/team_web_admin)
## Contribution Procedure ## Contribution Procedure
@@ -47,15 +48,22 @@ To do that, the following prerequisites are needed:
Then clone the repository recursively to also pull in contents of `threefold_data`: Then clone the repository recursively to also pull in contents of `threefold_data`:
``` ```bash
git clone --recursive https://github.com/threefoldfoundation/www_threefold_io.git #if you don't have hero installed yet, run the following commands
``` curl https://raw.githubusercontent.com/freeflowuniverse/crystallib/development/scripts/install_hero.sh > /tmp/hero_install.sh
bash /tmp/hero_install.sh
Now run `build.sh` to download Tailwind, build the CSS, and also build the site with Zola: #install zola & tailwind
hero installers -n zola
#get this repo be careful --pr will remove all local changes (pull reset), -b development means we are on the development branch
hero git pull -u https://github.com/threefoldfoundation/www_threefold_io -b development -pr
#cd to the directory
eval $(hero git cd -u https://github.com/threefoldfoundation/www_threefold_io)
```
cd www_threefold_io
bash build.sh bash build.sh
``` ```
Finally, start a browsable local copy of the site that will respond to changes in the source files like this: Finally, start a browsable local copy of the site that will respond to changes in the source files like this:

View File

@@ -1,46 +1,26 @@
#/bin/bash
set -ex
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd ${BASE_DIR}
echo "Starting build..." echo "Starting build..."
# TODO: Check if current version is latest to avoid redundant installation hero installers -n zola
if [[ -f "tailwindcss" ]]
then
echo "Tailwind installed"
else
# rm tailwindcss
# 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
fi
# initialized and configures tailwind if not configured # initialized and configures tailwind if not configured
echo "Initializing tailwind..." echo "Initializing tailwind..."
if [[ ! -f "tailwind.config.js" ]] if [[ ! -f "tailwind.config.js" ]]
then then
./tailwindcss init tailwindcss init
sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js
fi fi
# compiles tailwind css for prod & builds project # compiles tailwind css for prod & builds project
echo "Compiling tailwindcss and building zola project..." echo "Compiling tailwindcss and building zola project..."
rm -rf public static/css rm -rf public static/css
./tailwindcss -i css/index.css -o ./static/css/index.css --minify tailwindcss -i css/index.css -o ./static/css/index.css --minify
zola build zola build

View File

@@ -1,5 +1,6 @@
# The URL the site will be built for # The URL the site will be built for
base_url = "https://dev.threefold.io" # base_url = "https://dev.threefold.io"
base_url = "http://localhost:1111"
# Change this to your own URL! Please note this variable **must** be uncommented . # Change this to your own URL! Please note this variable **must** be uncommented .
title = "ThreeFold" title = "ThreeFold"

View File

@@ -27,10 +27,14 @@ extra:
#### <span class="text-xl subtitle">A STRONG VISION FOR THE FUTURE</span> #### <span class="text-xl subtitle">A STRONG VISION FOR THE FUTURE</span>
## **The Internet as Hope for Humanity** ## **The Internet as <br>Hope for Humanity**
The project was started by some Internet & Cloud veterans who believe that the Internet represents an amazing opportunity. We are a group of passionate people building a new foundational layer for a better Internet, more like how the Internet was originally intended to be. ThreeFold was started by a group of passionate Internet & Cloud veterans who wants to restore the Internet to its original glory.
<br><br>
*The Internet is a network of computers which are typically hosted in large datacenters. These datacenters are owned by a few large corporations. This is not how the Internet was designed. The Internet was designed to be decentralized, open and available to everyone.*
<br><br>
**We have invented a new Data, Cloud and Network system <br>as an engine for an upgraded Internet.**
<br> <br>
@@ -46,40 +50,31 @@ The project was started by some Internet & Cloud veterans who believe that the I
</div> </div>
<!-- section 3 -->
<!-- section 5 -->
<div style="background-color:#F6F6F6"> <div style="background-color:#F6F6F6">
<div class="container mx-auto"> <div class="container mx-auto">
{% row( style="center between margin") %} {% row( style="mtop") %}
#### <span class="green_text uppercase">OUR MISSION & VISION</span> #### <span class="blue uppercase">ROADMAP</span>
## **Empowering <span class="blue"> Human Potential</span>** ## **Expanding ThreeFold**
<br> {% end %}
Our mission is to empower individuals and organizations with secure, private, and <br>autonomous access to computing resources, ensuring fair cloud access for everyone. {% roadmap() %}
<br> ## **roadmap**
We envision a global, community-driven network of interconnected servers and nodes—the grid—that democratizes <br>computing power and storage. This decentralized infrastructure fosters innovation, digital sovereignty, and an equitable internet, where users fully control their data and interactions.
<br>
Through our token, we support an open ecosystem that facilitates the seamless exchange of internet capacity, <br>fostering a new digital era of sovereignty, security, privacy, and inclusivity.
{% end %} {% end %}
@@ -89,6 +84,8 @@ Through our token, we support an open ecosystem that facilitates the seamless ex
</div> </div>
<!-- section 2 our Story --> <!-- section 2 our Story -->
@@ -142,110 +139,19 @@ In response, we came together with a shared mission- to design a revolutionary d
<br> <br>
As we embark on the expansion and commercialization phase, the ThreeFold Grid is in its third generation and live ±60 countries, significant milestones in our ongoing commitment to redefine the future of the digital landscape. The ThreeFold Grid is in its third generation and live in +50 countries.
<br> <br>
We are at the start of a journey to millions of nodes and will launch soon the fourth generation of the Grid- Project Internet Capacity. We are at the start of a journey to millions of nodes and will launch soon the fourth generation the ThreeFold grid.
For this a new token called INCA has been created.
{% end %} {% end %}
<!-- section 6 TEAM -->
<!-- section 2 Deploy -->
{% row( style="center semiNarrow") %}
#### <span class="blue">KEY ACHIEVEMENTS TO DATE</span>
## **Milestones in Our Journey**
{% end %}
{% row( style="semiNarrow mbottom") %}
<p class="bg-gray-50 p-2 road_border">The ThreeFold Grid: connected across ±60 countries by independent people and organizations called ThreeFold farmers, live and usable in its third generation technology
</p>
<br>
<p class="bg-gray-50 p-2 road_border">Partnerships with the governments of Tanzania, to deploy physical infrastructure and introducing coding academies and innovation hubs across the country, and Zanzibar, to deploy physical infrastructure locally and introduce a digital free zone
</p>
<br>
<p class="bg-gray-50 p-2 road_border">An extensive community of 1000+ farmers and several thousand others token holders, grid users, and supporters / advocates of the project
</p>
<br>
<p class="bg-gray-50 p-2 road_border">Our strategic partnerships with key DePIN players: more will be announced soon</p>
{% end %}
</div>
</div>
<!-- section 5 -->
<div style="background-color:#F6F6F6">
<div class="container mx-auto">
{% row( style="mtop") %}
#### <span class="blue uppercase">ROADMAP</span>
## **Expanding ThreeFold**
{% end %}
{% roadmap() %}
## **roadmap**
{% end %}
</div>
</div>
<!-- section 6 -->
<div class="container mx-auto"> <div class="container mx-auto">
@@ -437,8 +343,108 @@ We are a dedicated group committed to advancing a new digital era. Some of us ha
{% end %} {% end %}
<!-- section ACHIEVEMENTS -->
{% row( style="center semiNarrow") %}
#### <span class="blue">KEY ACHIEVEMENTS TO DATE</span>
## **Milestones in Our Journey**
{% end %}
{% row( style="semiNarrow mbottom") %}
<p class="bg-gray-50 p-2 road_border">The ThreeFold Grid: connected across +50 countries by independent people and organizations called ThreeFold farmers, live and usable in its third generation opensource technology.
</p>
<br>
<p class="bg-gray-50 p-2 road_border">Partnerships with governments, to deploy physical infrastructure and introducing coding academies and innovation hubs across the country, to deploy physical infrastructure locally.
</p>
<br>
<p class="bg-gray-50 p-2 road_border">An extensive community of 1000+ farmers and several thousand others token holders, grid users, and supporters / advocates of the project
</p>
<br>
<p class="bg-gray-50 p-2 road_border">Our strategic partnerships with key DePIN players: more will be announced soon</p>
<br>
<p class="bg-gray-50 p-2 road_border">A new token launch called INCA. INCA is the fuel of our ThreeFold Grid.</p>
{% end %}
</div>
</div>
<!-- section 3 -->
<div style="background-color:#F6F6F6">
<div class="container mx-auto">
{% row( style="center between margin") %}
#### <span class="green_text uppercase">OUR MISSION & VISION</span>
## **Empowering <span class="blue"> Human Potential</span>**
<br>
*We believe that the Internet should be affordable, accessible, and available to everyone on the planet.*
<br>
We envision a global, community-driven network of interconnected computers that democratizes the deployment of the Internet.
<br>
Through a token we support an open ecosystem that facilitates the seamless exchange of internet network, data and cloud capacity.
<br>
**This internet needs to be available in every region, reliable, secure, private, and sustainable.**
{% end %}
</div>
</div>

View File

@@ -21,16 +21,24 @@ extra:
{% row(style="reverse header margin") %} {% row(style="reverse header margin") %}
#### <span class="text-xl subtitle">HELLO THREEFOLD</span> #### <span class="text-xl subtitle">THREEFOLD</span> <br>
## **Evolving the Internet, Together** ## **"BE THE INTERNET"**
**We are not dreaming about a new Internet, we are building it.**
We envision the Internet as a free-flowing, global network of authentic information connecting everyone, everywhere, and unlocking the unlimited potential of humanity. This vision is within reach and we are building it as we speak. All are welcomed to join. <br>
The internet began as a free, open network for all.
<br>Now it's controlled by big tech, centralized, and only available to about half of the planet.
<br>
<br>**The Internet needs a new plumbing layer: free, private, and secure**. <br><br>
*ThreeFold has developed a decentralized self healing, secure cloude engine which has the potential to make the Internet available to everyone on this planet.*
<br/> <br/>
<br>
<button class="blue_b">[Host](/host)</button><button class="blue_b">[Deploy](/deploy)</button><button class="green">[About](/about)</button> <button class="blue_b">[Host](/host)</button><button class="blue_b">[Deploy](/deploy)</button><button class="green">[About](/about)</button>

View File

@@ -1,25 +1,30 @@
# builds if executable isn't foound #/bin/bash
if [ ! -f "tailwindcss" ] set -ex
then
sh build.sh BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
fi cd ${BASE_DIR}
hero installers -n zola
# initialized and configures tailwind if not configured # initialized and configures tailwind if not configured
if [ ! -f "tailwind.config.js" ] if [ ! -f "tailwind.config.js" ]
then then
./tailwindcss init tailwindcss init
sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js
fi fi
# compiles tailwind css & launches locally # compiles tailwind css & launches locally
rm -rf public static/css rm -rf public static/css
./tailwindcss -i css/index.css -o ./static/css/index.css --watch & zola serve & tailwindcss -i css/index.css -o ./static/css/index.css --watch & zola serve &
# compiles tailwind css for prod & builds project # compiles tailwind css for prod & builds project
./tailwindcss -i css/index.css -o ./static/css/index.css --minify tailwindcss -i css/index.css -o ./static/css/index.css --minify
zola build
# kills zola and tw bg processes on interrupt killall zola
trap 'kill $(jobs -p); exit 1' INT
wait zola serve
# # kills zola and tw bg processes on interrupt
# trap 'kill $(jobs -p); exit 1' INT
# wait