Compare commits

...

5 Commits

Author SHA1 Message Date
Juan Di Toro 874b290afa refactor: '/what-is-web3' refactor, all to tailwind 2023-08-14 17:28:43 +02:00
Juan Di Toro 115090fc56 fix: incorrect font choice on gridcell 2023-08-14 16:33:35 +02:00
Juan Di Toro f3498ec536 fix: grid cell style closer to design by centering the text 2023-08-14 16:17:51 +02:00
Juan Di Toro 3a5d778645 Merge branch 'develop' of git.lumeweb.com:LumeWeb/lumeweb.com into develop 2023-08-14 16:17:13 +02:00
Juan Di Toro a1b998e4b9 fix: gridcell style 2023-08-14 16:13:11 +02:00
15 changed files with 142 additions and 181 deletions

View File

@ -1,6 +1,6 @@
---
// import "./Grid.scss";
import GridCell from "./GridCell.astro";
import GridCell from "../../ui/GridCell.astro";
import GridContainer from "../../ui/GridContainer.astro";
const features = [
{
@ -31,18 +31,17 @@ const features = [
];
---
<section
id="grid"
class="flex flex-col md:mx-20 lg:mx-40 justify-between items-start gap-y-10 md:flex-row md:flex-wrap"
>
<div class="w-[calc(33.33%-20px)] pl-12 pt-5 mx-[10px]">
<h2 class="text-primary font-display text-4xl leading-[1.6] font-bold">
Freedom. <br /> Privacy. Ownership.
</h2>
</div>
{
features.map((feature) => (
<GridCell title={feature.title} description={feature.description} />
))
}
<section id="grid" class="mx-10 md:mx-20 lg:mx-40">
<GridContainer>
<div class="w-[calc(33.33%-20px)] pl-12 pt-5 mx-[10px]">
<h2 class="text-primary font-display text-4xl leading-[1.6] font-bold">
Freedom. <br /> Privacy. Ownership.
</h2>
</div>
{
features.map((feature) => (
<GridCell title={feature.title} description={feature.description} />
))
}
</GridContainer>
</section>

View File

@ -1,12 +1,16 @@
---
import "../../../styles/jumbotron.scss";
import backgroundSrc from "/src/assets/vision-jumbotron-bg.png";
---
<section id="jumbotron" class="relative">
<section
id="jumbotron"
class="relative w-full h-[420px] flex items-center justify-center"
>
<img
src={backgroundSrc.src}
class="-z-10 absolute left-1/2 -translate-x-1/2 w-[100em] max-w-none"
class="-z-10 absolute top-[10px] left-1/2 -translate-x-1/2 w-[100em] max-w-none"
/>
<h1 class="font-display2">Easy access to an open, user-owned web.</h1>
<h1 class="font-display2 text-4xl lg:text-5xl w-full text-center">
Easy access to an open, user-owned web.
</h1>
</section>

View File

@ -4,10 +4,7 @@ import FeaturedGroup from "../../ui/FeaturedGroup.astro";
import background from "/src/assets/double-brand-bg.png";
---
<section
id="no-vc"
class="relative flex flex-row pb-40 mx-10 md:mx-20 lg:mx-40"
>
<section id="no-vc" class="relative flex flex-row mx-10 md:mx-20 lg:mx-40">
<img
src={background.src}
class="absolute top-0 right-0 md:static -mx-10 -md:mx-20 lg:-mx-40 w-[1000px] max-h-[650px]"

View File

@ -1,34 +1,38 @@
---
import './Contribute.scss';
import mario from "/src/assets/mario-level-up.gif"
import FeaturedGroup from "../../ui/FeaturedGroup.astro";
import mario from "/src/assets/mario-level-up.gif";
import background from "/src/assets/contribute-bg.png";
import Button from "../../ui/Button.astro";
---
<section id="contribute">
<div class="feature-group">
<h2>Web3 is Community</h2>
<h3>Re-defining Web3, for the users</h3>
<p>
Web3 was a term first defined by Gavin Wood when the Ethereum network was starting out. He defined it as a
"decentralized online ecosystem based on blockchain".
</p>
<p>
However, we view it as much more than that, and definitely more than access to DeFi. We see a ton of more
potential to what Web3 as an ideal can evolve to, and are setting out to make it a reality.
</p>
<p>
To those that see Web3 as DeFi, we ask this: Do you go on your web browser to access TradingView or other market tools as your homepage, or do you go check your social media, email, and news sites, as <i>well</i> as your money?
</p>
<p>
Blockchain itself is more than just <i>money</i>, and so is Web3, and by extension P2P networks.
</p>
<p>
So help us in our goals to level-up Web3.
</p>
<div class="mario">
<img src={mario.src} alt="Mario Level Up"/>
</div>
<div>
<a href="/donate" class="btn-main">Donate</a>
</div>
</div>
<section
id="contribute"
class="py-10 px-10 md:px-20 lg:px-40 relative h-full pb-20 bg-opacity-70 bg-cover after:block after:absolute after:top-0 after:bottom-0 after:left-0 after:right-0 after:bg-black/70 after:z-0 after:pointer-events-none"
style={{
background: `url(${background.src})`,
"background-size": "cover",
}}
>
<div class="z-10 relative max-w-3xl mt-16 space-y-10">
<FeaturedGroup
subtitle="Re-defining Web3, for the users"
title="Web3 is Community"
text={[
`Web3 was a term first defined by Gavin Wood when the Ethereum network was
starting out. He defined it as a "decentralized online ecosystem based on
blockchain".`,
`However, we view it as much more than that, and definitely more than
access to DeFi. We see a ton of more potential to what Web3 as an ideal
can evolve to, and are setting out to make it a reality.`,
`To those that see Web3 as DeFi, we ask this: Do you go on your web browser
to access TradingView or other market tools as your homepage, or do you go
check your social media, email, and news sites, as <i>well</i> as your money?`,
`Blockchain itself is more than just <i>money</i>, and so is Web3, and by
extension P2P networks.`,
`So help us in our goals to level-up Web3.`,
]}
/>
<img src={mario.src} alt="Mario Level Up" />
<Button label="Donate" href="/donate" />
</div>
</section>

View File

@ -1,35 +0,0 @@
@import "/src/styles/vars.scss";
#contribute {
position: relative;
display: flex;
align-items: center;
min-height: 71.1em;
background: $color-blue-charcoal;
&::before {
content: "";
position: absolute;
inset: 0;
background-image: url("/src/assets/contribute-bg.png");
background-position: 50%;
background-size: cover;
}
&::after {
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.75);
}
.feature-group {
max-width: 72em;
margin: 9em 7.5%;
z-index: 1;
}
.mario {
margin-top: 2.5em;
}
}

