Skip to content

Commit d46bb77

Browse files
committed
fixed particle overflow on jumbotron
1 parent a526257 commit d46bb77

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/pages/apply.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,23 @@ export default function apply() {
2121
const { roles, lookingFor, faqs } = content;
2222
const currBreakpoint = useBreakpoint();
2323

24+
const navBarHeightPx = 80;
25+
const jumbotronHeightPx = 500;
26+
2427
return (
2528
<div>
2629
<Particles
2730
params={ParticleJSConfig}
28-
canvasClassName="particlejs"
31+
style={{ position: 'absolute', maxHeight: `${jumbotronHeightPx + navBarHeightPx}px` }}
2932
/>
3033
{/* Jumbotron */}
3134
<div className="bg-gradient">
3235
{/* Navbar */}
3336
<Navbar />
34-
<Container className="pg-jumbotron center">
37+
<div className="center" style={{ height: `${jumbotronHeightPx}px` }}>
3538
<div
3639
className="center"
37-
style={{ flexDirection: 'column'}}
40+
style={{ flexDirection: 'column', maxWidth: '800px' }}
3841
>
3942
<h1 className="pg-heading">
4043
Join Our Amazing Team!
@@ -43,7 +46,7 @@ export default function apply() {
4346
BUILD is on the lookout for passionate and talented individuals who are eager to make a difference in our community. Are you interested in applying what you have been learning in class to real-world projects in a dynamic team environment? If so, consider applying!
4447
</p>
4548
</div>
46-
</Container>
49+
</div>
4750
</div>
4851
{/* Body */}
4952
<Container className="mt-5">
763 KB
Binary file not shown.
Binary file not shown.

src/styles/style.scss

-4
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,6 @@ a {
685685
background: linear-gradient(to right, #a30000, #f44708);
686686
}
687687

688-
.particlejs {
689-
position: absolute;
690-
}
691-
692688
// Projects page
693689
.year-title {
694690
font-weight: 800;

0 commit comments

Comments
 (0)