refactor: change UI of login/list and fix Api not being defined in context

This commit is contained in:
Prayag Prajapati committed 2024-11-20 11:16:22 +05:30
1 parent b0e08ce4bd
commit c8409d8a01
13 files changed
+243 -171

No files matched your search

+38 -11
View File
@@ -1,16 +1,35 @@
.user {
&List {
display: flex;
gap: 1em;
width: min(60vw, 45em);
&-list {
&-container {
display: flex;
flex-flow: row wrap;
gap: 1em;
justify-content: center;
align-items: center;
height: 30em;
overflow-y: auto;
overflow-x: hidden;
scroll-snap-type: y mandatory;
margin: 2em 0;
}
}
&Card {
border-radius: $border-radius-default;
display: flex;
flex-flow: column;
flex: 1 1 0px;
overflow: hidden;
&-card {
width: fit-content;
scroll-snap-align: start;
text-decoration: none !important;
color: white !important;
&-image{
width: 100%;
height: 100%;
object-fit: cover;
&-container{
aspect-ratio: 1;
width: 8em;
overflow: hidden;
border-radius: 100%;
}
}
}
&Icon {
font-size: 5em;
@@ -31,13 +50,21 @@
}
.login {
width: 100vw;
// width: 50em;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&-container{
width: min(40em,80vw);
height: 100vh;
margin: auto;
padding-top: 4em;
padding-bottom: 4em;
}
&-form {
width: 28em;
display: flex;