-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
141 additions
and
141 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
134 changes: 134 additions & 0 deletions
134
components/resources-section/resources-section.component.tsx
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 |
---|---|---|
@@ -0,0 +1,134 @@ | ||
import styled from 'styled-components' | ||
import localFont from '@next/font/local' | ||
|
||
// import { Button } from "../button/button.component" | ||
import ResourcesArticle from '../resourcess-article/resourcess-article.component' | ||
|
||
import { IArticle } from '../../types/resources.types' | ||
|
||
// const headerFont = localFont({ | ||
// src: [ | ||
// { | ||
// path: "../../assets/fonts/mona-sans/WOFF-2/Mona-Sans-BoldWide.woff2", | ||
// weight: "700", | ||
// style: "bold", | ||
// }, | ||
// ], | ||
// }) | ||
|
||
const ResourcessSection = () => { | ||
const articles: IArticle[] = [ | ||
{ | ||
icon: { | ||
src: '/assets/resourcess-section/tok-icon.svg', | ||
alt: 'tokenomics icon', | ||
}, | ||
label: 'knowledge', | ||
heading: 'hydra<sup>DX</sup> tokenomics', | ||
cta: { | ||
label: 'open', | ||
href: 'https://docs.hydradx.io/tokenomics', | ||
}, | ||
}, | ||
{ | ||
icon: { | ||
src: '/assets/resourcess-section/press-kit-icon.svg', | ||
alt: 'press kit icon', | ||
}, | ||
label: 'resources', | ||
heading: 'press kit resources', | ||
cta: { | ||
label: 'open', | ||
href: 'https://github.com/galacticcouncil/HydraDX-assets/tree/main/images', | ||
}, | ||
}, | ||
{ | ||
icon: { | ||
src: '/assets/resourcess-section/github-icon.svg', | ||
alt: 'github icon', | ||
}, | ||
label: 'chain', | ||
heading: 'Follow our Newsletter', | ||
cta: { | ||
label: 'open', | ||
href: 'https://hydradx.substack.com/', | ||
}, | ||
}, | ||
] | ||
|
||
return ( | ||
<Section> | ||
<H2> | ||
Hydra<sup>DX</sup> Resources | ||
</H2> | ||
|
||
<Flex> | ||
{articles.map((article, index) => ( | ||
<ResourcesArticle key={index} article={article} /> | ||
))} | ||
</Flex> | ||
</Section> | ||
) | ||
} | ||
|
||
export default ResourcessSection | ||
|
||
const Section = styled.section` | ||
max-width: 110rem; | ||
margin: 0 auto 4.1rem; | ||
@media all and (min-width: ${({ theme }) => theme.breakpoints.sm}) { | ||
@media all and (min-width: ${({ theme }) => theme.breakpoints.md}) { | ||
margin: 0 auto 8.1rem; | ||
@media all and (min-width: ${({ theme }) => theme.breakpoints.lg}) { | ||
} | ||
} | ||
} | ||
` | ||
|
||
const H2 = styled.h2` | ||
font-size: 3.4rem; | ||
line-height: 130%; | ||
text-align: center; | ||
letter-spacing: 0.02em; | ||
color: #ffffff; | ||
margin-bottom: 4.4rem; | ||
font-family: 'MonaSans'; | ||
font-weight: 700; | ||
font-style: bold; | ||
sup { | ||
vertical-align: top; | ||
font-size: 2.2rem; | ||
position: relative; | ||
top: -0.5rem; | ||
} | ||
@media all and (min-width: ${({ theme }) => theme.breakpoints.sm}) { | ||
@media all and (min-width: ${({ theme }) => theme.breakpoints.md}) { | ||
margin-bottom: 8.3rem; | ||
font-size: 5.2rem; | ||
sup { | ||
vertical-align: top; | ||
font-size: 3.2rem; | ||
position: relative; | ||
top: -1rem; | ||
} | ||
@media all and (min-width: ${({ theme }) => theme.breakpoints.lg}) { | ||
} | ||
} | ||
} | ||
` | ||
|
||
const Flex = styled.div` | ||
/* border: 1px solid green; */ | ||
display: flex; | ||
justify-content: center; | ||
gap: 4.5rem; | ||
flex-wrap: wrap; | ||
` |
8 changes: 4 additions & 4 deletions
8
...ss-section/resourcess-section.stories.tsx → ...ces-section/resources-section.stories.tsx
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
134 changes: 0 additions & 134 deletions
134
components/resourcess-section/resourcess-section.component.tsx
This file was deleted.
Oops, something went wrong.
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