added info to about page
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import React from 'react';
|
||||
|
||||
import Row from 'react-bootstrap/Row';
|
||||
import Col from 'react-bootstrap/Col';
|
||||
|
||||
export default function AboutSection(props) {
|
||||
return(
|
||||
<Row className='my-2'>
|
||||
|
||||
<Col>
|
||||
|
||||
<h4 className='highlight'>{props.section.header}</h4>
|
||||
|
||||
<hr />
|
||||
|
||||
<p>{props.section.description}</p>
|
||||
|
||||
</Col>
|
||||
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
import React from 'react';
|
||||
import { Github } from 'react-bootstrap-icons';
|
||||
import { Globe } from 'react-bootstrap-icons';
|
||||
import { Envelope } from 'react-bootstrap-icons';
|
||||
import Container from 'react-bootstrap/Container';
|
||||
import Row from 'react-bootstrap/Row';
|
||||
import Col from 'react-bootstrap/Col';
|
||||
@@ -7,6 +9,7 @@ import Col from 'react-bootstrap/Col';
|
||||
export default function Footer() {
|
||||
return (
|
||||
<footer className='mt-auto py-3'>
|
||||
|
||||
<Container>
|
||||
|
||||
<hr/>
|
||||
@@ -20,19 +23,40 @@ export default function Footer() {
|
||||
</Col>
|
||||
|
||||
<Col className='text-end'>
|
||||
|
||||
<a
|
||||
className='text-dark'
|
||||
className='text-dark m-1'
|
||||
href='https://github.com/StevanFreeborn/criminalmindsapi'
|
||||
target='_blank'
|
||||
rel="noreferrer"
|
||||
>
|
||||
<Github size={25} />
|
||||
</a>
|
||||
|
||||
<a
|
||||
className='text-dark m-1'
|
||||
href='https://stevanfreeborn.com'
|
||||
target='_blank'
|
||||
rel="noreferrer"
|
||||
>
|
||||
<Globe size={25} />
|
||||
</a>
|
||||
|
||||
<a
|
||||
className='text-dark m-1'
|
||||
href='mailto:stevan.freeborn@gmail.com'
|
||||
target='_blank'
|
||||
rel="noreferrer"
|
||||
>
|
||||
<Envelope size={25} />
|
||||
</a>
|
||||
|
||||
</Col>
|
||||
|
||||
</Row>
|
||||
|
||||
</Container>
|
||||
|
||||
</footer>
|
||||
)
|
||||
}
|
||||
@@ -8,15 +8,23 @@ export default function Greeting() {
|
||||
return (
|
||||
<Container>
|
||||
|
||||
<Row className='py-5'>
|
||||
<Row className='py-4'>
|
||||
|
||||
<Col className='text-center'>
|
||||
<Col>
|
||||
|
||||
<h1>
|
||||
<h1 className='text-center mb-3'>
|
||||
The <span className='highlight'>Criminal</span> Minds API
|
||||
</h1>
|
||||
|
||||
<p>
|
||||
Welcome to the Criminal Minds API! The documentation should supply you with all the information you need to start making requests. It is programmatically generated using swagger and provides the ability to make exploratory calls easily. Give it a review before you get started on your project.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Note the api is free, but to prevent malicious activity there is a rate limit of 10,000 requests a day. If that limit is reached you will receive a response with a 429 status code. Details about your rate limit standing are returned in response headers, specifically the x-rate-limit-limit, x-rate-limit-remaining, and x-rate-limit-reset headers.
|
||||
</p>
|
||||
|
||||
<p className='text-center'>
|
||||
Checkout the <a href='https://criminalmindsapi.azurewebsites.net' rel='noreferrer' target='_blank' className='highlight'>documentation</a>.
|
||||
</p>
|
||||
|
||||
|
||||
+29
-1
@@ -5,8 +5,36 @@ const baseUrl = process.env.NODE_ENV === 'development' ?
|
||||
const versionHeader = 'x-api-version';
|
||||
const versionHeaderValue = 1;
|
||||
|
||||
const aboutSections = [
|
||||
{
|
||||
header: "Who",
|
||||
description: "Hi, I'm Stevan Freeborn. I am well...someone who likes to make things and put them on the interwebz. One of my favorite tv shows is Criminal Minds."
|
||||
},
|
||||
{
|
||||
header: "What",
|
||||
description: "The Criminal Minds API is a collection of information about the Criminal Minds series. This information is organized into Characters, Episodes, Quotes, and Seasons. The API has documentation that is programmatically generated using swagger and can be used to make exploratory requests."
|
||||
},
|
||||
{
|
||||
header: "Why",
|
||||
description: "I've been learning how to code and wanted to build a web api using MongoDB, ASP.NET Core 6, and React and I figured what better subject matter than one of my favorite tv shows."
|
||||
},
|
||||
{
|
||||
header: "Issues",
|
||||
description: "If you come across any errors, missing information, or would like to suggest changes, please contribute by creating an issue or a pull request on GitHub."
|
||||
},
|
||||
{
|
||||
header: "Contact",
|
||||
description: "If you would like to talk about the project or discuss the finer points of brewing a great cup of coffee, send me an email at stevan.freeborn@gmail.com. I would love to chat with you."
|
||||
},
|
||||
{
|
||||
header: "License",
|
||||
description: "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
|
||||
}
|
||||
];
|
||||
|
||||
export {
|
||||
baseUrl,
|
||||
versionHeader,
|
||||
versionHeaderValue
|
||||
versionHeaderValue,
|
||||
aboutSections
|
||||
};
|
||||
|
||||
@@ -1,8 +1,41 @@
|
||||
import React from 'react';
|
||||
import Loading from '../components/loading';
|
||||
|
||||
import Container from 'react-bootstrap/Container';
|
||||
import Row from 'react-bootstrap/Row';
|
||||
import Col from 'react-bootstrap/Col';
|
||||
|
||||
import AboutSection from '../components/aboutSection';
|
||||
import { aboutSections as sections } from '../constants';
|
||||
|
||||
export default function About() {
|
||||
|
||||
const getSections = () => {
|
||||
|
||||
return sections.map(section => {
|
||||
|
||||
return <AboutSection section={section}/>
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return (
|
||||
<p>Coming soon...</p>
|
||||
|
||||
<Container>
|
||||
|
||||
<Row>
|
||||
|
||||
<Col>
|
||||
|
||||
<h1 className='text-center py-4'>Wanna know more?</h1>
|
||||
|
||||
</Col>
|
||||
|
||||
</Row>
|
||||
|
||||
{getSections()}
|
||||
|
||||
</Container>
|
||||
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user