-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from DiSSCo/ReferenceCollectionsLook
Add Reference collections look, make filters function and add experti…
- Loading branch information
Showing
14 changed files
with
180 additions
and
37 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
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,34 @@ | ||
/* Import Dependencies */ | ||
import { Container, Row, Col } from 'react-bootstrap'; | ||
|
||
/* Import Components */ | ||
import Header from 'components/general/header/Header'; | ||
import Footer from 'components/general/footer/Footer'; | ||
|
||
|
||
/** | ||
* Component that renders the Expertise page | ||
* @returns JSX Component | ||
*/ | ||
const Expertise = () => { | ||
return ( | ||
<div className="h-100 d-flex flex-column"> | ||
{/* Render Header */} | ||
<Header /> | ||
|
||
{/* Expertise page body */} | ||
<Container fluid className="flex-grow-1 overflow-hidden"> | ||
<Row className="h-100"> | ||
<Col className="d-flex flex-column justify-content-center align-items-center"> | ||
<p className="fs-2 fw-lightBold">This page will be implemented later this year</p> | ||
</Col> | ||
</Row> | ||
</Container> | ||
|
||
{/* Render Footer */} | ||
<Footer /> | ||
</div> | ||
); | ||
} | ||
|
||
export default Expertise; |
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,40 @@ | ||
/* Import Dependencies */ | ||
import { Container, Row, Col } from 'react-bootstrap'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
/* Import Components */ | ||
import Header from '../header/Header'; | ||
import Footer from '../footer/Footer'; | ||
|
||
|
||
const NotFound404 = () => { | ||
return ( | ||
<div className="h-100 d-flex flex-column"> | ||
{/* Render header */} | ||
<Header /> | ||
|
||
{/* Render not found 404 page */} | ||
<Container fluid className="flex-grow-1"> | ||
<Row className="h-100"> | ||
<Col className="d-flex flex-column justify-content-center align-items-center"> | ||
<p className="fs-2 fw-lightBold">404 - Page not found</p> | ||
<p className="mt-3">Looks like the taxonomic tree ends here...</p> | ||
<p> | ||
Please try again or | ||
<Link to="/" | ||
className="tc-primary" | ||
> | ||
{` go back to home`} | ||
</Link> | ||
</p> | ||
</Col> | ||
</Row> | ||
</Container> | ||
|
||
{/* Render footer */} | ||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotFound404; |
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 |
---|---|---|
@@ -1,33 +1,44 @@ | ||
/* Import Dependencies */ | ||
import classNames from 'classnames'; | ||
|
||
/* Import Styles */ | ||
import styles from './buttons.module.scss'; | ||
|
||
|
||
/* Props Type */ | ||
interface Props { | ||
children?: string, | ||
children?: string | JSX.Element, | ||
type: 'button' | 'submit', | ||
variant: 'primary' | 'secondary', | ||
OnClick: Function | ||
variant: 'primary' | 'secondary' | 'blank', | ||
className?: string, | ||
OnClick?: Function | ||
}; | ||
|
||
|
||
/** Component that renders a custom button according to the appliation's style | ||
* @param children String to be placed in button | ||
* @param type The type of the button, e.g. 'button' or 'submit' | ||
* @param variant The variant of the button, impacts styling | ||
* @param className Additional class names to be added to the button | ||
* @param OnClick The event to be fired when clicking on the button | ||
*/ | ||
const Button = (props: Props) => { | ||
const { children, type, variant, OnClick } = props; | ||
const { children, type, variant, className, OnClick } = props; | ||
|
||
/* ClassNames */ | ||
const buttonClass = classNames({ | ||
'px-4 py-2': variant !== 'blank', | ||
[`${className}`]: className | ||
}); | ||
|
||
return ( | ||
<button type={type} | ||
className={`${styles[variant]} fs-4 fw-bold px-3 py-2 b-none`} | ||
onClick={() => OnClick()} | ||
className={`${styles.button} ${styles[variant]} ${buttonClass} fs-4 fw-bold b-none br-round`} | ||
onClick={() => OnClick?.()} | ||
> | ||
{children} | ||
</button> | ||
); | ||
} | ||
}; | ||
|
||
export default Button; |
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 |
---|---|---|
@@ -1,10 +1,22 @@ | ||
/* Custom styling for a custom button component */ | ||
.button { | ||
background-color: transparent; | ||
transition: 0.3s; | ||
color: inherit; | ||
} | ||
|
||
.button:hover { | ||
filter: brightness(130%); | ||
} | ||
|
||
|
||
/* Primary variant */ | ||
.primary { | ||
background-color: var(--primary); | ||
color: white; | ||
transition: 0.4s; | ||
color: white; | ||
} | ||
|
||
.primary:hover { | ||
filter: brightness(130%); | ||
.secondary { | ||
background-color: var(--secondary); | ||
color: white; | ||
} |
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.