Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.5 Release Oct 17 #33

Merged
merged 113 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
dd134fb
feat:added links on build and learn page
Siddharth9890 Oct 4, 2023
ec45cf8
chore:updated the checkUsernameAvailability
Siddharth9890 Oct 4, 2023
90a8dae
chore:fixing graphql errors
Siddharth9890 Oct 5, 2023
0b56694
Merge branch 'develop' into feat/add-links-learn-page
Siddharth9890 Oct 5, 2023
19d9213
fix:added _target to hrefs
Siddharth9890 Oct 5, 2023
5d0b427
fix:added hrefs to missing a tags
Siddharth9890 Oct 5, 2023
dde141f
fix:missing target on a tags
Siddharth9890 Oct 5, 2023
14a60fb
fix:added target to hrefs on build page
Siddharth9890 Oct 6, 2023
b4b0b70
Merge branch 'develop' into feat/add-links-learn-page
Siddharth9890 Oct 6, 2023
f45f690
fix: remove outline from cell click
andrefelizardo Oct 13, 2023
ae03b13
chore: added copy paste functionallity to proof and pda pages
boscocg Oct 13, 2023
c316d64
fix: fixed warnings
boscocg Oct 13, 2023
5cf12e6
Merge branch 'develop' of github.com:Gateway-DAO/network-ui into develop
boscocg Oct 13, 2023
6d77304
chore: added copy paste title into request page
boscocg Oct 13, 2023
22b1094
fix: removed unused imports
boscocg Oct 13, 2023
b83cf3b
feat : add home page
R11manish Oct 13, 2023
8eb32d8
refactor : andre feedback
R11manish Oct 13, 2023
c0a44d7
Merge pull request #11 from Gateway-DAO/feat/home-page
andrefelizardo Oct 13, 2023
c1a273a
fix: accept and reject request loading
andrefelizardo Oct 13, 2023
fd75f65
Merge pull request #12 from Gateway-DAO/develop
andrefelizardo Oct 13, 2023
1ced812
feat: logic by env var
andrefelizardo Oct 13, 2023
bbc8c81
WIP: org pages
andrefelizardo Oct 13, 2023
d19e4d7
fix: add dm ids
andrefelizardo Oct 13, 2023
89f0f87
Merge pull request #13 from Gateway-DAO/feat/GTW-796/change-example-b…
andrefelizardo Oct 13, 2023
5181433
Merge branch 'develop' into feat/GTW-799/developer-links-for-org
andrefelizardo Oct 13, 2023
23efce9
chore: added data request templates page
boscocg Oct 13, 2023
0dec870
chore: added data request templates org page
boscocg Oct 13, 2023
1d64cc7
feat: developer links as org
andrefelizardo Oct 13, 2023
0a0930b
Merge pull request #14 from Gateway-DAO/feat/GTW-799/developer-links-…
andrefelizardo Oct 13, 2023
b5eb675
feat: page titles
andrefelizardo Oct 13, 2023
08a43c8
chore: data request templates by org
boscocg Oct 13, 2023
b94c148
Merge branch 'develop' of github.com:Gateway-DAO/network-ui into feat…
boscocg Oct 13, 2023
f3816af
fix: small fix on chip size
andrefelizardo Oct 13, 2023
585e991
Merge pull request #16 from Gateway-DAO/feat/request-templates
andrefelizardo Oct 13, 2023
dcca2a3
fix: build
andrefelizardo Oct 13, 2023
b769a99
chore: updated org request
boscocg Oct 13, 2023
66f7811
chore: updated request templates by org
boscocg Oct 13, 2023
1f87619
Merge pull request #17 from Gateway-DAO/feat/request-templates
boscocg Oct 13, 2023
7357858
Merge branch 'develop' into feat/add-links-learn-page
Siddharth9890 Oct 16, 2023
40da590
chore:added links to footer and rest learn page
Siddharth9890 Oct 16, 2023
d9a3c10
chore: changed request template file name
boscocg Oct 16, 2023
963cbcd
chore: added data models page for user
boscocg Oct 16, 2023
0c2018c
chore: rollback
kbooz Oct 16, 2023
5fb6d20
chore: created data models page org
boscocg Oct 16, 2023
5ae5147
chore: added id for requests
boscocg Oct 16, 2023
8740c52
chore: stop
kbooz Oct 16, 2023
7696a4d
Merge branch 'develop' of github.com:Gateway-DAO/network-ui into feat…
boscocg Oct 16, 2023
43d908c
WIP: data request template modal
andrefelizardo Oct 16, 2023
5c1b6e4
Merge pull request #18 from Gateway-DAO/feat/data-models
boscocg Oct 16, 2023
b81f936
chore: updated menu order
boscocg Oct 16, 2023
9157560
WIP: code block
andrefelizardo Oct 16, 2023
4036b3c
Merge pull request #19 from Gateway-DAO/feat/menu-order
boscocg Oct 16, 2023
3ebd594
chore: added count for templates and data models
boscocg Oct 16, 2023
863833c
Merge pull request #20 from Gateway-DAO/feat/add-count
boscocg Oct 16, 2023
a565d4b
chore: trying to fix
kbooz Oct 16, 2023
5e41acd
chore: added a top text into landing page
boscocg Oct 16, 2023
bdd76f8
chore: removed unused imports
boscocg Oct 16, 2023
7115a46
feat: template detail
andrefelizardo Oct 16, 2023
8f9d407
Merge remote-tracking branch 'origin/develop' into feat/GTW-801/data-…
andrefelizardo Oct 16, 2023
e28108d
feat: cursor pointer
kbooz Oct 16, 2023
d8064e6
feat: using react lenis
kbooz Oct 16, 2023
ace59ec
Merge pull request #21 from Gateway-DAO/feat/add-top-text-into-landin…
boscocg Oct 16, 2023
3532ce5
Merge pull request #22 from Gateway-DAO/feat/GTW-801/data-request-tem…
andrefelizardo Oct 16, 2023
a055025
fix: desktop
kbooz Oct 16, 2023
42c9d78
fix: fixed top text
boscocg Oct 16, 2023
7eb755f
Merge pull request #23 from Gateway-DAO/feat/add-top-text-into-landin…
boscocg Oct 16, 2023
9553416
fix: fixed zIndex problems
boscocg Oct 16, 2023
e39055f
fix: mobile
kbooz Oct 16, 2023
474dab2
Merge branch 'fix/lenis' of github.com:Gateway-DAO/network-ui into de…
kbooz Oct 16, 2023
2d8174e
feat: data models details
andrefelizardo Oct 16, 2023
6ec8e21
Merge remote-tracking branch 'origin/develop' into feat/GTW-800-data-…
andrefelizardo Oct 16, 2023
83ae1be
feat: removed explorer
kbooz Oct 16, 2023
634858b
feat: data models and templates by org
andrefelizardo Oct 16, 2023
48eab0c
Merge pull request #24 from Gateway-DAO/feat/add-top-text-into-landin…
boscocg Oct 16, 2023
2eabeef
Merge pull request #25 from Gateway-DAO/feat/GTW-800-data-models-details
andrefelizardo Oct 16, 2023
2ec7da6
fix: hotfix
andrefelizardo Oct 16, 2023
4338256
fix: fixed text header color
boscocg Oct 16, 2023
ec53f76
Merge pull request #26 from Gateway-DAO/fix/header-text-color
boscocg Oct 16, 2023
2625ae0
fix: go to playground
andrefelizardo Oct 16, 2023
ebb49ff
fix: added copy paste component to see request and templates id
boscocg Oct 16, 2023
077079c
Merge pull request #27 from Gateway-DAO/fix/add-copy-paste
boscocg Oct 16, 2023
d8fa612
fix: add organization on mutations
andrefelizardo Oct 16, 2023
8b868ae
fix: fixed add email
boscocg Oct 16, 2023
ab3ef90
Merge pull request #29 from Gateway-DAO/fix/add-email
boscocg Oct 16, 2023
0c13c59
Merge pull request #28 from Gateway-DAO/develop
andrefelizardo Oct 16, 2023
9eae786
chore:added remaining links to learn and build
Siddharth9890 Oct 17, 2023
a031842
fix: fixed createPDA mutation [GTW-816][GTW-818]
boscocg Oct 17, 2023
77ec0b2
Merge pull request #30 from Gateway-DAO/fix/fix-mutation-create-pda
boscocg Oct 17, 2023
fd370ac
fix: changed copy for datamodel modal [GTW-819]
boscocg Oct 17, 2023
8a24572
Merge pull request #31 from Gateway-DAO/fix/data-model-modal
boscocg Oct 17, 2023
ceb71ac
Merge pull request #32 from Gateway-DAO/develop
boscocg Oct 17, 2023
df73d1b
chore:modified links on learn and build page
Siddharth9890 Oct 17, 2023
d10466e
Merge branch 'develop' into feat/add-links-learn-page
Siddharth9890 Oct 17, 2023
8a4e55a
chore:updated text on landing page
Siddharth9890 Oct 17, 2023
ae5b406
chore:vercel error
Siddharth9890 Oct 17, 2023
78a320c
chore:again change text on pages
Siddharth9890 Oct 17, 2023
0ce5a4f
chore:final update on home page
Siddharth9890 Oct 17, 2023
6a1365a
chore: removed image into mutation createPDA
boscocg Oct 17, 2023
f8dbe31
fix: fixed scroll inside of menu
boscocg Oct 17, 2023
cd449b9
Merge pull request #35 from Gateway-DAO/fix/ui-fixes
boscocg Oct 17, 2023
35300f7
Merge pull request #34 from Gateway-DAO/feat/add-links-learn-page
boscocg Oct 17, 2023
f5ae0d4
fix: changed mutations
boscocg Oct 17, 2023
0131f31
Merge pull request #37 from Gateway-DAO/fix/change-mutation
boscocg Oct 17, 2023
2adbd9a
feat: add sandbox chip on logo
NMCarv Oct 17, 2023
3fafc1e
feat: create component SandboxAlert
NMCarv Oct 17, 2023
c33f066
feat: apply sandbox alert to data assets page
NMCarv Oct 17, 2023
d4d9a64
chore: move component to another place
NMCarv Oct 17, 2023
fbcfb8d
chore: add sandbox alert copy to locale
NMCarv Oct 17, 2023
a4a6db7
feat: create mainnet access alert
NMCarv Oct 17, 2023
a58c7f2
feat: add responsive margin to chip
NMCarv Oct 17, 2023
2c6fbac
feat: add todo to remove hardcoded values
NMCarv Oct 17, 2023
1ee9fcb
Merge pull request #38 from Gateway-DAO/feat/sandbox
NMCarv Oct 17, 2023
95d7575
Merge pull request #36 from Gateway-DAO/develop
NMCarv Oct 17, 2023
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
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@solana/wallet-adapter-wallets": "^0.19.22",
"@solana/web3.js": "^1.87.1",
"@studio-freight/lenis": "^1.0.26",
"@studio-freight/react-lenis": "^0.0.36",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query-devtools": "^4.36.1",
"@vercel/analytics": "^1.1.0",
Expand All @@ -54,6 +55,7 @@
"next-nprogress-bar": "^2.1.2",
"notistack": "^3.0.1",
"react": "18.2.0",
"react-code-blocks": "^0.1.4",
"react-dom": "18.2.0",
"react-easy-crop": "^5.0.2",
"react-hook-form": "^7.47.0",
Expand Down
2,493 changes: 1,034 additions & 1,459 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

