Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added responsive device feature #54

Open
wants to merge 2 commits into
base: Adding-Responsive-for-all-devices-#30
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 141 additions & 9 deletions client/app/Dash/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
@import '@radix-ui/colors/mauve.css';
@import '@radix-ui/colors/violet.css';

.bgcontainer{
.container{
min-width: 100%;
height: 100vh;
overflow: hidden;
display: grid;
grid-template-rows: 0.1fr 0.9fr;
padding: 0 15px;
}
.content{
display: grid;
grid-template-columns: 0.5fr 0.5fr;

}

.left-side{
Expand Down Expand Up @@ -69,6 +69,8 @@
.balance-buy{
display: flex;
font-family: Spartan,sans;

flex-direction: column;
}
.balance{
background-color:#1D1D1D ;
Expand All @@ -78,7 +80,6 @@
margin: 20px;
padding: 20px;
border-radius: 10px;

}
.balance-amt{
color: #fea240;
Expand All @@ -92,7 +93,6 @@
border-radius: 10px;
margin: 0 10px;
font-weight:100;

}
.logout-button{
background-color: #1D1D1D;
Expand All @@ -110,6 +110,7 @@
margin: 0 10px;
font-weight: 100;
}

.buy-stocks{
color: white;
border: 0cm;
Expand All @@ -119,14 +120,13 @@
border-radius: 10px;
width: 40%;
height: 100%;
margin: 20px;
margin: 20px 0;
padding: 20px;
padding-bottom: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;

}
.buy-confirm{
color: #ffffff;
Expand Down Expand Up @@ -158,8 +158,7 @@
width: 80%;
margin: 10px;
background-color: rgba(0, 0, 0, 0);
border-bottom: solid;
border-color: white;
border-bottom: solid 1px white;
}
.buy-input-field:focus{
color: white;
Expand All @@ -168,7 +167,7 @@
border: none;
border-bottom: solid;

box-shadow: none;
box-shadow: none;
outline: none;
}

Expand Down Expand Up @@ -341,4 +340,137 @@ input {
opacity: 1;
transform: translateX(0);
}
}

/* Base styles */
.container {
padding: 0px 15px;
}

/* Responsive Styles */

/* Mobile Styles */
@media (max-width: 480px) {
.content {
flex-direction: column;
}

.topbar {
flex-direction: column;
justify-content: center;
}

.holdings {
flex-direction: column;
padding: 10px;
}


.balance-buy {
flex-direction: column;
align-items: center;
}

.balance {
width: 100%;
margin: 10px 0;
}

.buy-stocks {
width: 100%;
}

.buy-confirm {
width: 100%;
}

.left-side, .right-side {
width: 100%;
}

}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 768px) {
.content {
display: flex;
flex-direction: column;
}

.topbar {
flex-direction: column;
}

.balance-buy {
flex-direction: row;
justify-content: space-between;
}

.left-side, .right-side {
width: 100%;
}

.buy-stocks {
width: 45%;
}
}

/* Laptop Styles */
@media (min-width: 769px) and (max-width: 1024px) {
.content {
display: grid;
grid-template-columns: 1fr 1fr; /* Two columns */
}

.topbar {
justify-content: space-between;
}

.left-side, .right-side {
display: flex;
flex-direction: column;
}

.balance-buy {
flex-direction: row;
justify-content: space-between;
}

.buy-stocks {
width: 40%;
}

.balance {
width: 60%;
}
}

/* Desktop Styles */
@media (min-width: 1025px) {
.content {
display: grid;
grid-template-columns: 1fr 1fr; /* Two columns */
}

.topbar {
justify-content: space-between;
}

.left-side, .right-side {
display: flex;
flex-direction: column;
}

.balance-buy {
flex-direction: row;
justify-content: space-between;
}

.buy-stocks {
width: 40%;
}

.balance {
width: 60%;
}
}
65 changes: 64 additions & 1 deletion client/app/Forget-Password/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ body {

.container {
background-color: #333333;
padding: 40px;
/* padding: 40px; */
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
max-width: 400px;
Expand All @@ -20,6 +21,9 @@ body {
h1 {
color: #fff;
margin-bottom: 20px;


font-size: 24px;
}

input {
Expand Down Expand Up @@ -52,4 +56,63 @@ button:hover {

.heading{
font-size: 30px;
}

/* Tablet */
@media (max-width: 768px) {
.container {
padding: 30px;
}
h1 {
font-size: 28px;
}
}

/* Mobile Styles */
@media (max-width: 480px) {
.container {
padding: 20px;
max-width: 90%;
}
h1 {
font-size: 24px;
}
input, button {
font-size: 14px;
}
}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 768px) {
.container {
padding: 30px;
}
h1 {
font-size: 28px;
}
}

/* Laptop Styles */
@media (min-width: 769px) and (max-width: 1024px) {
.container {
padding: 40px;
max-width: 70%;
}
h1 {
font-size: 30px;
}
input, button {
font-size: 16px;
}
}

/* Desktop Styles */
@media (min-width: 1025px) {
.container {
padding: 50px;
max-width: 400px;
}
h1 {
font-size: 32px;
}
}
Loading