Skip to content

Commit a93beaf

Browse files
committed
The future is coming
1 parent 4e6ac43 commit a93beaf

File tree

5 files changed

+115
-2
lines changed

5 files changed

+115
-2
lines changed

src/App.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import { GSAbout } from "@components/GSAbout"
2-
import { Hero } from "@components/Hero"
31
import { Navbar } from "@components/Navbar"
2+
import { Hero } from "@components/Hero"
3+
import { Future } from "@components/Future"
4+
import { GSAbout } from "@components/GSAbout"
45

56
export function App() {
67
return (<>
78
<Navbar />
89
<Hero />
10+
<Future />
911
<GSAbout />
1012
</>)
1113
}

src/components/Future/index.jsx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { Section } from "@components/Section";
2+
import { RectangleGoggles } from "lucide-react";
3+
4+
export function Future() {
5+
const contents = [
6+
[
7+
"The future of programming is not just about writing code,",
8+
"it's much more about logic, creativity, and problem-solving,",
9+
"and not about the syntax.",
10+
].join(" "),
11+
[
12+
"GraphScript is a new ecosystem that will (in the future) allow you to",
13+
"develop applications without writing code, in a visual and intuitive way.",
14+
].join(" "),
15+
[
16+
"It will be very easy to use, in desktops, web and most importantly,",
17+
"in virtual and augmented reality(in the future).",
18+
].join(" "),
19+
];
20+
21+
return (<>
22+
<Section
23+
icon={<RectangleGoggles />}
24+
name="The Future of Programming is Coming!"
25+
>
26+
{contents.map(text => <p key={text}>{text}</p>)}
27+
</Section>
28+
</>);
29+
}
30+

src/components/Navbar/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
font-size: 1.2rem;
2929
position: relative;
3030
background: var(--gradient);
31+
opacity: 0.5;
32+
}
33+
34+
.nav-links:hover {
35+
opacity: 1;
3136
}
3237

3338
.nav-link {

src/components/Section/index.jsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import "./style.css";
2+
3+
export function Section({
4+
icon,
5+
name,
6+
children,
7+
}) {
8+
return (<>
9+
<div className="section">
10+
<div className="section-icon">{icon}</div>
11+
12+
<div className="section-content">
13+
<div className="section-name">
14+
{name}
15+
</div>
16+
17+
<div className="section-description">
18+
{children}
19+
</div>
20+
</div>
21+
</div>
22+
</>);
23+
}
24+

src/components/Section/style.css

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
.section {
2+
display: flex;
3+
padding: 4rem;
4+
gap: 4rem;
5+
align-items: start;
6+
}
7+
8+
.section-icon {
9+
flex: 1;
10+
padding: 0rem 5rem;
11+
position: sticky;
12+
top: 0;
13+
display: flex;
14+
flex-direction: column;
15+
align-items: stretch;
16+
}
17+
18+
.section-icon > * {
19+
width: 100%;
20+
height: 100%;
21+
}
22+
23+
.section-content {
24+
flex: 2;
25+
padding: 4rem;
26+
display: flex;
27+
flex-direction: column;
28+
justify-content: center;
29+
align-items: center;
30+
gap: 4rem;
31+
}
32+
33+
.section-name {
34+
background: var(--gradient);
35+
display: flex;
36+
padding: 1rem 2rem;
37+
border-radius: 1rem;
38+
font-size: 2.5rem;
39+
font-weight: 600;
40+
}
41+
42+
.section-description {
43+
font-size: 2rem;
44+
text-align: left;
45+
color: var(--text-secondary);
46+
line-height: 1.5;
47+
font-weight: 200;
48+
display: flex;
49+
flex-direction: column;
50+
gap: 1rem;
51+
}
52+

0 commit comments

Comments
 (0)