From 3dad8ff4ab15d37245814d43b70d7f9bc1cd2dac Mon Sep 17 00:00:00 2001 From: Iveta Date: Tue, 5 Mar 2024 13:49:46 -0500 Subject: [PATCH] Privacy Policy and Terms of Service links --- .gitignore | 1 + package.json | 2 +- .../explore-endpoints/[[...pages]]/page.tsx | 2 +- src/app/page.tsx | 16 +++++++++++++++- src/styles/globals.scss | 8 ++++++++ 5 files changed, 26 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d9e31b96..8e8f1e02 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ /.pnp .pnp.js .yarn/install-state.gz +package-lock.json # testing /coverage diff --git a/package.json b/package.json index ae2220aa..3fc73bfc 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/app/(sidebar)/explore-endpoints/[[...pages]]/page.tsx b/src/app/(sidebar)/explore-endpoints/[[...pages]]/page.tsx index ca022358..f9fed4b7 100644 --- a/src/app/(sidebar)/explore-endpoints/[[...pages]]/page.tsx +++ b/src/app/(sidebar)/explore-endpoints/[[...pages]]/page.tsx @@ -20,7 +20,7 @@ const infoCards = [ id: "horizon", title: "Horizon Endpoints", description: "TODO: add text", - buttonLabel: "Go to docs", + buttonLabel: "See docs", buttonIcon: , buttonAction: () => window.open( diff --git a/src/app/page.tsx b/src/app/page.tsx index 2a69dd54..c5222128 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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() { @@ -88,7 +89,20 @@ export default function Introduction() { - {/* TODO: add TOS and Privacy */} +
+ + Privacy Policy + + + Terms of Service + +
); } diff --git a/src/styles/globals.scss b/src/styles/globals.scss index c0b6ec4b..e5d6493c 100644 --- a/src/styles/globals.scss +++ b/src/styles/globals.scss @@ -106,6 +106,7 @@ display: flex; flex-direction: column; gap: pxToRem(12px); + min-height: 100%; } // Sideber @@ -299,3 +300,10 @@ margin-bottom: 0 !important; } } + +.IntroFooter { + flex: 1; + display: flex; + align-items: flex-end; + gap: pxToRem(12px); +}