Skip to content

Commit

Permalink
feat: modified container properties, modified skeletons
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Nov 15, 2023
1 parent a17e0d5 commit efbe039
Show file tree
Hide file tree
Showing 53 changed files with 828 additions and 732 deletions.
28 changes: 6 additions & 22 deletions public/images/logos/bitcoin-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

49 changes: 0 additions & 49 deletions src/app/components/dlc-btc-item/vault-box.tsx

This file was deleted.

3 changes: 2 additions & 1 deletion src/app/components/fade-layer/fade-layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export function FadeLayer({
left: 0,
right: 0,
height: fadeHeight,
backgroundImage: "linear-gradient(to top, background.container.01, transparent)",
backgroundImage:
"linear-gradient(to top, background.container.01, transparent)",
};

return (
Expand Down
47 changes: 25 additions & 22 deletions src/app/components/header/components/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,31 @@ import { HStack } from "@chakra-ui/react";
import { TabButton } from "@components/tab-button/tab-button";

interface NavigationTabsProps {
activeTab: string;
handleTabClick: (route: string) => void;
activeTab: string;
handleTabClick: (route: string) => void;
}

export function NavigationTabs({ activeTab, handleTabClick }: NavigationTabsProps): React.JSX.Element {
return (
<HStack spacing={'25px'} marginRight={'150px'}>
<TabButton
title={'Mint/Unmint dlcBTC'}
isActive={activeTab === '/'}
handleClick={() => handleTabClick('/')}
/>
<TabButton
title={'My Vaults'}
isActive={activeTab === '/my-vaults'}
handleClick={() => handleTabClick('/my-vaults')}
/>
<TabButton
title={'How It Works'}
isActive={activeTab === '/how-it-works'}
handleClick={() => handleTabClick('/how-it-works')}
/>
</HStack>
)
export function NavigationTabs({
activeTab,
handleTabClick,
}: NavigationTabsProps): React.JSX.Element {
return (
<HStack spacing={"25px"} marginRight={"150px"}>
<TabButton
title={"Mint/Unmint dlcBTC"}
isActive={activeTab === "/"}
handleClick={() => handleTabClick("/")}
/>
<TabButton
title={"My Vaults"}
isActive={activeTab === "/my-vaults"}
handleClick={() => handleTabClick("/my-vaults")}
/>
<TabButton
title={"How It Works"}
isActive={activeTab === "/how-it-works"}
handleClick={() => handleTabClick("/how-it-works")}
/>
</HStack>
);
}
17 changes: 10 additions & 7 deletions src/app/components/header/header.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
import React from "react";
import { useLocation, useNavigate } from "react-router-dom";

import { Account } from '@components/account/account';
import { CompanyWebsiteButton } from '@components/company-website-button/company-website-button';
import { HeaderLayout } from '@components/header/components/header.layout';
import { Account } from "@components/account/account";
import { CompanyWebsiteButton } from "@components/company-website-button/company-website-button";
import { HeaderLayout } from "@components/header/components/header.layout";

import { NavigationTabs } from './components/tabs';
import { NavigationTabs } from "./components/tabs";

export function Header(): React.JSX.Element {
const navigate = useNavigate();
Expand All @@ -18,7 +18,10 @@ export function Header(): React.JSX.Element {
return (
<HeaderLayout>
<CompanyWebsiteButton />
<NavigationTabs activeTab={location.pathname} handleTabClick={handleTabClick} />
<NavigationTabs
activeTab={location.pathname}
handleTabClick={handleTabClick}
/>
<Account />
</HeaderLayout>
);
Expand Down
33 changes: 0 additions & 33 deletions src/app/components/mint-unmint-box/mint-unmint-box.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { VStack } from "@chakra-ui/react";
import { HasChildren } from "@models/has-children";

export function MintUnmintBoxLayout({
children,
}: HasChildren): React.JSX.Element {
export function MintUnmintLayout({ children }: HasChildren): React.JSX.Element {
return (
<VStack
px={"15px"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import { Text, VStack } from "@chakra-ui/react";
import { ProtocolSummaryStackLayout } from "./components/protocol-summary-stack.layout";
import { ProtocolHistory } from "@components/protocol-history/protocol-history";

import { ProtocolSummaryStackLayout } from "./components/protocol-summary-stack.layout";

export function ProtocolSummaryStack(): React.JSX.Element {
return (
<ProtocolSummaryStackLayout>
<VStack alignItems={"start"} h={"250px"} w={"50%"} spacing={"15px"}>
<Text alignContent={"start"} color={"white"} fontSize={"lg"}>
TVL
</Text>
<VStack alignItems={"start"} w={"100%"}>
<VStack alignItems={"start"} w={"100%"} spacing={"0px"}>
<Text
alignContent={"start"}
color={"white"}
fontSize={"3xl"}
fontWeight={"extrabold"}
fontWeight={"semibold"}
>
1,650.36 dlcBTC
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ export function SetupInformationStackLayout({
return (
<VStack
alignContent={"start"}
py={"50px"}
pt={"50px"}
h={"auto"}
w={"100%"}
spacing={"25px"}
borderBottom={"3.5px solid grey"}
>
{children}
</VStack>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { HStack, Image, Text, VStack } from "@chakra-ui/react";

interface WalletRequirementProps {
logo: string;
color: string;
walletName: string;
requirement: string;
}

export function WalletRequirement({
logo,
color,
walletName,
requirement,
}: WalletRequirementProps): React.JSX.Element {
return (
<VStack w={"100%"} spacing={"0.5px"}>
<HStack alignContent={"start"} w={"100%"}>
<Image src={logo} h={"15px"}></Image>
<Text color={color} fontWeight={"regular"} textDecoration={"underline"}>
{walletName}
</Text>
</HStack>
<Text align={"start"} color={"white"} w={"100%"}>
{requirement}
</Text>
</VStack>
);
}
Loading

0 comments on commit efbe039

Please sign in to comment.