-
Notifications
You must be signed in to change notification settings - Fork 0
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 #11 from nicole-m-martin/refactor_branch
change cover picture, start on adding blog section
- Loading branch information
Showing
11 changed files
with
118 additions
and
3 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,35 @@ | ||
import React from 'react'; | ||
|
||
const BlogItem = ({ src, title, description }) => { | ||
return ( | ||
<> | ||
<div className={styles.mainContainer}> | ||
<div className={styles.flexBox}> | ||
<div className={styles.cardBox}> | ||
<div className={styles.cardInner}> | ||
<div className={styles.centerDiv}> | ||
<img className={styles.blogImage} src={src} alt="pic" /> | ||
<h1 className={styles.blogName}>{title}</h1> | ||
<p className={styles.blogDescription}>{description}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
const styles = { | ||
mainContainer: 'container px-5 py-10 mx-auto', | ||
cardBox: | ||
'flex flex-wrap text-black text-center bg-gradient-to-r from-yellow-300 to-pink-300 px-5 py-5 m-2 rounded border-2 border-black ring-2 ring-yellow-300 dark:ring-pink-400', | ||
flexBox: 'flex flex-wrap -m-2', | ||
cardInner: 'lg:flex lg:items-center', | ||
centerDiv: 'flex flex-wrap justify-center', | ||
blogImage: 'h-90 rounded w-full object-cover object-center mb-6', | ||
blogName: | ||
'font-extrabold text-black font-Pt text-3xl m-2 lg:grid-row-2 text-gray-900 dark:text-white', | ||
}; | ||
|
||
export default BlogItem; |
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 React from 'react'; | ||
import { blogArray } from './blogData'; | ||
import BlogItem from './BlogItem'; | ||
|
||
const Blogs = () => { | ||
return ( | ||
<div className={styles.backgroundDiv}> | ||
<section className={styles.centerDiv}> | ||
<div className={styles.textDiv}> | ||
<h1 className={styles.blogTitle}>Here are some of my blogs:</h1> | ||
<div className={styles.imageCenter}></div> | ||
|
||
<div class="m-3"> | ||
{blogArray.map(({ id, src, title, description }) => ( | ||
<BlogItem | ||
key={id} | ||
src={src} | ||
title={title} | ||
description={description} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
); | ||
}; | ||
|
||
const styles = { | ||
backgroundDiv: 'bg-white dark:bg-gray-600', | ||
centerDiv: | ||
'max-w-6xl mx-auto px-4 sm:px-6 lg:px-4 py-12 bg-white dark:bg-gray-600', | ||
textDiv: 'text-center pb-12', | ||
blogTitle: | ||
'font-bold text-3xl md:text-4xl lg:text-5xl font-heading text-gray-900 dark:text-white font-Poppins', | ||
imageCenter: 'flex justify-center', | ||
blogImage: 'object-center h-60', | ||
}; | ||
|
||
export default Blogs; |
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 @@ | ||
export const blogArray = [ | ||
{ | ||
id: '1', | ||
title: 'How To Stay Current with New Tech Trends ', | ||
src: require('../../assets/blog/blog1.png').default, | ||
description: 'A list of ways to keep up with the ever-changing tech world', | ||
}, | ||
{ | ||
id: '1', | ||
title: 'How To Stay Current with New Tech Trends ', | ||
src: require('../../assets/blog/blog1.png').default, | ||
description: 'A list of ways to keep up with the ever-changing tech world', | ||
}, | ||
]; |
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.
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,12 @@ | ||
// import React from 'react'; | ||
// import Blogs from '../Components/Blogs/Blogs'; | ||
|
||
// const blogContainer = () => { | ||
// return ( | ||
// <div> | ||
// <Blogs /> | ||
// </div> | ||
// ); | ||
// }; | ||
|
||
// export default blogContainer; |
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