-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update expected knowledge for developer interviews * changed email on file and fixed header * changed member roles * changed taglien * ne tagline * added collapsible sections to the 'for students' page * fixed linting --------- Co-authored-by: Justin Yao Du <[email protected]>
- Loading branch information
1 parent
aaa40a7
commit b70fe40
Showing
7 changed files
with
125 additions
and
45 deletions.
There are no files selected for viewing
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,27 @@ | ||
.title { | ||
display: flex; | ||
align-items: center; | ||
height: 60px; | ||
cursor: pointer; | ||
} | ||
|
||
.title h2 { | ||
display: inline; | ||
padding: 0px; | ||
margin: 0px; | ||
margin-left: 10px; | ||
} | ||
|
||
.facingDown { | ||
transform: rotate(90deg); | ||
} | ||
|
||
.collapsed { | ||
height: 0px; | ||
overflow: hidden; | ||
} | ||
|
||
.arrow { | ||
font-size: 100; | ||
transition: 300ms ease all; | ||
} |
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,31 @@ | ||
import classNames from "classnames"; | ||
import React, { useState } from "react"; | ||
import { BsArrowRightCircle } from "react-icons/bs"; | ||
|
||
import styles from "./CollapsibleSection.module.scss"; | ||
|
||
interface CollapsibleSectionProps { | ||
title: string; | ||
children: React.ReactNode; | ||
} | ||
|
||
export default function CollapsibleSection({ title, children }: CollapsibleSectionProps) { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
const toggle = () => { | ||
setIsOpen(!isOpen); | ||
}; | ||
|
||
return ( | ||
<> | ||
<div className={styles.title} onClick={toggle} onKeyDown={toggle} role="presentation"> | ||
<BsArrowRightCircle | ||
className={classNames(styles.arrow, isOpen ? styles.facingDown : null)} | ||
size={40} | ||
/> | ||
<h2>{title}</h2> | ||
</div> | ||
<div className={classNames(isOpen ? null : styles.collapsed)}>{children}</div> | ||
</> | ||
); | ||
} |
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
Oops, something went wrong.