Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,82 +1,109 @@
/* UserProfile.module.css */

.userProfileContainer {
font-family: Arial, sans-serif;
max-width: 1200px;
max-width: 1300px;
margin: auto;
padding: 20px;
font-family: Arial, sans-serif;
color: #333;
}

.contentWrapper {
.profileHeader {
display: flex;
flex-wrap: wrap; /* Allows wrapping for smaller screens */
align-items: center;
gap: 20px;
margin-bottom: 30px;
}

.loadsSection, .profileSection, .driversSection {
background-color: #f9f9f9;
padding: 15px;
.profileImage {
width: 150px;
height: 150px;
object-fit: cover;
border-radius: 50%;
border: 3px solid #2980b9;
}

.profileName h1 {
margin: 0;
font-size: 2rem;
color: #2980b9;
}

.profileName p {
margin: 4px 0;
font-size: 1rem;
}

.userInfoSection {
margin-bottom: 30px;
}

.infoGrid {
display: flex;
flex-wrap: wrap;
gap: 15px;
}

.infoCard {
background: #f5f5f5;
padding: 12px 15px;
border-radius: 8px;
border: 1px solid #ddd;
flex: 1;
min-width: 280px; /* Minimum width to improve responsiveness */
flex: 1 1 200px;
min-width: 180px;
}

.loadsSection {
max-width: 400px;
.sectionsWrapper {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

.loadsSection, .driversSection {
flex: 1;
min-width: 280px;
background: #f9f9f9;
padding: 15px;
border-radius: 8px;
border: 1px solid #ddd;
}

.loadItem, .driverItem {
background-color: #fff;
background: #fff;
padding: 12px;
margin-bottom: 10px;
margin-bottom: 12px;
border-radius: 6px;
border: 1px solid #ddd;
border-radius: 4px;
}

.loadLink, .buttonLink {
.loadLink {
color: #2980b9;
text-decoration: none;
}

.loadLink:hover, .buttonLink:hover {
.loadLink:hover {
text-decoration: underline;
}

.profileSection {
flex: 2;
}

.profileImage {
width: 150px;
height: auto;
border-radius: 8px;
margin-bottom: 10px;
.buttonContainer {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 20px;
justify-content: center;
}

.button {
padding: 10px 20px;
background-color: #2980b9;
background: #2980b9;
color: #fff;
border-radius: 5px;
border: none;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
text-align: center;
margin: 5px 0;
display: inline-block;
}

.button:hover {
background-color: #1a66a0;
}

.buttonContainer {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 20px;
justify-content: center;
background: #1a66a0;
}

.loading,
Expand All @@ -87,10 +114,15 @@
}

@media (max-width: 768px) {
.contentWrapper {
flex-direction: column; /* Stack sections vertically on smaller screens */
.profileHeader {
flex-direction: column;
align-items: center;
text-align: center;
}
.sectionsWrapper {
flex-direction: column;
}
.buttonContainer {
flex-direction: column; /* Stack buttons vertically */
.infoGrid {
flex-direction: column;
}
}
Loading
Loading