View File

@ -1,28 +1,42 @@
---
import './Grid.scss';
import GridCell from "../../ui/GridCell.astro";
import GridContainer from "../../ui/GridContainer.astro";
const features = [
{
title: "Access the markets, aka DeFi",
description:
"Web3 commonly get mixed up with DeFi, however, while you should be able to access any decentralized website or network, access to DeFi to manage your money is critical as well.",
},
{
title: "Access any decentralized or P2P network",
description:
"The basics of Web3 is the sum of all the open networks and ecosystems. You should be able to access and visit any of these places. You can compare this to accessing things on Google, Facebook, Apple, or other networks/platforms that are generally walled gardens in the current web system.",
},
{
title: "Publish Freely",
description:
'A core tenant of Web3 is censorship-resistance. You should be able to freely post controversial (or even things others just don\'t want to hear) information, such as news, blogging, or video. You should be allowed to openly debate, educate, inform, or entertain without getting "de-platformed".',
},
{
title: "Socialize and Discover Freely",
description:
"While you have the ability to post, you should also have the ability to read.",
},
{
title: "Own your web. Own your identity.",
description:
"You should be able to have your private data be and stay private unless you choose otherwise. This is achieved with your online web3 account, which serves as your identity and means of encrypting everything you do. If you want to share you can, but your data is yours, no one else's.",
},
];
---
<section id="grid" class="feature-grid">
<div>
<h3>Access the markets, aka DeFi</h3>
<p>Web3 commonly get mixed up with DeFi, however, while you should be able to access any decentralized website or network, access to DeFi to manage your money is critical as well.</p>
</div>
<div>
<h3>Access any decentralized or P2P network</h3>
<p>The basics of Web3 is the sum of all the open networks and ecosystems. You should be able to access and visit any of these places.</p>
<p>You can compare this to accessing things on Google, Facebook, Apple, or other networks/platforms that are generally walled gardens in the current web system.</p>
</div>
<div>
<h3>Publish Freely</h3>
<p>A core tenant of Web3 is censorship-resistance. You should be able to freely post controversial (or even things others just don't want to hear) information, such as news, blogging, or video. You should be allowed to openly debate, educate, inform, or entertain without getting "de-platformed".</p>
</div>
<div>
<h3>Socialize and Discover Freely</h3>
<p>While you have the ability to post, you should <i>also</i> have the ability to <i>read</i>.</p>
</div>
<div>
<h3>Own your web. Own your identity.</h3>
<p>You should be able to have your private data <b>be</b> and <b>stay</b> private unless you choose otherwise. This is achieved with your online web3 account, which serves as your identity and means of encrypting everything you do.</p>
<p>If you want to share you can, but your data is yours, no one else's.</p>
</div>
<section id="grid" class="mx-10 md:mx-20 lg:mx-40">
<GridContainer>
{
features.map((feature) => (
<GridCell description={feature.description} title={feature.title} />
))
}
</GridContainer>
</section>

View File

@ -1,3 +0,0 @@
#grid {
margin-bottom: 1.2em;
}

