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

Privacy Policy and Terms of Service links #770

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/.pnp
.pnp.js
.yarn/install-state.gz
package-lock.json

# testing
/coverage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "next start",
"lint": "next lint",
"test": "playwright test",
"install-if-package-changed": "git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet yarn.lock && npm install || exit 0",
"install-if-package-changed": "git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet yarn.lock && yarn install || exit 0",
"prepare": "husky",
"pre-commit": "concurrently 'lint-staged'",
"git-info": "rm -rf src/generated/ && mkdir src/generated/ && echo export default \"{\\\"commitHash\\\": \\\"$(git rev-parse --short HEAD)\\\", \\\"version\\\": \\\"$(git describe --tags --always)\\\"};\" > src/generated/gitInfo.ts"
Expand Down
2 changes: 1 addition & 1 deletion src/app/(sidebar)/explore-endpoints/[[...pages]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const infoCards = [
id: "horizon",
title: "Horizon Endpoints",
description: "TODO: add text",
buttonLabel: "Go to docs",
buttonLabel: "See docs",
buttonIcon: <Icon.LinkExternal01 />,
buttonAction: () =>
window.open(
Expand Down
16 changes: 15 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Card, Link, Text, Icon } from "@stellar/design-system";
import { NextLink } from "@/components/NextLink";
import { LayoutContentContainer } from "@/components/layout/LayoutContentContainer";
import { InfoCards } from "@/components/InfoCards";
import { SdsLink } from "@/components/SdsLink";
import { Routes } from "@/constants/routes";

export default function Introduction() {
Expand Down Expand Up @@ -88,7 +89,20 @@ export default function Introduction() {

<InfoCards infoCards={infoCards} />

{/* TODO: add TOS and Privacy */}
<div className="IntroFooter">
<SdsLink
href="https://www.stellar.org/privacy-policy"
variant="secondary"
>
Privacy Policy
</SdsLink>
<SdsLink
href="https://www.stellar.org/terms-of-service"
variant="secondary"
>
Terms of Service
</SdsLink>
</div>
</LayoutContentContainer>
);
}
10 changes: 10 additions & 0 deletions src/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
display: flex;
flex-direction: column;
gap: pxToRem(12px);
min-height: 100%;
}

// Sideber
Expand Down Expand Up @@ -299,3 +300,12 @@
margin-bottom: 0 !important;
}
}

.IntroFooter {
flex: 1;
display: flex;
align-items: flex-end;
gap: pxToRem(12px);
font-size: pxToRem(14px);
line-height: pxToRem(20px);
}
Loading