mirror of
https://github.com/acid-info/free.technology.git
synced 2025-02-23 15:08:28 +00:00
feat: update filter mobile style
This commit is contained in:
parent
ca09101716
commit
7417b76851
@ -120,7 +120,7 @@ const FooterInto = styled.div`
|
||||
gap: 16px;
|
||||
|
||||
@media (max-width: ${breakpoints.md}px) {
|
||||
& > div:first-child {
|
||||
& > div:first-of-type {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@ -243,11 +243,11 @@ const Org = styled.div`
|
||||
width: 50%;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.18);
|
||||
|
||||
p:first-child {
|
||||
p:first-of-type {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
p:nth-child(2) {
|
||||
p:nth-of-type(2) {
|
||||
margin-top: auto;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
@ -261,7 +261,7 @@ const Org = styled.div`
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
p:nth-child(2) {
|
||||
p:nth-of-type(2) {
|
||||
padding-top: 20px;
|
||||
padding-bottom: unset;
|
||||
margin-top: unset;
|
||||
|
@ -32,6 +32,7 @@ const JobFilter = ({ jobs, activeBUs, setActiveBUs }: Props) => {
|
||||
return (
|
||||
<Container>
|
||||
<Title>Open Vacancies</Title>
|
||||
<Border />
|
||||
<BUs>
|
||||
<Tag active={activeBUs.length === 0} onClick={() => setActiveBUs([])}>
|
||||
All Jobs
|
||||
@ -50,6 +51,7 @@ const JobFilter = ({ jobs, activeBUs, setActiveBUs }: Props) => {
|
||||
<NoJobs>No Open Positions</NoJobs>
|
||||
)}
|
||||
</BUs>
|
||||
<Border />
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
@ -58,7 +60,6 @@ const Container = styled.div`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
gap: 24px;
|
||||
margin-top: calc(${uiConfigs.navbarHeight}px + 24px);
|
||||
`
|
||||
|
||||
@ -68,16 +69,14 @@ const Title = styled.h3`
|
||||
font-weight: 400;
|
||||
line-height: 130%; /* 67.6px */
|
||||
text-transform: capitalize;
|
||||
margin-bottom: 24px;
|
||||
`
|
||||
|
||||
const BUs = styled.div`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.18);
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.18);
|
||||
padding: 16px 0;
|
||||
overflow-x: auto;
|
||||
gap: 16px;
|
||||
padding: 16px 0;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
@ -90,6 +89,14 @@ const BUs = styled.div`
|
||||
}
|
||||
`
|
||||
|
||||
const Border = styled.hr`
|
||||
background: rgba(0, 0, 0, 0.18);
|
||||
border: 0;
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
`
|
||||
|
||||
const Tag = styled.div<{ active: boolean }>`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -100,12 +107,16 @@ const Tag = styled.div<{ active: boolean }>`
|
||||
line-height: 20px;
|
||||
height: 28px;
|
||||
border-radius: 14px;
|
||||
padding: 0 14px;
|
||||
padding: 4px 14px;
|
||||
box-sizing: border-box;
|
||||
text-transform: capitalize;
|
||||
cursor: pointer;
|
||||
border: 1px solid black;
|
||||
white-space: nowrap;
|
||||
|
||||
@media (max-width: ${breakpoints.md}px) {
|
||||
padding: 4px 10px;
|
||||
}
|
||||
`
|
||||
|
||||
const NoJobs = styled.p`
|
||||
|
@ -17,6 +17,7 @@ export type Job = {
|
||||
}
|
||||
|
||||
const JobItem = ({ job }: { job: Job }) => {
|
||||
console.log(job)
|
||||
return (
|
||||
<JobContainer>
|
||||
<JobHeader>
|
||||
|
Loading…
x
Reference in New Issue
Block a user