-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update design of ecosystem page (#364)
* 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
1 parent
2fdf336
commit d5f2cb8
Showing
7 changed files
with
419 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.