Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

updated home page UI and contents #112

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
19 changes: 19 additions & 0 deletions src/components/cards/CommunityBannerCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react";
import Link from "@docusaurus/Link";
import styles from "./card.module.css";

const CommunityBannerCard = ({ link, headerTitle, bodyText, icon }) => {
return (
<Link href={link}>
<div className={styles.communityBanner}>
<div>{icon}</div>
<div className={styles.communityBannerContent}>
<h3>{headerTitle}</h3>
<p>{bodyText}</p>
</div>
</div>
</Link>
);
};

export default CommunityBannerCard;
31 changes: 11 additions & 20 deletions src/components/cards/ContentCard.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
import React from 'react';
import styles from './card.module.css';
import Link from '@docusaurus/Link';

const ContentCard = ({ icon, isExternalLink, link }) => {

import React from "react";
import styles from "./card.module.css";
import Link from "@docusaurus/Link";

const ContentCard = ({ icon, link, subText }) => {
return (
<>
{
isExternalLink ? <Link href={link}>
<div className={styles.contentCard}>
<div>{icon}</div>
</div>
</Link> :
<Link to={link}>
<div className={styles.contentCard}>
<div>{icon}</div>
</div>
</Link>
}
</>
<div className={styles.contentCardBox}>
<Link to={link} className={styles.contentCard}>
{icon}
</Link>
<br />
<span>{subText}</span>
</div>
);
};

Expand Down
22 changes: 0 additions & 22 deletions src/components/cards/DiscordCard.js

This file was deleted.

20 changes: 9 additions & 11 deletions src/components/cards/GithubCard.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import React from 'react';
import styles from './card.module.css';
import Link from '@docusaurus/Link';
import GithubLogo from '@site/static/img/github.svg';
import React from "react";
import styles from "./card.module.css";
import Link from "@docusaurus/Link";
import GithubLogo from "@site/static/img/github.svg";

const GithubCard = ({ link, title }) => {
return (
<div className={styles.GithubLink}>
<div className={styles.githubLink}>
<div>
<GithubLogo className={styles.GithubLinkImg} title='github' />
<GithubLogo className={styles.githubLinkImg} title='github' />
</div>
<div>
<span className={styles.GithubLinkText}>
{' '}
<Link href={link}>
{title}
</Link>{' '}
<span className={styles.githubLinkText}>
{" "}
<Link href={link}>{title}</Link>{" "}
</span>
</div>
</div>
Expand Down
24 changes: 0 additions & 24 deletions src/components/cards/PartnershipCard.js

This file was deleted.

38 changes: 15 additions & 23 deletions src/components/cards/card.module.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
.discordBannerSvg {
.communityBannerSvg {
width: 100%;
height: 100%;
}

.contentCard {
margin: 0.6rem 1rem;
.contentCardBox {
margin: 0 0.5rem;
}


.contentCard:hover {
cursor: pointer;
box-shadow: 0px 12px 25px rgba(34, 35, 140, 0.07);
border-radius: 12px;
}


.contentCardSection h4 {
font-weight: 600;
font-size: 1rem;
Expand All @@ -26,8 +24,7 @@
color: #545A6C;
}


.discordBanner {
.communityBanner {
display: flex;
flex-direction: row;
align-items: center;
Expand All @@ -40,35 +37,30 @@
width: 50rem;
}

.discordBanner:hover {
.communityBanner:hover {
cursor: pointer;
background: #FFFFFF;
box-shadow: 0px 12px 25px rgba(34, 35, 140, 0.07);
}

.discordBannerContent {
.communityBannerContent {
margin: 1.5rem 2.5rem;
}

.discordBannerContent h4 {
.communityBannerContent h4 {
font-weight: 600;
font-size: 1.5rem;
line-height: 30px;
margin: 1.5rem 0 0 0;
color: var(--ifm-text-color);
}

.discordBannerContent p {
.communityBannerContent p {
font-size: 1rem;
color: #545A6C;
}


.discordBannerLink {
text-decoration: none !important;
}

.GithubLink {
.githubLink {
display: flex;
flex-direction: row;
align-items: center;
Expand All @@ -82,32 +74,32 @@
margin: 1rem 1rem;
}

.GithubLink:hover {
.githubLink:hover {
cursor: pointer;
box-shadow: 0px 12px 25px rgba(34, 35, 140, 0.07);
}

.GithubLinkImg {
.githubLinkImg {
margin: 0 0.7rem -0.3rem 0;
}

.GithubLinkText {
.githubLinkText {
font-weight: 600;
font-size: 18px;
line-height: 23px;
color: var(--ifm-text-color);
}


.GithubLinkText a {
.githubLinkText a {
text-decoration: none;
color: var(--ifm-text-color);
}


@media screen and (max-width:768px) {
.discordBanner {
width:18rem;
.communityBanner {
width: 18rem;
padding: 0rem;
}
}
8 changes: 7 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
url('/fonts/Sora-Thin.ttf') format('truetype');
}

a {
text-decoration: none !important;
}

body {
font-family: 'Sora', sans-serif;
font-size: 1rem;
Expand Down Expand Up @@ -74,4 +78,6 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {

.web3-compare-table td:first-child {
font-weight: bold;
};
}

;
Loading