Skip to content

Commit

Permalink
further styling
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 2, 2024
1 parent 73713e3 commit aa4d09b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 11 additions & 4 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,18 @@
}

.avatar {
display: flex;
align-items: center;
justify-content: center;
display: flex;
width: 100%;
overflow: hidden;
height: 100%;
padding: 1em 2em 1em 2em;
}

.avatar img {
scale: 0.8;
object-fit: scale-down;
max-width: 100%;
max-height: 100%;
object-fit: scale-down;
}

.add-to-home {
Expand Down Expand Up @@ -158,9 +157,17 @@
justify-content: flex-end;
}

.skip-button span {
cursor: pointer;
}

.back-button {
display: flex;
padding: 1em;
font-size: 0.8rem;
justify-content: flex-start;
}

.back-button img {
cursor: pointer;
}
5 changes: 4 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ function App() {
setView(View.CONNECT);
};

const skip = () => {
setView(View.CONNECT);
};
const goBack = () => {
if (view === View.LANDING) {
return;
Expand All @@ -43,7 +46,7 @@ function App() {
{view === View.LANDING && (
<div className="components-container">
<div className="skip-button">
<span>Skip</span>
<span onClick={skip}>Skip</span>
</div>
<div className="avatar">
<img src={avatarScooter} alt="" />
Expand Down

0 comments on commit aa4d09b

Please sign in to comment.