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

Commit

Permalink
updated home page UI and contents
Browse files Browse the repository at this point in the history
Updated homepage with content provideded from #108
closes #108
  • Loading branch information
cmcWebCode40 committed Jul 28, 2022
1 parent 95a34b3 commit cb69fc6
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 56 deletions.
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
8 changes: 4 additions & 4 deletions src/components/cards/card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
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);
Expand All @@ -27,6 +26,7 @@
}



.discordBanner {
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -107,7 +107,7 @@

@media screen and (max-width:768px) {
.discordBanner {
width:18rem;
width: 18rem;
padding: 0rem;
}
}
130 changes: 100 additions & 30 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,59 @@ import DemosIcon from "@site/static/img/demos.svg";
const contentCards = [
{
title: "Read the Documentation",
icon: <ReadDocsIcon title='icon' />,
icon: (
<ReadDocsIcon
title='icon'
style={{
width: "85%",
}}
/>
),
link: "/docs/intro",
externalLink: false,
subText:
"Learn about the core concepts of the Verida protocol, the network and more",
},
{
title: "See API Documentation",
icon: <ExploreAPiICon title='icon' />,
icon: (
<ExploreAPiICon
title='icon'
style={{
width: "85%",
}}
/>
),
link: "/docs/api/verida-js/",
externalLink: true,
subText: "Detailed documentation of the Verida JS library",
},
{
title: "Interactive Tutorial",
description: `Check out the interactive tutorials for an introduction to Verida's Web3 APIs`,
icon: <IntTutorialIcon title='icon' />,
icon: (
<IntTutorialIcon
title='icon'
style={{
width: "85%",
}}
/>
),
link: "/docs/tutorial/introduction",
externalLink: false,
subText:
"Try the interactive tutorial to get you coding with Verida as quickly as possible.",
},
{
title: "Demos",
description: "Explore Verida technologies with demo applications",
icon: <DemosIcon title='icon' />,
icon: (
<DemosIcon
title='icon'
style={{
width: "85%",
}}
/>
),
link: "/docs/demos",
externalLink: false,
subText: "Test our demo applications to interact with the Verida protocol",
},
];

Expand All @@ -54,10 +84,7 @@ const githubLinks = [
title: "Markdown Notes Demo",
link: "https://github.com/verida/markdown-notes-demo",
},
{
title: "Documentation",
link: "https://github.com/verida/documentation",
},

{
title: "Storage-Node",
link: "https://github.com/verida/storage-node",
Expand All @@ -67,11 +94,27 @@ const githubLinks = [
link: "https://github.com/verida/account-explorer",
},
{
title: "Generic-demo",
link: "https://github.com/verida/generic-demo",
title: "Vault Examples",
link: "https://github.com/verida/vault-showcase",
},
{
title: "Vue starter kit",
link: "https://github.com/verida/vue-starter-kit",
},
];
const gettingStarted = [
{
title:
"Implement the Single Sign On and Client SDK Javascript SDKs in your application",
link: "/docs/single-sign-on-sdk",
icon: "/img/sso_icon.png",
},
{
title: "For Vue developers, try the Vue Starter Kit.",
link: "https://github.com/verida/vue-starter-kit",
icon: "/img/vue-starter-kit.png",
},
];

const description = `
Explore the Verida Developer's Portal to get
started with our developer documentation,
Expand Down Expand Up @@ -114,7 +157,10 @@ export default function Home() {
<main className={styles.mainSection}>
<section className={styles.heroSection}>
<h1>Welcome to the Verida Developer Portal</h1>
<div>Verida is a multi-chain protocol for interoperable database storage and messaging built on decentralized identity.</div>
<div>
Verida is a multi-chain protocol for interoperable database
storage and messaging built on decentralized identity.
</div>
</section>
<section className={styles.cardSection}>
<div className={styles.contentCard}>
Expand All @@ -123,26 +169,50 @@ export default function Home() {
))}
</div>
<div className={styles.vaultDL}>
<h1>Download the Verida Vault (Developer Preview)</h1>
<h2>Getting Started</h2>
</div>
<div className={styles.storeButtons}>
<a href='https://apps.apple.com/us/app/verida-vault/id1546599632'>
<img
className={styles.appstorebutton}
src='/img/AppStore_button.svg'
/>
</a>
<a href='#'>
<img
className={styles.appstorebutton}
src='/img/GooglePlayCOMINGSOON.svg'
/>
</a>
<div className={styles.gettingStarted}>
<div className={styles.storeButtons}>
<div>
<a href='https://apps.apple.com/us/app/verida-vault/id1546599632'>
<img
className={styles.appstorebutton}
src='/img/AppStore_button.svg'
/>
</a>
<br />
<a href='#'>
<img
className={styles.appstorebutton}
src='/img/GooglePlayCOMINGSOON.svg'
/>
</a>
</div>
<div>
<p>Download the Verida Vault (Developer Preview) </p>
</div>
</div>
{gettingStarted.map((item) => (
<div className={styles.storeButtons}>
<div>
<a href={item.link}>
<img src={item.icon} height='100' />
</a>
</div>
<div>
<p>{item.title}</p>
</div>
</div>
))}
</div>
<DiscordCard />
<PartnerShipCard />
<div className={styles.githubCardSection}>
<h2>GitHub Repositories</h2>
<p>
The Verida protocol is comprised of an ecosystem of open
source components
</p>
<div className={styles.githubCard}>
{githubLinks.map((item) => (
<GithubCard key={item.title} {...item} />
Expand Down
24 changes: 22 additions & 2 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
*/


.svgIcon {
width: 60%,
}

.mainSection {
display: flex;
flex-flow: column nowrap;
Expand Down Expand Up @@ -67,11 +71,18 @@
grid-template-columns: 1fr 1fr 1fr 1fr;
}

.gettingStarted {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}

.githubCardSection {
margin-bottom: 6.5rem;
text-align: center;
}

.githubCardSection h2 {
.githubCardSection h2,
p {
margin: 0 1rem;
}

Expand Down Expand Up @@ -102,7 +113,7 @@
.storeButtons {
display: block;
margin-left: auto;
margin-right: auto;
margin-right: auto;
}

.appstorebutton {
Expand Down Expand Up @@ -134,11 +145,20 @@
.contentCard {
grid-template-columns: 1fr 1fr;
}

.gettingStarted {
grid-template-columns: 1fr 1fr;
}
}


@media screen and (max-width:768px) {
.contentCard {
grid-template-columns: 1fr;
}


.gettingStarted {
grid-template-columns: 1fr;
}
}
Binary file added static/img/sso_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/vue-starter-kit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cb69fc6

Please sign in to comment.