-
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.
* Publishing bugs Fix #352 * created login loading page --------- Co-authored-by: hadleyking <hadley_king@gwu.edu> Co-authored-by: tianywan819 <57418894+tianywan819@users.noreply.github.com>
- Loading branch information
1 parent
02a15ee
commit c9939d7
Showing
9 changed files
with
335 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from "react"; | ||
import { Card, CardActionArea, CardContent, Typography } from "@mui/material"; | ||
import PropTypes from 'prop-types'; | ||
|
||
export default function HalfWidthBox({ link, title, content, image, imageAlt, cssClass }) { | ||
const handleClickOpen = () => { | ||
if (link !== "") { | ||
global.window.open(link); | ||
} | ||
}; | ||
|
||
return ( | ||
<Card className="About-half-width-box"> {/* Define a CSS class for half-width box */} | ||
<CardActionArea onClick={handleClickOpen}> | ||
<CardContent> | ||
<Typography className="home-intro-title"> | ||
{title} | ||
</Typography > | ||
<br></br> | ||
{image && <img src={image} height={100} alt={imageAlt} className="centered-image"/>} | ||
<Typography className="about-text" dangerouslySetInnerHTML={{ __html: content }} /> | ||
</CardContent> | ||
</CardActionArea> | ||
</Card> | ||
); | ||
} | ||
|
||
HalfWidthBox.propTypes = { | ||
link: PropTypes.string, | ||
title: PropTypes.string.isRequired, | ||
content: PropTypes.string.isRequired, | ||
image: PropTypes.string, | ||
imageAlt: PropTypes.string, | ||
cssClass: PropTypes.string | ||
}; | ||
|
||
HalfWidthBox.defaultProps = { | ||
link: '', | ||
image: '', | ||
imageAlt: 'Image', | ||
cssClass: '' | ||
}; |
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,14 @@ | ||
import React from 'react'; | ||
import biocomputing from "../images/biocomputing.gif" | ||
import '../App.css'; // Ensure you have styles for the loading icon | ||
|
||
|
||
const LoadingIcon = () => { | ||
return ( | ||
<div className="loading-icon"> | ||
<img src={biocomputing} alt='loading...' /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LoadingIcon; |
Oops, something went wrong.