-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
196 additions
and
142 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 was deleted.
Oops, something went wrong.
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,21 @@ | ||
--- | ||
title: Welcome to Risk First! | ||
hide_table_of_contents: true | ||
--- | ||
|
||
import styles from './index.module.css'; | ||
|
||
<h1 className={styles.siteHeader}>Risk-First</h1> | ||
<p className={styles.lead}> Exploring the risks that ruin software projects </p> | ||
|
||
|
||
<div className={styles.frontPageContent}> | ||
<BoxOut title="Start Here" image="/img/R1_logo_grue.svg"> | ||
<TagList tag="Front" /> | ||
</BoxOut> | ||
|
||
<BoxOut title="Popular" image="/img/R1_logo_grue.svg"> | ||
<TagList tag="Popular" /> | ||
</BoxOut> | ||
|
||
</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 was deleted.
Oops, something went wrong.
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,25 @@ | ||
import React from 'react'; | ||
import styles from './styles.module.css' | ||
|
||
export default ({children, image, link, linkText, title, className = ''}) => { | ||
const id = title.replace(/[^\w\s\']|_/g, "") | ||
.replace(/\s+/g, "-") | ||
.toLowerCase(); | ||
return <div className={`${styles.boxout} ${className}`}> | ||
<div className={styles.header}> | ||
<img className={styles.icon} src={image} alt={title} /> | ||
{ | ||
(link) ? <a href={link}><h3 id={id}> {title} </h3></a> : <h3 id={id}> {title} </h3> | ||
} | ||
</div> | ||
<div className={styles.contents}> | ||
{children} | ||
</div> | ||
<div className={styles.footer}> | ||
{ | ||
(link) ? <p><a href={link} className={styles.link}>{linkText}</a></p> : "" | ||
} | ||
</div> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.boxout { | ||
border: 1px solid lightgray; | ||
border-radius: 1rem; | ||
margin: 2rem 0rem; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
padding-bottom: 1rem; | ||
align-items: center; | ||
margin: 0.3rem; | ||
border-top-left-radius: 0.9rem; | ||
border-top-right-radius: 0.9rem; | ||
padding: 2rem; | ||
background-color: #1d1d1d; | ||
} | ||
|
||
|
||
html[data-theme='light'] .header { | ||
background-color: #fcfcfc; | ||
} | ||
|
||
.header h3 { | ||
padding: 0; | ||
padding-left: 2rem; | ||
margin: 0; | ||
} | ||
|
||
.contents { | ||
padding: 1rem 2rem; | ||
} | ||
|
||
|
||
.footer { | ||
padding-right: 1rem; | ||
padding-bottom: 0.5rem; | ||
} | ||
|
||
.icon { | ||
width: 5rem; | ||
padding: 0rem; | ||
margin: 0rem; | ||
} | ||
|
||
.footer p { | ||
text-align: right; | ||
} | ||
|
||
.link { | ||
padding: 1rem; | ||
border-radius: 1rem; | ||
text-decoration: underline; | ||
background-color: #1d1d1d; | ||
|
||
} | ||
|
||
html[data-theme='light'] .link { | ||
background-color: #fdfdfd; | ||
color: black; | ||
} |
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,8 +1,10 @@ | ||
import MDXComponents from '@theme-original/MDXComponents'; | ||
import TagList from '../TagList'; | ||
import BoxOut from '../BoxOut'; | ||
|
||
|
||
export default { | ||
...MDXComponents, | ||
TagList, | ||
BoxOut | ||
}; |
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.