View File

@ -1,9 +1,17 @@
---
import '../../../styles/jumbotron.scss';
import backgroundSrc from "/src/assets/whatsweb3-jumbotron-bg.png";
---
<section id="jumbotron">
<h1>
An evolved, user-owned web where you have access to the world in a way only you control.
<section
id="jumbotron"
class="relative w-full h-[420px] flex items-center justify-center"
>
<img
src={backgroundSrc.src}
class="-z-10 absolute top-[50px] left-1/2 -translate-x-1/2 w-[100em] max-w-none"
/>
<h1 class="font-display2 text-4xl lg:text-5xl w-full max-w-5xl text-center">
An evolved, user-owned web where you have access to the world in a way only
you control.
</h1>
</section>

View File

@ -1,16 +1,19 @@
---
import './NewWorld.scss';
import FeaturedGroup from "../../ui/FeaturedGroup.astro";
import backgroundSrc from "/src/assets/new-world-bg.png";
---
<section id="new-world">
<div>
<div class="feature-group">
<h2>Community-Powered</h2>
<h3>Your Web, Your Rules</h3>
<p>
In summary, Web3 is about what you want to do, post, read, play, chat, or interact without others saying
otherwise. It is about freedom of speech <i>and</i> freedom of economy.
</p>
</div>
</div>
<section id="new-world" class="mx-10 md:mx-20 lg:mx-40 relative h-[850px]">
<div class="-z-10 absolute top-0 right-0 bottom-0 w-[1500px] -mx-40 h-full">
<img class="object-cover w-full max-w-none" src={backgroundSrc.src} />
</div>
<div class="float-right max-w-3xl mt-[25%]">
<FeaturedGroup
subtitle="Your Web, Your Rules"
title="Community-Powered"
text={[
"In summary, Web3 is about what you want to do, post, read, play, chat, or interact without others saying otherwise. It is about freedom of speech <i>and</i> freedom of economy.",
]}
/>
</div>
</section>

View File

@ -1,28 +0,0 @@
@import "/src/styles/vars.scss";
#new-world {
> div {
position: relative;
display: flex;
justify-content: flex-end;
align-items: center;
max-width: 185.6em;
min-height: 75em;
margin: 0 auto;
&::before {
content: "";
position: absolute;
inset: 0;
background-image: url("/src/assets/new-world-bg.png");
background-position: 50%;
background-size: cover;
z-index: -1;
}
}
.feature-group {
max-width: 64em;
margin: 9em 7.5%;
}
}

View File

@ -7,8 +7,10 @@ export interface Props {
const { title, description } = Astro.props;
---
<div class="lg:w-[calc(33.33%-20px)] p-10 bg-black mx-[10px] space-y-5">
<h3 class="font-display text-xl md:text-2xl">
<div
class="md:w-full h-full p-10 rounded-md bg-black mx-[10px] space-y-5 hover:ring-2 ring-primary transition-all flex flex-col justify-center"
>
<h3 class="font-body text-xl md:text-3xl">
{title}
</h3>
<p class="text-lg md:text-xl text-body font-body">

View File

@ -0,0 +1,5 @@
<div
class="flex flex-col justify-between items-start gap-y-10 md:grid md:grid-cols-3 md:gap-x-10 md:gap-y-10"
>
<slot />
</div>

View File

@ -51,7 +51,7 @@ const { view, title } = Astro.props;
</head>
<body class="max-w-[1600px] mx-auto">
<Navbar view={view} />
<main class={view + " space-y-40 overflow-x-hidden relative "}>
<main class={view + " space-y-40 overflow-x-hidden relative mb-20"}>
<slot />
</main>
{view !== "home" && <JoinCommunity />}

View File

@ -248,21 +248,6 @@ a, button {
}
}
main.what {
&::before {
content: "";
position: absolute;
top: -2em;
left: 50%;
width: 151.3em;
height: 122.4em;
background: url("/src/assets/what-bg.png");
background-size: contain;
transform: translate(-50%, 0);
z-index: -1;
}
}
main.donate {
&::before {
content: "";

View File

@ -1,18 +1,24 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
variants: {
extend: {
boxShadow: ['active']
}
},
theme: {
extend: {
colors: {
primary: 'var(--color-aquamarine)',
"dark-aquamarine": 'var(--color-dark-aquamarine)',
body: 'var(--color-gray)',
},
"gradient-aqua": "linear-gradient(to right, var(--color-dark-aquamarine), var(--color-aquamarine))",
}
},
fontFamily: {
'body': '"Jaldi", sans-serif',
'display': '"JetBrains Mono", monospace',
'display2': '"IBM Plex Sans Devanagari", monospace',
}
}
},
},
}