Skip to content

Commit

Permalink
style: update spacing PE-5161
Browse files Browse the repository at this point in the history
  • Loading branch information
fedellen committed Dec 13, 2023
1 parent 5993e0b commit f7b5ec5
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 25 deletions.
38 changes: 25 additions & 13 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
font-family: Wavehaus-Semi, sans-serif;
font-family: Wavehaus-Book, sans-serif;
line-height: 1.5;
font-weight: 400;

Expand All @@ -19,6 +19,30 @@
--dark-gray: #171717;
--gray: #7d7d7d;
--off-gray: #787878;

--mobile: 640px;
--tablet: 800px;
--desktop: 1200px;

font-size: 0.75rem;
}

@media (min-width: 640px) {
:root {
font-size: 0.9rem;
}
}

@media (min-width: 800px) {
:root {
font-size: 1.2rem;
}
}

@media (min-width: 1200px) {
:root {
font-size: 1.4rem;
}
}

/* Firefox */
Expand All @@ -35,18 +59,6 @@ input[type="number"] {
}
}

#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
font-family: Wavehaus-Book;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.ardrive-logo:hover {
filter: drop-shadow(0 0 2em var(--ardrive-red));
}
Expand Down
9 changes: 9 additions & 0 deletions src/pages/GiftPage.content.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const GiftPageContent = {
header: "Gift Storage Credits",
headerParagraph:
"Credits can be redeemed for a secure and permanent place to store precious memories such as photos, videos, docs and more.",
recipientParagraph:
"Your recipient will receive an email with instructions on how to redeem and use their gift of permanent storage.",
recipientParagraph2:
"If you'd prefer them to receive the email at another time, please enter your own email address and plan to forward the email when you'd like the recipient to receive your gift.",
};
15 changes: 6 additions & 9 deletions src/pages/GiftPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { ErrMsgCallbackAsProps } from "../types";
import Faq from "../components/Faq";
import { useLocation } from "react-router";

import { GiftPageContent } from "./GiftPage.content";

const maxUSDAmount = 10000;
const minUSDAmount = 5;

Expand Down Expand Up @@ -110,11 +112,8 @@ function GiftForm({ errorCallback }: ErrMsgCallbackAsProps) {
return (
<>
<form className="form">
<h1>Gift Credits to a friend.</h1>
<p>
Credits can be used to upload photos, music, docs, or any other file
that needs permanent safe-keeping
</p>
<h1>{GiftPageContent.header}</h1>
<p>{GiftPageContent.headerParagraph}</p>
<div className="form-section">
<label className="form-label">Suggested USD amounts</label>
<div className="suggested-amount-buttons">
Expand Down Expand Up @@ -212,10 +211,8 @@ function GiftForm({ errorCallback }: ErrMsgCallbackAsProps) {
}}
/>

<p>
Your recipient will receive an email with instructions on how to
redeem and use their gift of permanent storage
</p>
<p>{GiftPageContent.recipientParagraph}</p>
<p>{GiftPageContent.recipientParagraph2}</p>
</div>

<div className="form-section">
Expand Down
13 changes: 11 additions & 2 deletions src/pages/Page.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#root {
margin: 0 auto;
padding: 2rem;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

#version-footer {
font-family: "Wavehaus-Bold";
font-size: 14px;
Expand Down Expand Up @@ -28,14 +38,13 @@
justify-content: center;
margin: 0rem 2rem;
width: 100%;
max-width: 28rem;
max-width: 32rem;
}

.form-section {
display: flex;
flex-direction: column;
align-items: left;
margin: 0.5rem 1rem;
width: 100%;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/RedeemPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function RedeemForm({ errorCallback }: ErrMsgCallbackAsProps) {
</div>

<div className="form-section">
<label className="form-label">Redemption Code*</label>
<label className="form-label">Redemption ID*</label>
<input
type="text"
className="form-input"
Expand Down

0 comments on commit f7b5ec5

Please sign in to comment.