Skip to content

Commit

Permalink
Update design of ecosystem page (#364)
Browse files Browse the repository at this point in the history
* update: added new categories layout, data structure,  filtering logic

* Remove sections from what is celestia page (#362) (#363)

* update: removed sections, updated categories scroll  behavior, adjusted typography sizes

* Update what-is-celestia.js

---------

Co-authored-by: Gábor Tamás <[email protected]>

---------

Co-authored-by: gabros20 <[email protected]>
Co-authored-by: Gábor Tamás <[email protected]>
  • Loading branch information
3 people authored Jan 23, 2024
1 parent 2fdf336 commit d5f2cb8
Show file tree
Hide file tree
Showing 7 changed files with 419 additions and 240 deletions.
39 changes: 24 additions & 15 deletions src/components/ecosystem.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
import React from "react";
import Image from "./imageComponent";

export default class Ecosystem extends React.Component {
render() {
return (
<a href={this.props.ecosystem.url} target={"_blank"} rel={"noreferrer"} aria-label={this.props.ecosystem.title}>
<div className={"ecosystem"}>
<div className={"logo-container"}>
<Image alt={this.props.ecosystem.title} filename={this.props.ecosystem.image} />
</div>
{this.props.category.name && <div className={"category"}>{this.props.category.name}</div>}
{this.props.ecosystem.title && <div className={"title"}>{this.props.ecosystem.title}</div>}
{this.props.ecosystem.text && <div className={"text"}>{this.props.ecosystem.text}</div>}
const Ecosystem = ({ ecosystem }) => {
console.log(ecosystem);
return (
<a href={ecosystem.url} target={"_blank"} rel={"noreferrer"} aria-label={ecosystem.title}>
<div className={"ecosystem d-flex flex-column"}>
<div className={"logo-container"}>
<Image alt={ecosystem.title} filename={ecosystem.image} />
</div>
{ecosystem.title && <div className={"title"}>{ecosystem.title}</div>}
<div className='category-container'>
{ecosystem.categories.map((category) => (
<div className={"category"}>{category}</div>
))}
</div>
</a>
);
}
}
{ecosystem.description && (
<div className='description'>
{ecosystem.description.length > 250 ? `${ecosystem.description.substring(0, 250)}...` : ecosystem.description}
</div>
)}
</div>
</a>
);
};

export default Ecosystem;
3 changes: 1 addition & 2 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,12 @@ const Header = () => {

useEffect(() => {
const toggleHeaderClass = () => {
if (window.scrollY > 130) {
if (window.scrollY > 80) {
setIsBlur(true);
} else if (window.scrollY < 80) {
setIsBlur(false);
}
};

window.addEventListener("scroll", toggleHeaderClass);
toggleHeaderClass();

Expand Down
41 changes: 21 additions & 20 deletions src/datas/ecosystem/content.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
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: 'operator',
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: "operator",
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",
},
},
];
Loading

0 comments on commit d5f2cb8

Please sign in to comment.