Skip to content

Commit

Permalink
backup commit
Browse files Browse the repository at this point in the history
  • Loading branch information
qwrtsdev committed Sep 14, 2024
1 parent 4b31df5 commit e8d9a4e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

height: 100vh;
height: 100dvh;
margin: 0;
}
4 changes: 2 additions & 2 deletions src/routes/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body {

/* stylize main content */
.appContent {
width: 100%;
max-width: 480px;
width: 100dvw;
height: 100dvh;
}
}
26 changes: 11 additions & 15 deletions src/routes/MainPage/MainPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
src: url(../../../..//public/fonts/Inter-Variable.ttf);
}

.error-content-wrap {
/* .error-content-wrap {
display: flex;
flex-direction: column;
justify-content: center;
/* ## Sub system ## */
.loading-state {
color: #1cb553;
font-size: 3rem;
Expand All @@ -17,7 +16,6 @@
animation: spin 1.5s linear infinite;
}
/* ## Error System ## */
.error-state {
font-family: InterV;
background-color: #797979;
Expand All @@ -29,7 +27,6 @@
justify-content: center;
text-align: center;
/* gap: 0.75rem; */
width: 100%;
.error-head {
Expand Down Expand Up @@ -62,12 +59,11 @@
}
}
/* ## Main System ## */
.content-wrap {
display: flex;
flex-direction: column;
height: 75dvh;
max-height: 75dvh;
.card-swipable {
Expand Down Expand Up @@ -116,27 +112,27 @@
}
.card-swipable {
position: relative; /* Ensure that the child elements are positioned relative to this container */
width: 100%; /* Adjust this as needed */
height: 100%; /* Adjust this as needed */
position: relative;
width: 100%;
height: 100%;
}
.card-generate {
position: absolute;
top: 0;
left: 0;
width: 100%; /* Adjust to control card size */
height: 100%; /* Adjust to control card size */
z-index: 1; /* Default stacking order */
width: 100%;
height: 100%;
z-index: 1;
}
.card-generate:nth-child(1) {
z-index: 2; /* First card on top */
z-index: 2;
}
.card-generate:nth-child(2) {
z-index: 1; /* Second card below */
}
z-index: 1;
} */

/* ## for smaller devices ## */
@media only screen and (max-width: 480px) {
Expand Down
9 changes: 5 additions & 4 deletions src/routes/MainPage/MainPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,16 @@ function MainPage() {
}

return (
<div className='content-wrap'>
<div className="card-swipable">
<div className='content-display'>
{/* <div className="card-swipable">
{track.map((myTracks) => (
<div className="card-generate" key={myTracks.trackId}>
<TinderCard
preventSwipe={['up','down']}
onSwipe={onSwipe}
onCardLeftScreen={() => {onCardLeftScreen('test')}}
swipeThreshold={1500}
swipeThreshold={100}
flickOnSwipe={true}
>
<Card trackInfo={myTracks} />
</TinderCard>
Expand All @@ -140,7 +141,7 @@ function MainPage() {
<button className="listen" onClick={warningToast}>
<FontAwesomeIcon icon={faHeadphonesSimple} />
</button>
</div>
</div> */}
</div>
);
}
Expand Down

0 comments on commit e8d9a4e

Please sign in to comment.