Skip to content

Commit

Permalink
Merge branch 'main' into fix-date-input-return-nan
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou authored Nov 7, 2024
2 parents 1249427 + f266105 commit 310a88d
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 171 deletions.
36 changes: 0 additions & 36 deletions assets/icons/logo-simple.svg

This file was deleted.

38 changes: 38 additions & 0 deletions packages/components/ImageBackgroundLogoText.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { FC } from "react";
import { ImageBackground, ImageSourcePropType, TextStyle } from "react-native";

import { BrandText } from "./BrandText";
import { SVG } from "./SVG";
import { SpacerColumn } from "./spacer";

import logoSVG from "@/assets/logos/logo-white.svg";
import { useMaxResolution } from "@/hooks/useMaxResolution";
import { fontSemibold22, fontSemibold28 } from "@/utils/style/fonts";
import { RESPONSIVE_BREAKPOINT_S } from "@/utils/style/layout";

export const ImageBackgroundLogoText: FC<{
text: string;
backgroundImage: ImageSourcePropType;
}> = ({ text, backgroundImage }) => {
const { width } = useMaxResolution();
const isSmallScreen = width < RESPONSIVE_BREAKPOINT_S;
const logoSize = isSmallScreen ? 70 : 88;
const fontStyle: TextStyle = isSmallScreen ? fontSemibold22 : fontSemibold28;
const height = 380;

return (
<ImageBackground
source={backgroundImage}
style={{
alignItems: "center",
justifyContent: "center",
height,
width: "100%",
}}
>
<SVG source={logoSVG} width={logoSize} height={logoSize} />
<SpacerColumn size={1} />
<BrandText style={fontStyle}>{text}</BrandText>
</ImageBackground>
);
};
39 changes: 0 additions & 39 deletions packages/components/IntroLogoText.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react";
import { StyleSheet, View } from "react-native";

import { LaunchpadBanner } from "./LaunchpadCreate/components/LaunchpadBanner";

import LaunchpadBannerImage from "@/assets/banners/launchpad.jpg";
import { BrandText } from "@/components/BrandText";
import { ImageBackgroundLogoText } from "@/components/ImageBackgroundLogoText";
import { ScreenContainer } from "@/components/ScreenContainer";
import {
LargeBoxButton,
Expand Down Expand Up @@ -36,7 +36,10 @@ const BUTTONS: LargeBoxButtonProps[] = [
export const LaunchpadApplyScreen: ScreenFC<"LaunchpadApply"> = () => {
return (
<ScreenContainer>
<LaunchpadBanner />
<ImageBackgroundLogoText
backgroundImage={LaunchpadBannerImage}
text="Apply to Launchpad"
/>
<SpacerColumn size={2} />
<BrandText style={fontSemibold28}>Welcome</BrandText>
<SpacerColumn size={2} />
Expand Down

This file was deleted.

9 changes: 6 additions & 3 deletions packages/screens/LaunchpadERC20/LaunchpadERC20Screen.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react";
import { StyleSheet, View } from "react-native";

import { LaunchpadERC20Banner } from "./component/LaunchpadERC20Banner";

import LaunchpadERC20BannerImage from "@/assets/banners/launchpadERC20.jpg";
import { BrandText } from "@/components/BrandText";
import { ImageBackgroundLogoText } from "@/components/ImageBackgroundLogoText";
import { OmniLink } from "@/components/OmniLink";
import { ScreenContainer } from "@/components/ScreenContainer";
import {
Expand Down Expand Up @@ -43,7 +43,10 @@ export const LaunchpadERC20Screen: ScreenFC<"LaunchpadERC20"> = () => {
forceNetworkFeatures={[NetworkFeature.LaunchpadERC20]}
forceNetworkKind={NetworkKind.Gno}
>
<LaunchpadERC20Banner />
<ImageBackgroundLogoText
backgroundImage={LaunchpadERC20BannerImage}
text="Launchpad ERC20 Platform"
/>

<SpacerColumn size={2} />

Expand Down
44 changes: 0 additions & 44 deletions packages/screens/LaunchpadERC20/component/LaunchpadERC20Banner.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions packages/screens/TeritoriNameService/TNSHomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import registerSVG from "../../../assets/icons/register-neutral77.svg";
import useSelectedWallet from "../../hooks/useSelectedWallet";

import { BrandText } from "@/components/BrandText";
import { IntroLogoText } from "@/components/IntroLogoText";
import { ImageBackgroundLogoText } from "@/components/ImageBackgroundLogoText";
import { ScreenContainer } from "@/components/ScreenContainer";
import { ActivityTable } from "@/components/activity/ActivityTable";
import { FlowCard } from "@/components/cards/FlowCard";
Expand Down Expand Up @@ -139,8 +139,8 @@ export const TNSHomeScreen: ScreenFC<"TNSHome"> = ({ route }) => {
responsive
>
<View>
<IntroLogoText
title={`${selectedNetwork?.displayName} Name Service`}
<ImageBackgroundLogoText
text={`${selectedNetwork?.displayName} Name Service`}
backgroundImage={TNSBannerPNG}
/>
<View
Expand Down

0 comments on commit 310a88d

Please sign in to comment.