28 changes: 21 additions & 7 deletions src/app/(landing)/build/components/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ import GTWLink from '@/components/gtw-link';
import Slider from 'react-slick';

import styles from './hero.module.scss';
import { DOCS_BASE_URL } from '@/constants/docs';

const journeySteps = [
{
title: 'Getting Started',
description: 'Learn the basics of our protocol',
href: '/',
href: `${DOCS_BASE_URL}docs/what-is-the-gatewayprotocol`,
},
{
title: 'Architecture',
description: 'How the protocol is structured',
href: '/',
href: `${DOCS_BASE_URL}docs/what-is-the-gatewayprotocol`,
},
{
title: 'API & SDK',
description: 'Use the SDK from your applications',
href: '/',
href: `${DOCS_BASE_URL}graphql`,
},
];

Expand All @@ -34,14 +35,22 @@ const Box = ({ type }: { type: 'desktop' | 'mobile' }) => {
<p className={styles.box_text}>1.0.1</p>

<div className={styles.box_buttons_container}>
<GTWLink href="/" className={styles.box_link}>
<GTWLink
href={DOCS_BASE_URL}
className={styles.box_link}
target={'_blank'}
>
<Button variant="outlined">
<span>Full Documentation</span>
<Link className={styles.box_button_icon} />
</Button>
</GTWLink>

<GTWLink href="/" className={styles.box_link}>
<GTWLink
href={`${DOCS_BASE_URL}docs/get-started-here`}
className={styles.box_link}
target={'_blank'}
>
<Button variant="outlined">
<span>V2 API</span>
<Link className={styles.box_button_icon} />
Expand Down Expand Up @@ -89,7 +98,12 @@ export default function Hero() {

<div className={styles.steps}>
{journeySteps.map((card, index) => (
<a className={styles.card} key={index} href={card.href}>
<a
className={styles.card}
key={index}
href={card.href}
target={'_blank'}
>
<h3 className={styles.card_title}>{card.title}</h3>
<p className={styles.card_description}>{card.description}</p>
</a>
Expand All @@ -102,7 +116,7 @@ export default function Hero() {
<Slider {...settings}>
{journeySteps.map((card, index) => (
<div key={index}>
<a className={styles.card} href={card.href}>
<a className={styles.card} href={card.href} target={'_blank'}>
<h3 className={styles.card_title}>{card.title}</h3>
<p className={styles.card_description}>{card.description}</p>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Props = {
cards: {
title: string;
description: string;
href: '/';
href: string;
}[];
};

Expand All @@ -23,14 +23,19 @@ export default function TemplateDocsSection({ title, button, cards }: Props) {
<Wrapper className={styles.wrapper}>
<div className={styles.head}>
<h2 className={styles.title}>{title}</h2>
<GTWLink href={button.href}>
<GTWLink href={button.href} target={'_blank'}>
<Button variant="outlined">{button.text}</Button>
</GTWLink>
</div>

<div className={styles.cards}>
{cards.map((card, index) => (
<a className={styles.card} key={index} href={card.href}>
<a
className={styles.card}
key={index}
href={card.href}
target={'_blank'}
>
<h4 className={styles.card_title}>{card.title}</h4>
<p className={styles.card_description}>{card.description}</p>
</a>
Expand Down
33 changes: 12 additions & 21 deletions src/app/(landing)/build/page.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
'use client';

import { useEffect } from 'react';

import { HeaderContextProvider } from '@/app/(landing)/contexts/header-context';

import Hero from '../build/components/hero';
import Footer from '../components/footer';
import Header from '../components/header';
import LenisManager, { initializeLenis } from '../utils/scroll';
import TemplateDocsSection from './components/template-docs-section';
import { DOCS_BASE_URL } from '@/constants/docs';

export default function BuildPage() {
useEffect(() => {
initializeLenis();
LenisManager?.start();
return () => {
LenisManager?.destroy();
};
}, []);

return (
<HeaderContextProvider>
<Header />
Expand All @@ -27,28 +17,28 @@ export default function BuildPage() {
title="Become an Issuer"
button={{
text: 'Open issuer docs',
href: '/',
href: `${DOCS_BASE_URL}docs/issuers-1`,
}}
cards={[
{
title: 'Create Unique Data-Models',
description: 'Easy create Data models that fits your needs',
href: '/',
description: 'Easily define and standardize data fields.',
href: `${DOCS_BASE_URL}docs/data-model`,
},
{
title: 'Automate Issuance',
description: 'SDK integration step-by-step',
href: '/',
href: `${DOCS_BASE_URL}docs/start-issuing`,
},
{
title: 'Control PDA Status',
description: 'How to Upgrade, Revoke, suspend and Update PDAs',
href: '/',
href: `${DOCS_BASE_URL}docs/private-data-assets-pda`,
},
{
title: 'Monetize Data-Sharing',
description: 'How to monetize using our Verification System',
href: '/',
href: `${DOCS_BASE_URL}docs/data-proof`,
},
]}
/>
Expand All @@ -57,18 +47,19 @@ export default function BuildPage() {
title="Become a Verifier"
button={{
text: 'Open verifier docs',
href: '/',
href: `${DOCS_BASE_URL}docs/verifiers`,
}}
cards={[
{
title: 'Creating a Data Request',
description: 'Easily create Data models that fits your needs',
href: '/',
description:
'How to create data models for requesting Data Assets.',
href: `${DOCS_BASE_URL}docs/data-request`,
},
{
title: 'Verification Widget Integration',
description: 'How to integrate our widget into your platform',
href: '/',
href: `${DOCS_BASE_URL}docs/data-proof`,
},
]}
/>
Expand Down
7 changes: 4 additions & 3 deletions src/app/(landing)/components/Link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import { usePathname } from 'next/navigation';
import { useRouter } from 'next/navigation';
import { ReactNode, MouseEvent } from 'react';

import { useLenis } from '@studio-freight/react-lenis';
import gsap from 'gsap';

import LenisManager from '../../utils/scroll';

type Props = {
children: ReactNode;
href: string;
Expand All @@ -18,6 +17,8 @@ export default function Link({ href, children, className, onClick }: Props) {
const pathname = usePathname();
const router = useRouter();

const lenis = useLenis();

const handleClick = (e: MouseEvent) => {
e.preventDefault();

Expand All @@ -28,7 +29,7 @@ export default function Link({ href, children, className, onClick }: Props) {
const tl = gsap.timeline();
tl.to('main', { opacity: 0, duration: 0.3 });
tl.add(() => {
LenisManager?.scrollTo(0, { duration: 0.01 });
lenis?.scrollTo(0, { duration: 0.01 });
router.push(href);
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
position: relative;
transition: border-color 0.8s ease;
width: 36px;
cursor: pointer;

&--light {
border: 1px solid #fff;
Expand Down
59 changes: 33 additions & 26 deletions src/app/(landing)/components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import LogoSubstrack from '../icons/logo-substrack';
import LogoTwitter from '../icons/logo-twitter';
import Wrapper from '../wrapper';
import styles from './footer.module.scss';
import routes from '@/constants/routes';
import { DOCS_BASE_URL } from '@/constants/docs';

function splitElementByBrTag(element: HTMLElement): HTMLElement[] {
// Split the innerHTML of the element using the <br/> tag as the delimiter
Expand Down Expand Up @@ -48,58 +50,57 @@ type Props = {
const linksSocial = [
{
icon: LogoTwitter,
href: '/',
href: 'https://twitter.com/gateway_xyz',
},
{
icon: LogoDiscord,
href: '/',
href: 'https://discord.gg/tgt3KjcHGs',
},
{
icon: LogoLinkedin,
href: '/',
href: 'https://www.linkedin.com/company/mygateway/',
},
{
icon: LogoSubstrack,
href: '/',
href: 'https://mygateway.substack.com/',
},
{
icon: LogoGithub,
href: '/',
href: 'https://github.com/Gateway-DAO',
},
];

const linksList = [
{
title: 'Learn',
href: '/',
href: routes.learn,
target: '_self',
},
{
title: 'Build',
href: '/',
},
{
title: 'Explorer',
href: '/',
href: routes.build,
target: '_self',
},
{
title: 'Dashboard',
href: '/',
href: routes.auth,
target: '_self',
},
{
title: 'Privacy',
href: '/',
},
{
title: 'Terms & Conditions',
href: '/',
href: `${DOCS_BASE_URL}docs/privacy-security-standards`,
target: '_blank',
},

{
title: 'Brand Kit',
href: '/',
href: 'https://live.standards.site/gateway',
target: '_blank',
},
{
title: 'Contact',
href: '/',
href: 'mailto:ayyan@mygateway.xyz?subject=Contact Us',
target: '',
},
];

Expand Down Expand Up @@ -168,13 +169,19 @@ export default function Footer({ variant }: Props) {
</span>
</h2>
<p className={styles.text} ref={textRef}>
Natively integrate our products to enable a new paradigm <br />
in digital data. We have built the middleware needed to <br />
facilitate and manage data sharing, ownership, and usage <br />
that was never possible before.
We have built the technology needed to facilitate <br /> regulatory
compliant data sharing, ownership, and usage <br /> that was never
possible before.
</p>

<Button className={styles.button} variant="contained" ref={buttonRef}>
<Button
className={styles.button}
variant="contained"
onClick={() =>
window.open(`${DOCS_BASE_URL}docs/get-started-here`, '_blank')
}
ref={buttonRef}
>
Start now
</Button>
</InView>
Expand Down Expand Up @@ -204,12 +211,12 @@ export default function Footer({ variant }: Props) {

<div className={styles.column}>
<ul className={styles.links_list}>
{linksList.map(({ title, href }, index) => (
{linksList.map(({ title, href, target }, index) => (
<li className={styles.links_item} key={index}>
<GTWLink
className={styles.links_link}
href={href}
target="_blank"
target={target}
>
{title}
</GTWLink>
Expand Down
3 changes: 2 additions & 1 deletion src/app/(landing)/components/header/header.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.element {
left: 0;
height: 100px;
height: 140px;
padding-top: 40px;
position: fixed;
top: 0;
transition: transform 0.6s ease;
Expand Down
Loading