Skip to content

Commit

Permalink
feat: airdrop website copies and stuff (anoma#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszjasiuk authored Dec 6, 2023
1 parent 3de0a96 commit b513f20
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 17 deletions.
14 changes: 10 additions & 4 deletions apps/airdrop/src/App/AirdropConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,16 @@ export const AirdropConfirmation: React.FC = () => {
</AirdropConfirmationHeading>
<Text className="fade-in" themeColor={"utility1"}>
NAM will be available directly in your wallet
<br /> at Namada Mainnet launch, subject to the
<br />{" "}
<LinkButton href="/terms-of-service" themeColor="utility1">
<b>Terms of Service</b>
<br /> in the Namada mainnet genesis block proposal
<br /> made by the Anoma Foundation, subject to the
<br />
<LinkButton
href="/terms-and-conditions"
themeColor="utility1"
target="_blank"
rel="noreferrer nofollow"
>
<b>Terms & Conditions</b>
</LinkButton>
</Text>
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion apps/airdrop/src/App/App.components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ body {
? color("utility1", "main")(props)
: color("primary", "main")(props)};
background-image: url(/images/background.svg);
background-image: url(/assets/images/background.svg);
background-repeat: repeat;
background-size: 100px 100px;
background-position-y: 20px;
Expand Down
11 changes: 7 additions & 4 deletions apps/airdrop/src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ export const App: React.FC = () => {
<GlobalStyles colorMode="dark" />
<BrowserView>
<PageHeader
showStartOver={pathname !== "/" && pathname !== "/terms-of-service"}
showStartOver={
pathname !== "/" && pathname !== "/terms-and-conditions"
}
showTermsOfService={pathname === "/"}
showDomainWarning={pathname === "/"}
showBackToClaim={pathname === "/terms-of-service"}
showBackToClaim={pathname === "/terms-and-conditions"}
yellowLogo={
pathname !== "/" &&
pathname !== "/claim-confirmed" &&
pathname !== "/terms-of-service"
pathname !== "/terms-and-conditions"
}
/>
<Routes>
Expand Down Expand Up @@ -74,7 +76,8 @@ export const App: React.FC = () => {
)
}
/>
<Route path={`/terms-of-service`} element={<TermsOfService />} />
<Route path={`/terms-and-conditions`} element={<TermsOfService />} />
<Route path="*" element={<Navigate to="/" replace={true} />}></Route>
</Routes>
</BrowserView>
<MobileView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const AcceptTermsCheckbox = ({
<Checkbox disabled={disabled} checked={checked} onChange={onChange} />
<span>
You agree to the{" "}
<a href="/terms-of-service" target="_blank">
Terms of Service
<a href="/terms-and-conditions" target="_blank">
Terms & Conditions
</a>{" "}
and are not in the US or any other prohibited jurisdiction
</span>
Expand Down
4 changes: 2 additions & 2 deletions apps/airdrop/src/App/Common/PageHeader/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ export const PageHeader = ({

{showTermsOfService && (
<PageHeaderLink
onClick={() => navigate("/terms-of-service")}
href="/terms-and-conditions"
target="_blank"
rel="noreferrer nofollow"
>
Terms of Service
Terms & Conditions
</PageHeaderLink>
)}
</PageHeaderContainer>
Expand Down
4 changes: 2 additions & 2 deletions apps/airdrop/src/App/Layouts/SidebarPage/SidebarPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const SidebarPage = ({
<SidebarPageGrid>
<aside>
<SidebarTitle>
<TermsLinkWrapper href="/terms-of-service" target="_blank">
Terms of Service{" "}
<TermsLinkWrapper href="/terms-and-conditions" target="_blank">
Terms & Conditions{" "}
<IconWrap>
<ExternalPageIcon />
</IconWrap>
Expand Down
4 changes: 2 additions & 2 deletions apps/airdrop/src/App/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const Main: React.FC = () => {
);
}}
>
Read annoucement
Read announcement
<i className="external-icon">
<ExternalPageIcon />
</i>
Expand Down Expand Up @@ -331,7 +331,7 @@ export const Main: React.FC = () => {
visible={isGithubFetching}
variant="full"
status={"Please wait, we are checking the GitHub claim"}
imageUrl="/images/loading.gif"
imageUrl="/assets/images/loading.gif"
/>
</>
);
Expand Down

0 comments on commit b513f20

Please sign in to comment.