Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with main #381

Merged
merged 22 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a8de057
Update index.js
alex-beckett Feb 1, 2024
42ebb42
Merge pull request #367 from alex-beckett/main
jcstein Feb 1, 2024
fccf9ea
Update join-the-network.js
alex-beckett Feb 5, 2024
12045b1
Merge pull request #368 from alex-beckett/main
jcstein Feb 5, 2024
6ae4211
feat: lotti anim merge everyting into one commit
norbert-berenyi Feb 8, 2024
1aceba0
fix: anim size
sragabor Feb 5, 2024
ba284be
fix: change anim position
sragabor Feb 6, 2024
4b311ea
fix: cached package json fix
norbert-berenyi Feb 13, 2024
30d80db
lotti anim homepage (#369)
norbert-berenyi Feb 13, 2024
28d326c
fix: anim size
sragabor Feb 14, 2024
1476c1f
Merge branch 'main' into feature/lotti-anim-fix
norbert-berenyi Feb 14, 2024
3dbbf6b
Merge pull request #370 from celestiaorg/feature/lotti-anim-fix
norbert-berenyi Feb 14, 2024
6a1ddf8
lottieanim run position
sragabor Feb 14, 2024
a07869f
Merge branch 'feature/lotti-anim-fix' of github.com:celestiaorg/celes…
sragabor Feb 14, 2024
4f457d2
Merge pull request #371 from celestiaorg/feature/lotti-anim-fix
norbert-berenyi Feb 14, 2024
09dd9f1
fix: scale mobile anims
sragabor Feb 16, 2024
7b0383f
Merge pull request #375 from celestiaorg/feature/lotti-anim-fix
sragabor Feb 16, 2024
af3ee59
removed team page and all related content, also fixed few css bugs on…
gabros20 Feb 21, 2024
74cc182
gitflow-hotfix-stash: homepage-overflow-fix
gabros20 Feb 22, 2024
fe81f4c
Merge pull request #377 from celestiaorg/hotfix/homepage-overflow-fix
norbert-berenyi Feb 22, 2024
d777a2a
Updating positioning (#378)
alex-beckett Feb 22, 2024
aa326af
Homepage updates (#380)
alex-beckett Mar 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"gatsby-transformer-remark": "6.12.3",
"gatsby-transformer-sharp": "5.12.3",
"jquery": "^3.6.0",
"lottie-react": "^2.4.0",
"qs": "^6.11.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
1 change: 1 addition & 0 deletions src/anim/trans-anim-1-old.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/anim/trans-anim-1.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/anim/trans-anim-10newold.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/anim/trans-anim-2.json

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ const navigation = {
url: "/privacy/",
type: "internal",
},
{
text: "Team",
url: "/team/",
type: "internal",
},
],
},
};
Expand Down
33 changes: 0 additions & 33 deletions src/components/modules/teamMember.js

This file was deleted.

44 changes: 22 additions & 22 deletions src/components/sections/home-hero-section.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import * as React from "react"
import * as React from "react";
import Button from "../buttons/button";

export default class HomeHeroSection extends React.Component {
render() {
return (
<section className={'home-hero-section'}>
<div className={'container'}>
<div className={'row justify-content-center'}>
<div className={'col-auto'}>
<h1>{this.props.heroData.title}</h1>
</div>
<div className={'col-auto'}>
<div className={'text'} dangerouslySetInnerHTML={{__html: this.props.heroData.text}}/>
</div>
<div className={'col-12 justify-content-center d-flex'}>
{this.props.heroData.buttons.map((button,index) => (
<Button key={index} class={button.class} type={button.type} text={button.text} url={button.url}/>
))}
</div>
</div>
</div>
</section>
)
}
render() {
return (
<section className={"home-hero-section"}>
<div className={"container"}>
<div className={"row justify-content-center"}>
<div className={"col-auto"}>
<h1>{this.props.heroData.title}</h1>
</div>
<div className={"col-auto"}>
<div className={"text"} dangerouslySetInnerHTML={{ __html: this.props.heroData.text }} />
</div>
<div className={"col-12 justify-content-center d-flex"}>
{this.props.heroData.buttons.map((button, index) => (
<Button key={index} class={button.class} type={button.type} text={button.text} url={button.url} />
))}
</div>
</div>
</div>
</section>
);
}
}
36 changes: 33 additions & 3 deletions src/components/sections/two-column-h2.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import * as React from "react";
import Image from "../imageComponent";
import { Link } from "gatsby";
import Lottie from "lottie-react";
import { useEffect, useMemo, useRef, useState } from "react";
import handleViewport, { useInViewport } from "react-in-viewport";

