-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* projects changed to cards, styling needed though * Description updated, need to get color span working * Added color dots to language, as well as images and some formatting changes * Style Updates * scss updates * Update Projects database + Advisor profile picture, as well as minor CSS changes * general formatting, scss and import fixes * lint formatting fixes * disable style linter for dynamically created content * nomenclature update * image updates & link updates * CSS & Image updates to clean up PR. * removed a project + no proj/repo link for ??? proj * misspellings & removing extra spaces * fixed var-name
- Loading branch information
Showing
12 changed files
with
6,823 additions
and
6,385 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import Image from 'next/image'; | ||
import React from 'react'; | ||
|
||
import styles from '../styles/components/DevProjCard.module.scss'; | ||
|
||
function Project({ | ||
name, | ||
prim_lang, | ||
proj_link, | ||
repo_link, | ||
description, | ||
img, | ||
alt, | ||
size, | ||
style, | ||
}) { | ||
if (style && style.toLowerCase() === 'jedi') { | ||
return ( | ||
<div className={styles['mb-2']}> | ||
<div className={styles['jedi-profile-img']}> | ||
<Image src={img} alt={alt} width={250} height={250}/> | ||
</div> | ||
<div className={styles['jedi-card-body']}> | ||
<h2 className={styles['jedi-title']}> | ||
{name} | ||
</h2> | ||
</div> | ||
</div> | ||
); | ||
} else if (size && size.toLowerCase() === 'compact') { | ||
return ( | ||
<div className={styles['project-card']}> | ||
<div className={styles['project-grid-row']}> | ||
<div className={styles['project-grid-col']}> | ||
<Image | ||
className={styles['project-image']} | ||
src={img} | ||
alt={alt} | ||
width={70} | ||
height={70} | ||
/> | ||
</div> | ||
<div className={`${styles['project-grid-col']} ${styles['project-info']}`}> | ||
<h3 className={styles['project-title']}>{name}</h3> | ||
</div> | ||
</div> | ||
<div className={styles['card-hover-content']}> | ||
<div> | ||
<p dangerouslySetInnerHTML={{ __html: description }}/> | ||
<p>{prim_lang}</p> | ||
{ name !== '???' && ( | ||
<> | ||
<a href={repo_link} target="_blank" rel="noopener noreferrer">View Repository<br></br></a> | ||
<a href={proj_link} target="_blank" rel="noopener noreferrer">View Project</a> | ||
</> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} else { | ||
return ( | ||
<div | ||
className={`${styles['project-card']} ${styles['grid-tablet-only-2']}`} | ||
> | ||
<div className={styles['project-image-container']}> | ||
<img src={img} alt={alt} style={{ maxWidth: '100%' }}/> | ||
Check warning on line 67 in components/DevProjectCards.js GitHub Actions / lint (16.x)
|
||
</div> | ||
<div> | ||
<h3 className={styles.name}>{name}</h3> | ||
</div> | ||
<div className={styles['card-hover-content']}> | ||
<div className={styles['description-header']}> | ||
<p className={`${styles['mobile-header']}`}> </p> | ||
{ name !== '???' && ( | ||
<> | ||
<span className={`${styles['dev-badge']} ${styles[prim_lang]}`}></span> | ||
| ||
{/* TODO: Try dev-badge lang-{prim_lang} */} | ||
</> | ||
)} | ||
{prim_lang} | ||
{ name !== '???' && ( | ||
<> | ||
• | ||
<a href={proj_link} target="_blank" rel="noopener noreferrer"><u>Proj</u></a> | ||
• | ||
<a href={repo_link} target="_blank" rel="noopener noreferrer"><u>Repo</u></a> | ||
</> | ||
)} | ||
</div> | ||
<div className={styles['description-box']}> | ||
<p dangerouslySetInnerHTML={{ __html: description }}/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
function projects(props) { | ||
return ( | ||
// TODO: more flexible mobile views | ||
<> | ||
{props.projects.map((project) => ( | ||
<Project {...project} size={props.size} style={props.style} key={project.name} /> | ||
))} | ||
</> | ||
); | ||
} | ||
|
||
export default projects; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.