Skip to content

Commit

Permalink
Privacy Policy and Terms of Service links (#770)
Browse files Browse the repository at this point in the history
* Privacy Policy and Terms of Service links

* Update font size
  • Loading branch information
quietbits authored Mar 5, 2024
1 parent fa09019 commit f0cada8
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
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);
}

0 comments on commit f0cada8

Please sign in to comment.