Skip to content

Commit 1d4ade0

Browse files
Lisofffaalsakhaev
authored andcommitted
feat: added RevolutionarySection
1 parent 7b1962f commit 1d4ade0

File tree

6 files changed

+107
-16
lines changed

6 files changed

+107
-16
lines changed

website/src/components/HomePage/ExamplesFirstSection.module.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
font-size: var(--fs-14-16);
122122
line-height: 1.49;
123123
white-space: pre-line;
124+
opacity: 0.7;
124125
}
125126

126127

@@ -160,11 +161,11 @@
160161
}
161162

162163
@media (max-width: 950px) {
163-
.labelImg{
164+
.labelImg {
164165
display: none;
165166
}
166-
167-
.label{
167+
168+
.label {
168169
display: none;
169170
}
170171
}
@@ -188,11 +189,11 @@
188189
}
189190
}
190191

191-
.content{
192+
.content {
192193
max-width: none;
193194
}
194195

195-
.imageContainer{
196+
.imageContainer {
196197
max-width: none;
197198
}
198199
}

website/src/components/HomePage/HeroSection.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { useEffect, useRef } from 'react';
22
import { Button } from '../Button';
33
import styles from './HeroSection.module.scss';
44
import SupportedBySection from './SupportedBySection';
5-
import { HomeTitle } from '@/constants/constantsText';
65
import { ThemeImage } from '../ThemeImage';
76
import cn from 'classnames';
87
import gsap from 'gsap';
@@ -79,7 +78,9 @@ const HeroSection = () => {
7978
The Home <br />
8079
of Mutable Web
8180
</h1>
82-
<p className={styles.subtitle}>{HomeTitle.subtitle}</p>
81+
<p className={styles.subtitle}>Dapplets Project&nbsp;&mdash; open source platform that enables small applications (dapplets)
82+
to&nbsp;run on&nbsp;top of&nbsp;any existing website, extending its functionality
83+
and adding new services to&nbsp;the website on&nbsp;the fly.</p>
8384
</header>
8485
<div className={styles.buttons} ref={buttonsContainerRef}>
8586
<Button
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.wrapper {
2+
padding: 5rem 1.25rem 0;
3+
display: flex;
4+
align-items: center;
5+
justify-content: space-between;
6+
max-width: 75rem;
7+
margin: 0 auto;
8+
gap: 1.5rem;
9+
10+
}
11+
12+
.title {
13+
font-size: var(--fs-24-48);
14+
font-weight: 600;
15+
line-height: 1;
16+
margin: 0;
17+
18+
&--color {
19+
color: var(--red-db);
20+
}
21+
}
22+
23+
.subtitle {
24+
margin-top: .75rem;
25+
font-size: var(--fs-14-16);
26+
line-height: 1.49;
27+
opacity: 0.7;
28+
max-width: 22.5rem;
29+
}
30+
31+
.article {
32+
max-width: 51.25rem;
33+
width: 100%;
34+
border-radius: .625rem;
35+
padding: 2.5rem 1.25rem;
36+
background-color: var(--grey-de);
37+
backdrop-filter: blur(1.25rem);
38+
}
39+
40+
.text {
41+
font-size: var(--fs-14-16);
42+
line-height: 1.49;
43+
opacity: 0.7;
44+
display: block;
45+
margin-top: .5rem;
46+
47+
&--hilight {
48+
color: var(--black-22);
49+
opacity: 1;
50+
margin-top: 1.5rem;
51+
}
52+
}
53+
54+
@media (max-width:1185px) {
55+
.wrapper {
56+
display: block;
57+
margin: 0 auto;
58+
}
59+
60+
.article{
61+
margin-top: 2.5rem;
62+
max-width: none;
63+
}
64+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import React, { FC } from 'react';
2+
import styles from './RevolutionarySection.module.scss';
3+
import cn from 'classnames';
4+
5+
6+
const RevolutionarySection:FC = () => {
7+
return (
8+
<section className={styles.wrapper}>
9+
<header className={styles.titleBlock}>
10+
<h2 className={styles.title}>
11+
why is&nbsp;it<br />
12+
<span className={cn(styles.title, styles['title--color'])}>revolutionary</span>
13+
14+
</h2>
15+
<p className={styles.subtitle}>It&nbsp;enables applications you have never seen before,
16+
all without asking anyone&rsquo;s permission!</p>
17+
</header>
18+
<article className={styles.article}>
19+
<p className={styles.text}><b>Users&nbsp;</b>&mdash; can now customize existing sites as&nbsp;they wish and follow custom&nbsp;UX created by&nbsp;developers.</p>
20+
<p className={styles.text}><b>Developers&nbsp;</b>&mdash; can add new contextual services to&nbsp;these sites and customize the&nbsp;UX as&nbsp;they see fit.</p>
21+
<p className={styles.text}><b>Communities&nbsp;</b>&mdash; can embed their workflows directly into other people&amp;apos;s websites, run their own economies, and earn their own money. This makes communities economically self-sustaining and resilient.</p>
22+
<p className={cn(styles.text, styles['text--hilight'])}>The Mutable Web initiates a&nbsp;permissionless, global shift from the traditional legacy Web toward Web3, driven by&nbsp;token-based incentives and decentralized governance.</p>
23+
</article>
24+
</section>
25+
);
26+
};
27+
28+
export default RevolutionarySection;

website/src/constants/constantsText.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,28 @@ export const getStartedLinks = [
2929
},
3030
];
3131

32-
export const HomeTitle = {
33-
title: `The Home
34-
of Mutable Web`,
35-
subtitle: `Dapplets Project - open-source platform which empowers developers to create a community-driven web, giving users and developers the ability to take control of the UX/UI on any existing websites.`,
36-
};
3732

3833
export const Examples = [
3934
{
4035
title:'Xen/Aigency',
4136
description:'Xen/Aigency\u00A0- is\u00A0your private\u00A0AI assistant that uses your custom set of\u00A0agents for inference.\nXen uses Mutable Web to\u00A0capture user context and render agentic output back into the web page, extending its\u00A0UX on\u00A0the fly.',
42-
labelTop:{
37+
labelBottom:{
4338
label:'Embeds agentic output',
4439
subLabel:'on the fly'
4540
},
46-
labelBottom:{
41+
labelTop:{
4742
label:'Captures user context',
4843
subLabel:'on the fly'
4944
}
5045
},
5146
{
5247
title:'YouSure',
5348
description:'YouShure\u00A0- embeds seamlessly prediction markets into social networks so\u00A0that every statement posted can be\u00A0challenged with a\u00A0bet for money or\u00A0reputation. It\u00A0promotes responsible communication so\u00A0that bullshit posters lose either reputation or\u00A0money, or\u00A0both.',
54-
labelBottom:{
49+
labelTop:{
5550
label:'Captures user context',
5651
subLabel:'on the fly'
5752
},
58-
labelTop:{
53+
labelBottom:{
5954
label:'Embeds agentic output',
6055
subLabel:'on the fly'
6156
}

website/src/pages/home/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ExamplesSection from '@/components/HomePage/ExamplesSection';
66
import FeaturesSection from '@/components/HomePage/FeaturesSection';
77
import GetStartedSection from '@/components/HomePage/GetStartedSection';
88
import ExamplesFirstSection from '@/components/HomePage/ExamplesFirstSection';
9+
import RevolutionarySection from '@/components/HomePage/RevolutionarySection';
910

1011
const Home = () => {
1112
return (
@@ -15,6 +16,7 @@ const Home = () => {
1516
>
1617
<div className={styles.wrapper}>
1718
<HeroSection />
19+
<RevolutionarySection/>
1820
<ExamplesFirstSection/>
1921
<ExamplesSection />
2022
<HowItWorksSection />

0 commit comments

Comments
 (0)