const TwoColumnH2 = ({
className,
direction,
title,
image,
Expand All @@ -13,17 +17,43 @@ const TwoColumnH2 = ({
buttonSecondaryUrl,
buttonSecondaryClass,
buttonSecondaryTitle,
anim,
animVersion,
animSegment,
}) => {
const lottieRef = useRef(null);

const myRef = useRef();

const { inViewport, enterCount, leaveCount } = useInViewport(myRef);

enterCount === 1 && lottieRef.current && lottieRef.current.play();
console.log(anim);
return (
<section className={`two-column-h2 ${direction}`}>
<section className={`two-column-h2 ${direction} ${className}`}>
<div className={"row align-items-center"}>
<div className={`col col-12 col-lg-6 ${direction === "rtl" ? "order-lg-2" : "order-lg-1"}`}>
<Image alt={title} filename={image} />
<div className={`col col-12 col-lg-6 anim-col ${animVersion === 2 && "px-2"} ${direction === "rtl" ? "order-lg-2" : "order-lg-1"}`}>
{anim && (
<Lottie
width='100%'
height='100%'
resizeMode='cover'
className={`lottie-anim-${animVersion}`}
lottieRef={lottieRef}
quality={"high"}
animationData={anim}
loop={false}
autoplay={false}
renderer={"canvas"}
/>
)}
{!anim && <Image alt={title} filename={image} />}
</div>
<div className={`d-table-cell align-middle col col-12 col-lg-6 ${direction === "rtl" ? "order-lg-1" : "order-lg-2"}`}>
<div className={"text"}>
<h2 className={"with-decor mt-4 mt-lg-0"}>{title}</h2>
<div className='paragraph' dangerouslySetInnerHTML={{ __html: text }} />
<div className={"lottie-anchor"} ref={myRef} />
<div className={"flex mt-4"}>
<Link to={buttonPrimaryUrl} className={`button button-simple me-4 ${buttonPrimaryClass}`}>
{buttonPrimaryTitle}
Expand Down
113 changes: 59 additions & 54 deletions src/datas/careers/content.js
Original file line number Diff line number Diff line change
@@ -1,58 +1,63 @@
import perkAnimation1 from '../../images/illustrations/career-1/data.json'
import perkAnimation2 from '../../images/illustrations/career-2/data.json'
import perkAnimation3 from '../../images/illustrations/career-3/data.json'
import perkAnimation4 from '../../images/illustrations/career-4/data.json'

import perkAnimation1 from "../../images/illustrations/career-1/data.json";
import perkAnimation2 from "../../images/illustrations/career-2/data.json";
import perkAnimation3 from "../../images/illustrations/career-3/data.json";
import perkAnimation4 from "../../images/illustrations/career-4/data.json";

export const content = {
title : 'Careers',
subtitle: 'We’re on a mission to change the way that blockchains and decentralized applications are built—making them more secure, sovereign and scalable.',
text: 'Join our team of leading engineers, researchers and entrepreneurs in pioneering the first modular blockchain design.',
button: {
text: 'Current openings',
url: 'https://jobs.lever.co/celestia/'
},
perks:{
title: 'Perks',
perks: [{
title: 'Employment benefits',
image: 'careers/careers-1.svg',
animation: perkAnimation1
},{
title: '4 weeks annual vacation',
image: 'careers/careers-2.svg',
animation: perkAnimation2
},{
title: 'Meaningful long-term compensation package',
image: 'careers/careers-3.svg',
animation: perkAnimation3
},{
title: 'Flexible and remote work environment',
image: 'careers/careers-4.svg',
animation: perkAnimation4
}
]
}
}
title: "Careers",
subtitle:
"We’re on a mission to change the way that blockchains and decentralized applications are built—making them more secure, sovereign and scalable.",
text: "Join our team of leading engineers, researchers and entrepreneurs in pioneering the first modular blockchain design.",
button: {
text: "Current openings",
url: "https://jobs.lever.co/celestia/",
},
perks: {
title: "Perks",
perks: [
{
title: "Employment benefits",
image: "careers/careers-1.svg",
animation: perkAnimation1,
},
{
title: "4 weeks annual vacation",
image: "careers/careers-2.svg",
animation: perkAnimation2,
},
{
title: "Meaningful long-term compensation package",
image: "careers/careers-3.svg",
animation: perkAnimation3,
},
{
title: "Flexible and remote work environment",
image: "careers/careers-4.svg",
animation: perkAnimation4,
},
],
},
};

export const FooterBoxes = [
{
title: 'Join our growing ecosystem',
text: 'View job openings and career opportunities in our ecosystem.',
button: {
text: 'Current openings',
href: 'https://celestia.pallet.com/jobs',
id: 'career',
type: 'simple'
}
},{
title: 'Build on testnet',
text: 'Join a growing modular ecosystem of developers building on testnet.',
button: {
text: 'Get started',
href: 'https://docs.celestia.org/',
id: 'operator',
type: 'simple'
}
}
]
{
title: "Join our growing ecosystem",
text: "View job openings and career opportunities in our ecosystem.",
button: {
text: "Current openings",
href: "https://celestia.pallet.com/jobs",
id: "career",
type: "simple",
},
},
{
title: "Build on testnet",
text: "Join a growing modular ecosystem of developers building on testnet.",
button: {
text: "Get started",
href: "https://docs.celestia.org/",
id: "operator",
type: "simple",
},
},
];
64 changes: 44 additions & 20 deletions src/datas/glossary/content.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,45 @@
export const FooterBoxes = [
{
title: 'Journey into modular',
text: 'Start your deep dive on modular blockchains.',
button: {
text: 'Learn modular',
href: '/learn/',
id: 'career',
type: 'simple'
}
},{
title: 'Build on testnet',
text: 'Join a growing modular ecosystem of developers building on testnet.',
button: {
text: 'Get started',
href: 'https://docs.celestia.org/',
id: 'operator',
type: 'simple'
}
}
]
{
title: "Journey into modular",
text: "Start your deep dive on modular blockchains.",
button: {
text: "Learn modular",
href: "/learn/",
id: "career",
type: "simple",
},
},
{
title: "Build on testnet",
text: "Join a growing modular ecosystem of developers building on testnet.",
button: {
text: "Get started",
href: "https://docs.celestia.org/",
id: "operator",
type: "simple",
},
},
];

export const FooterBoxes2 = [
{
title: "Experiment with testnet",
text: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.",
button: {
text: "Get started",
href: "https://docs.celestia.org/",
id: "operator",
type: "simple",
},
},
{
title: "Join our growing team",
text: "Join our team of leading engineers in pioneering the first modular blockchain network",
button: {
text: "Current openings",
href: "/careers/",
id: "career",
type: "simple",
},
},
];
2 changes: 1 addition & 1 deletion src/datas/home/hero-section.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const heroData = {
title: "The first modular blockchain network",
text: "Celestia is a modular data availability network that securely scales with the number of users, making it easy for anyone to launch their own blockchain.",
text: "Celestia is a modular data availability network that makes it easy for anyone to securely launch their own blockchain.",
buttons: [
{
text: "Build modular",
Expand Down
2 changes: 1 addition & 1 deletion src/datas/run-a-node/join-the-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const joinTheNetwork = {
image: "run-a-node/beginner-image.png",
link: {
text: "Deploy on Vimana",
url: "https://docs.vistara.dev/the-vistara-workflow/getting-started",
url: "https://docs.vistara.dev/guides/getting-started",
},
},
{
Expand Down
Loading
Loading