Skip to content

Commit

Permalink
fix privacy screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandelis Symeonidis committed Dec 12, 2023
1 parent eae9ebf commit 2c1e9ee
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 5 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/atoms/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const TitleText = styled.h3<TextProps>`
@media screen and (max-width: ${breakpoints.tablet}) {
font-size: 16px;
line-height: 23px;
}
`;

Expand Down
3 changes: 2 additions & 1 deletion frontend/src/navigation/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useIsMobile } from "../hooks";
import { breakpoints } from "../design";
import { OnboardingMobile } from "../pages/onboarding-mobile/onboarding-mobile";
import { ConnectWalletMobile } from "../pages/connect-wallet-mobile/connect-wallet-mobile";
import { PrivacyMobile } from "../pages/content-mobile";

export const InternalAppWrapper = () => {
return (
Expand Down Expand Up @@ -69,7 +70,7 @@ export const ExternalAppRoutes: FC = () => {
<MainContainer>
<Routes>
<Route path={routes.root} element={isMobile ? <OnboardingMobile /> : <Onboarding />} />
<Route path={routes.privacy} element={<Privacy />} />
<Route path={routes.privacy} element={isMobile ? <PrivacyMobile /> : <Privacy />} />
<Route path="*" element={<InternalAppWrapper />} />
</Routes>
</MainContainer>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/content-mobile/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./privacy-mobile";
30 changes: 30 additions & 0 deletions frontend/src/pages/content-mobile/privacy-mobile.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { FC } from "react";
import { text } from "../../assets";
import { Footer, FormText, MenuText, TitleText } from "../../components";
import { KreadIcon } from "../../components/logo/styles";
import { color } from "../../design";
import { ContentWrapper, FooterContainer, GeneralInfo, InfoContainer, KreadContainer, Title } from "./styles";

// TODO: make content for privacy page
export const PrivacyMobile: FC = () => {
return (
<>
<KreadContainer>
<KreadIcon />
</KreadContainer>
<ContentWrapper>
<InfoContainer>
<MenuText>{text.content.privacyAndTerms}</MenuText>
<TitleText customColor={color.darkGrey}>{text.content.weAreCommittedTo}</TitleText>
<GeneralInfo>
<Title>{text.content.whatInformationDoWe}</Title>
<FormText customColor={color.darkGrey}>{text.content.weCollectPersonal}</FormText>
<Title>{text.content.whatInformationDoWe}</Title>
<FormText customColor={color.darkGrey}>{text.content.weUseTheInformation}</FormText>
</GeneralInfo>
</InfoContainer>
</ContentWrapper>
<Footer />
</>
);
};
43 changes: 43 additions & 0 deletions frontend/src/pages/content-mobile/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import styled from "@emotion/styled";
import { FormText, TitleText } from "../../components";
import { KreadIcon } from "../../components/logo/styles";
import { margins } from "../../design";

export const ContentWrapper = styled.div`
padding: 10px;
overflow-y: scroll;
width: 100vw;
`;
export const Title = styled(FormText)``;

export const InfoContainer = styled.div`
padding-left: 20px;
padding-top: 4%;
${TitleText} {
margin-top: ${margins.mini};
margin-bottom: 28px;
}
${Title} {
margin-top: ${margins.mini};
}
${FormText} {
margin-top: ${margins.mini};
margin-bottom: 28px;
}
width: 100%;
`;

export const GeneralInfo = styled.div`
width: 100%;
`;

export const KreadContainer = styled.div`
display: flex;
flex: 1;
justify-content: center;
margin-top: 30px;
${KreadIcon} {
width: 100px;
height: 24px;
}
`;
5 changes: 4 additions & 1 deletion frontend/src/pages/onboarding-mobile/onboarding-mobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
OnboardingCharacterMobile,
Overlay,
PrimaryButton,
TitleText,
} from "../../components";
import {
ArrowUp,
Expand Down Expand Up @@ -78,7 +79,7 @@ export const OnboardingMobile: FC = () => {
<OnboardingContainer showAnimation={showAnimation}>
<InfoText>
<SectionContainer>
<TextContainer customColor={color.darkGrey}>{text.general.aCharcterBuilderApp}</TextContainer>
<TitleText customColor={color.darkGrey}>{text.general.aCharcterBuilderApp}</TitleText>
</SectionContainer>
<OnboardingCharacterWrapper>
<OnboardingCharacterMobile/>
Expand All @@ -97,6 +98,8 @@ export const OnboardingMobile: FC = () => {
</InfoText>
<MiddleContent height={height} ref={ref}>
<SectionContainer>
<MenuText>{text.general.sagesBy}</MenuText>
<TextContainer customColor={color.darkGrey}>{text.general.sagesIsTheFirst}</TextContainer>
<MenuText>{text.general.whoWeAre}</MenuText>
<TextContainer>
{text.general.isPartOfAgoric}
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/pages/onboarding-mobile/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ export const TextContainer = styled.span<TextProps>`
:first-letter {
text-transform: capitalize;
}
:first-of-type {
margin-top: 8px;
}
margin-top: 24px;
display: inline-block;
${({ customColor }): string => `color: ${customColor || color.darkGrey};`};
Expand Down

0 comments on commit 2c1e9ee

Please sign in to comment.