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

fixes multiple ui issues through out the page #370

Merged
merged 1 commit into from
Nov 10, 2024
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
10 changes: 10 additions & 0 deletions hiring-portal/src/CSS/faqSection.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,14 @@
max-height: 500px;
opacity: 1;
padding-top: 10px;
}

@media (max-width: 768px) {
.faqContainer {
width: 100%;
}

.faqSection {
padding: 7px;
}
}
2 changes: 1 addition & 1 deletion hiring-portal/src/CSS/herosection.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
.searchIcon,
.locationIcon {
position: absolute;
left: 200px;
left: 190px;
color: #000000;
}

Expand Down
283 changes: 145 additions & 138 deletions hiring-portal/src/CSS/jobpage.css
Original file line number Diff line number Diff line change
@@ -1,144 +1,151 @@
.jobpage {
display: flex;
font-family: Arial, sans-serif;
}

display: flex;
font-family: Arial, sans-serif;
}

.sidebar {
width: 300px;
padding: 20px;
background-color: #f8f9fa;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
height: 100vh;
box-sizing: border-box;
overflow-y: auto;
/* border: 2px solid red; */
}

.sidebar-toggle {
display: none;
}

.Clear-btn {
background-color: rgb(234, 39, 39);
cursor: pointer;
color: #ddd;
padding: 8px;
font-weight: 600;
border-radius: 5px;

}

@media (max-width: 500px) {
.sidebar {
width: 300px;
padding: 20px;
background-color: #f8f9fa;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
height: 100vh;
box-sizing: border-box;
overflow-y: auto;
/* border: 2px solid red; */
/* display: none; */
transform: translateX(-100%);
position: absolute;
z-index: 10;
transition: all 0.3s ease-in-out;
}

.sidebar-toggle {
display: none;
}
.Clear-btn {
background-color: rgb(234, 39, 39);
cursor: pointer;
color: #ddd;
padding: 8px;
font-weight: 600;
border-radius: 5px;

}
@media (max-width: 500px) {
.sidebar {
/* display: none; */
transform: translateX(-100%);
position: absolute;
z-index: 10;
transition: all 0.3s ease-in-out;
}
.sidebar-toggle {
letter-spacing: 3px;

display: flex;
justify-content: center;
/* border: 2px solid green; */
}
}

.sidebar h2 {
margin-bottom: 20px;
font-size: 1.5em;
color: #333;
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
}

.filter {
margin-bottom: 20px;
}

.filter label {
font-size: 1em;
color: #555;
display: block;
margin-bottom: 10px;
}

.filter input[type="checkbox"],
.filter input[type="radio"] {
margin-right: 10px;
}

.salary-range {
letter-spacing: 3px;
display: flex;
justify-content: space-between;
}

.salary-range input {
width: 48%;
padding: 5px;
font-size: 1em;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 5px;
}

<<<<<<< main
.filter input[type="text"] {
width: 100%;
padding: 10px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
transition: border-color 0.3s ease-in-out;
}

.filter input[type="text"]:focus {
border-color: #007bff;
outline: none;
}

.filter input[type="text"]::placeholder {
color: #aaa;
}
.filter select {
width: 100%;
padding: 8px;
margin-top: 5px;
font-size: 1em;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 5px;
}

.filter select[multiple] {
height: auto;
}

.location-select {
width: 100%;
margin-top: 5px;
font-size: 1em;
}

.selected-locations {
margin-top: 10px;
font-size: 0.9em;
color: #333;
}

.selected-locations span {
display: inline-block;
margin-right: 5px;

}

.mainarea {
flex: 1;
padding: 20px;
box-sizing: border-box;
}

.mainarea h1 {
font-size: 2em;
margin-bottom: 20px;
color: #333;
justify-content: center;
position: absolute;
top: 61px;
right: 144px;
z-index: 60;
font-size: 40px;
cursor: pointer;
}

}

.sidebar h2 {
margin-bottom: 20px;
font-size: 1.5em;
color: #333;
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
}

.filter {
margin-bottom: 20px;
}

.filter label {
font-size: 1em;
color: #555;
display: block;
margin-bottom: 10px;
}

.filter input[type="checkbox"],
.filter input[type="radio"] {
margin-right: 10px;
}

.salary-range {
display: flex;
justify-content: space-between;
}

.salary-range input {
width: 48%;
padding: 5px;
font-size: 1em;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 5px;
}

<<<<<<< main .filter input[type="text"] {
width: 100%;
padding: 10px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
transition: border-color 0.3s ease-in-out;
}

.filter input[type="text"]:focus {
border-color: #007bff;
outline: none;
}

.filter input[type="text"]::placeholder {
color: #aaa;
}

.filter select {
width: 100%;
padding: 8px;
margin-top: 5px;
font-size: 1em;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 5px;
}

.filter select[multiple] {
height: auto;
}

.location-select {
width: 100%;
margin-top: 5px;
font-size: 1em;
}

.selected-locations {
margin-top: 10px;
font-size: 0.9em;
color: #333;
}

.selected-locations span {
display: inline-block;
margin-right: 5px;

}

.mainarea {
flex: 1;
padding: 20px;
box-sizing: border-box;
}

.mainarea h1 {
font-size: 2em;
margin-bottom: 20px;
color: #333;
}
14 changes: 7 additions & 7 deletions hiring-portal/src/Components/Jobpage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ const Jobpage = () => {
<>
<Navbar />
{/* sidebar mobile toggle */}
<div className="sidebar-toggle" onClick={toggleSidebar}>
{isSidebar ? "x" : "Filters"}
</div>
{/* */}
<div className="jobpage">
<div className="sidebar-toggle" onClick={toggleSidebar}>
{isSidebar ? "x" : "Filters"}
</div>
<div className="sidebar"
style={{ transform: isSidebar ? "translateX(0%)" : "translateX(-100%" }}
>
Expand Down Expand Up @@ -87,8 +87,8 @@ const Jobpage = () => {
<input type="radio" name="remoteOption" value="false" onChange={handleFilterChange} /> On-site
</label>
</div>
<div className="filter">
<div className="filter">

<label>
Industry:
<input
Expand All @@ -100,8 +100,8 @@ const Jobpage = () => {
/>
</label>
</div>
<div className="filter">
<div className="filter">

<label>
Work Location:
<input
Expand Down
Loading