Skip to content

Commit

Permalink
Refactor UI layout in App.tsx and index.css
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed May 2, 2024
1 parent c6aeaf3 commit ff9c399
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 23 deletions.
56 changes: 33 additions & 23 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,31 +187,37 @@ function App() {

return (
<>
<div className="flex flex-col overflow-hidden h-screen w-screen rounded-xl bg-customBlue">
<div className="flex flex-col overflow-hidden h-screen w-screen rounded-xl bg-customGrayWallet">
{view === View.LANDING && (
<div className="components-container">
<SkipButton skip={skip} />
<Avatar src={avatarScooter} />
<div className="flex flex-col bg-white pt-4 pr-8 pb-8 pl-8 gap-4 rounded-t-3xl rounded-bl-md rounded-br-md shadow-custom-white">
<div>
<h2 className="headline">
Telegram Mini App Demo
</h2>
</div>
<div>
<p className="text-customGrayText mt-0 mr-0 mb-4 ml-0">
Click on the button below and follow the
instructions to link your wallet to this
telegram mini app demo.
</p>
<p className="text-customGrayText mt-0 mr-0 mb-4 ml-0">
Softstack is a Web3 software development,
cybersecurity and consulting service
partner.
</p>
<>
<div className="components-container mb-2">
<SkipButton skip={skip} />
<Avatar src={avatarScooter} />
<div className="flex flex-col bg-white pt-4 pr-8 pb-8 pl-8 gap-4 rounded-t-3xl rounded-bl-md rounded-br-md shadow-custom-white">
<div>
<h2 className="headline">
Telegram Mini App Demo
</h2>
</div>
<div>
<p className="text-customGrayText mt-0 mr-0 mb-4 ml-0">
Click on the button below and follow the
instructions to link your wallet to this
telegram mini app demo.
</p>
<p className="text-customGrayText mt-0 mr-0 mb-4 ml-0">
Softstack is a Web3 software
development, cybersecurity and
consulting service partner.
</p>
</div>
</div>
</div>
</div>
<PrimaryButton
title="Add to your Home Screen"
callback={skip}
/>
</>
)}
{view === View.CONNECT && (
<div className="components-container">
Expand Down Expand Up @@ -248,7 +254,7 @@ function App() {
)}
{view === View.CONNECTED && (
<div>
<div className="components-container">
<div className="components-container mb-2">
<BackButton goBack={goBack} />
<Avatar src={avatarTable} height="60%" />
<div className="flex flex-col bg-white pt-4 px-8 pb-8 min-h-fit gap-2 rounded-t-3xl rounded-b-xl shadow-custom-white">
Expand Down Expand Up @@ -277,6 +283,10 @@ function App() {
</div>
</div>
</div>
<PrimaryButton
title="Open my Wallet"
callback={openWallet}
/>
</div>
)}
{view === View.WALLET && (
Expand Down
2 changes: 2 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ body {
flex-direction: column;
height: 100%;
width: 100%;
background-color: #aadaf1;
border-radius: 12px;
}

@media (prefers-color-scheme: light) {
Expand Down

0 comments on commit ff9c399

Please sign in to comment.