-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Merge pull request #145 from NilFoundation/dev""
This reverts commit 455be49.
- Loading branch information
Showing
47 changed files
with
4,380 additions
and
1,387 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { memo } from 'react' | ||
import { SvgIconComponent } from '../SvgIconComponent' | ||
import { PRIMITIVE_COLORS } from '@nilfoundation/ui-kit' | ||
|
||
const Upload: SvgIconComponent = ({ className }) => ( | ||
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" className={className}> | ||
<rect x="2" y="8" width="1" height="6" fill={PRIMITIVE_COLORS.gray200} /> | ||
<rect x="13" y="8" width="1" height="6" fill={PRIMITIVE_COLORS.gray200} /> | ||
<rect transform="rotate(90 14 13)" x="14" y="13" width="1" height="12" fill={PRIMITIVE_COLORS.gray200} /> | ||
<path | ||
d="m8 10-3.3536-3.3535 0.70711-0.70711 2.1464 2.1464v-6.7929h1v6.7929l2.1464-2.1464 0.7071 0.70711-3.3535 3.3535z" | ||
clip-rule="evenodd" | ||
fill={PRIMITIVE_COLORS.gray200} | ||
fill-rule="evenodd" | ||
/> | ||
</svg> | ||
) | ||
|
||
export default memo(Upload) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
site/src/components/pages/OpenJobs/DottedSection/DottedSection.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
@import 'src/styles/typography'; | ||
@import 'src/styles/helpers'; | ||
@import 'src/styles/colors'; | ||
@import 'src/styles/mixins'; | ||
@import 'src/styles/paddings'; | ||
|
||
.container { | ||
background: url('/icons/dots.svg'), repeat; | ||
display: grid; | ||
height: size(620); | ||
grid-template-columns: repeat(4, 1fr); | ||
grid-template-rows: repeat(3, 1fr); | ||
|
||
> div:first-child { | ||
grid-column: 1 / 3; | ||
grid-row: 1 / 3; | ||
background-color: transparent; | ||
position: relative; | ||
} | ||
|
||
> div:nth-child(3) { | ||
grid-column: 1 / 3; | ||
grid-row: 3 / 4; | ||
background-color: $gray900; | ||
position: relative; | ||
} | ||
|
||
@include mobile { | ||
height: size(240); | ||
margin: 0 -12px; | ||
grid-template-columns: repeat(2, 1fr); | ||
grid-template-rows: repeat(4, 1fr); | ||
|
||
& > div:first-child { | ||
grid-column: 1 / 2; | ||
grid-row: 1 / 5; | ||
} | ||
|
||
& > div:nth-child(3) { | ||
grid-column: 2 / 3; | ||
grid-row: 4 / 5; | ||
background-color: transparent; | ||
} | ||
} | ||
} | ||
|
||
.whiteRectBottom { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
width: 100%; | ||
} | ||
|
||
.whiteRectTop { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
} | ||
|
||
.subgrid { | ||
grid-column: 3 / 5; | ||
grid-row: 2 / 4; | ||
display: grid; | ||
grid-template-columns: subgrid; | ||
grid-template-rows: subgrid; | ||
background-color: transparent; | ||
|
||
> div:first-child { | ||
grid-column: 1 / 2; | ||
grid-row: 1 / 3; | ||
background-color: transparent; | ||
position: relative; | ||
} | ||
|
||
> div:last-child { | ||
grid-column: 2 / 3; | ||
grid-row: 1 / 3; | ||
background-color: $gray900; | ||
margin-top: size(280); | ||
position: relative; | ||
} | ||
} | ||
|
||
.titleWrapper { | ||
position: relative; | ||
grid-row: 1 / 2; | ||
grid-column: 3 / 5; | ||
padding: size(30) size(30) size(60); | ||
background-color: $gray900; | ||
|
||
@include mobile { | ||
padding: 0 size(10) size($spacing32 + 14); | ||
grid-row: 1 / 4; | ||
grid-column: 2 / 3; | ||
} | ||
} | ||
|
||
.title { | ||
@include heading-03; | ||
|
||
@include mobile { | ||
@include main; | ||
} | ||
} | ||
|
||
.link { | ||
text-decoration: underline; | ||
transition: opacity 0.3s ease; | ||
|
||
@include hover { | ||
opacity: 0.5; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
site/src/components/pages/OpenJobs/DottedSection/DottedSection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react' | ||
import WhiteRectangle from 'components/WhiteRectangle' | ||
import Button from 'components/Button/Button' | ||
import s from './DottedSection.module.scss' | ||
import { useViewport } from 'hooks/useViewport' | ||
|
||
const DottedSection = () => { | ||
const { isMobile } = useViewport() | ||
|
||
return ( | ||
<section className={s.container}> | ||
<div> | ||
<WhiteRectangle className={s.whiteRectTop} /> | ||
{isMobile && <WhiteRectangle className={s.whiteRectBottom} />} | ||
</div> | ||
<div className={s.titleWrapper}> | ||
<p className={s.title}> | ||
Interested in =nil; but don't see a fitting position? Contact us at{' '} | ||
<Button className={s.link} href="mailto:[email protected]"> | ||
[email protected] | ||
</Button> | ||
</p> | ||
<WhiteRectangle className={s.whiteRectBottom} /> | ||
</div> | ||
<div> | ||
<WhiteRectangle className={isMobile ? s.whiteRectBottom : s.whiteRectTop} /> | ||
</div> | ||
{!isMobile && ( | ||
<div className={s.subgrid}> | ||
<div> | ||
<WhiteRectangle className={s.whiteRectBottom} /> | ||
</div> | ||
<div> | ||
<WhiteRectangle className={s.whiteRectTop} /> | ||
</div> | ||
</div> | ||
)} | ||
</section> | ||
) | ||
} | ||
|
||
export default DottedSection |
File renamed without changes.
35 changes: 35 additions & 0 deletions
35
site/src/components/pages/OpenJobs/Filter/Filter.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@import 'src/styles/typography'; | ||
@import 'src/styles/helpers'; | ||
@import 'src/styles/colors'; | ||
@import 'src/styles/mixins'; | ||
@import 'src/styles/paddings'; | ||
|
||
.filter { | ||
display: grid; | ||
gap: 32px; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-template-rows: 1fr 1fr; | ||
|
||
@include mobile { | ||
grid-template-rows: auto; | ||
gap: size(16); | ||
padding: size(24) 0; | ||
|
||
& > * { | ||
grid-column: span 3; | ||
} | ||
} | ||
} | ||
|
||
.remoteToggleContainer { | ||
grid-column: 1 / 2; | ||
grid-row: 2 / 3; | ||
|
||
@include mobile { | ||
grid-column: 1 / 4; | ||
} | ||
} | ||
|
||
.titleTitleFilterContainer { | ||
grid-column: 1 / 4; | ||
} |
Oops, something went wrong.