Skip to content

Commit

Permalink
feat: CrossChain section tags
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Nov 27, 2024
1 parent ab6db7b commit df156de
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 68 deletions.
Binary file removed public/images/Safenet/ChainAbstraction/blocks.png
Binary file not shown.
File renamed without changes
Binary file added public/images/Safenet/CrossChain/blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 0 additions & 25 deletions src/components/Safenet/CenteredTextBlock/index.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/components/Safenet/CenteredTextBlock/styles.module.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,36 @@ const text =
const items: BaseBlock['items'] = [
{
image: {
src: '/images/Safenet/ChainAbstraction/arrows.png',
src: '/images/Safenet/CrossChain/arrows.png',
alt: 'Forward arrows',
},
title: 'Instant Transactions',
title: (
<>
Instant
<br />
Transactions
</>
),
text: 'Get your transactions executed within 500ms, without cross-chain latency',
caption: 'Speed',
},
{
image: {
src: '/images/Safenet/ChainAbstraction/padlock.png',
src: '/images/Safenet/CrossChain/padlock.png',
alt: 'Verifiyed padlock',
},
title: 'Execution guarantees',
title: (
<>
Execution <br />
guarantees
</>
),
text: 'Set custom policies and security checks ',
caption: 'Security',
},
{
image: {
src: '/images/Safenet/ChainAbstraction/blobs.png',
src: '/images/Safenet/CrossChain/blobs.png',
alt: 'Unified blobs',
},
title: (
Expand All @@ -36,10 +49,11 @@ const items: BaseBlock['items'] = [
</>
),
text: 'Spend from a single balance across all chains and offchain',
caption: 'Scale',
},
]

const ChainAbstraction = () => (
const CrossChain = () => (
<div className={css.anchor}>
<div className={css.upperArc} />

Expand All @@ -61,6 +75,7 @@ const ChainAbstraction = () => (
{items.map((item, index) => (
<div className={`${css[`block${index + 1}`]} ${css.blockItem}`} key={index}>
{item.image ? <img src={item.image.src} alt={item.image.alt} className={css.blockImage} /> : null}
<Typography className={css.blockCaption}>{item.caption}</Typography>
<Typography className={css.blockTitle}>{item.title}</Typography>
<Typography className={css.blockText}>{item.text}</Typography>
</div>
Expand All @@ -72,6 +87,7 @@ const ChainAbstraction = () => (
{items.map((item, index) => (
<Grid item md={4} className={css.blockItem} key={index}>
{item.image ? <img src={item.image.src} alt={item.image.alt} className={css.blockImage} /> : null}
<Typography className={css.blockCaption}>{item.caption}</Typography>
<Typography className={css.blockTitle}>{item.title}</Typography>
<Typography className={css.blockText}>{item.text}</Typography>
</Grid>
Expand All @@ -86,4 +102,4 @@ const ChainAbstraction = () => (
</div>
)

export default ChainAbstraction
export default CrossChain
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

.upperArc {
background-image: url('/images/Safenet/ChainAbstraction/upper-arc.png');
background-image: url('/images/Safenet/CrossChain/upper-arc.png');
background-position: center;
background-repeat: no-repeat;
overflow: auto;
Expand Down Expand Up @@ -100,6 +100,16 @@
top: -106px;
}

.blockCaption {
border: 2px solid var(--mui-palette-text-dark);
border-radius: 20px;
text-transform: uppercase;
height: 32px;
padding: 4px 14px;
display: flex;
align-items: center;
}

.blockTitle {
text-transform: uppercase;
font-size: 32px;
Expand Down Expand Up @@ -135,31 +145,29 @@
.blocksWrapper {
display: block;
margin-top: 180px;
background-image: url('/images/Safenet/ChainAbstraction/blocks.png');
background-image: url('/images/Safenet/CrossChain/blocks.png');
background-repeat: no-repeat;
background-size: contain;
background-size: cover;
width: 100%;
height: 334px;
height: 366px;
}

.blockItem {
height: 300px;
/* height: 300px; */
}
}

@media (min-width: 1630px) {
.blocksWrapper {
background-size: cover;
height: 392px;
height: 494px;
}

.blockItem {
--line-height: 28px;
height: 392px;
}

.blockTitle br {
display: none;
height: 494px;
justify-content: center;
gap: 32px;
}

.blockText {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Safenet/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Architecture from '@/components/Safenet/Architecture'
import ChainAbstraction from '@/components/Safenet/ChainAbstraction'
import CrossChain from '@/components/Safenet/CrossChain'
import Hero from '@/components/Safenet/Hero'
import Metadata from '@/components/Safenet/Metatags'
import Roadmap from '@/components/Safenet/Roadmap'
Expand All @@ -9,7 +9,7 @@ const Safenet = () => {
<div>
<Metadata />
<Hero />
<ChainAbstraction />
<CrossChain />
<Architecture />
<Roadmap />
</div>
Expand Down

0 comments on commit df156de

Please sign in to comment.