-
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 #12 from nicole-m-martin/updates
Updates
- Loading branch information
Showing
15 changed files
with
171 additions
and
155 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,8 @@ | ||
{ | ||
"extends": [ | ||
"development" | ||
], | ||
"hints": { | ||
"apple-touch-icons": "off" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,35 +1,35 @@ | ||
import React from 'react'; | ||
// 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 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', | ||
}; | ||
// 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; | ||
// 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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
import React from 'react'; | ||
import { blogArray } from './blogData'; | ||
import BlogItem from './BlogItem'; | ||
// 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> | ||
// 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> | ||
); | ||
}; | ||
// <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', | ||
}; | ||
// 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; | ||
// 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 |
---|---|---|
@@ -1,14 +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', | ||
}, | ||
]; | ||
// 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,63 @@ | ||
import React, { useState } from 'react'; | ||
import { useForm } from 'react-hook-form'; | ||
import { init, sendForm } from 'emailjs-com'; | ||
init('user_FkoSWYEQ8F2cqar2OKJ2V'); | ||
import x from '../assets/square-x-twitter.svg' | ||
// import { init, sendForm } from 'emailjs-com'; | ||
// init('user_FkoSWYEQ8F2cqar2OKJ2V'); | ||
|
||
function Contact() { | ||
const { | ||
register, | ||
handleSubmit, | ||
watch, | ||
reset, | ||
// register, | ||
// handleSubmit, | ||
// watch, | ||
// reset, | ||
formState: { errors }, | ||
} = useForm(); | ||
|
||
// Message Sent alert | ||
const [successfulEmail, setSuccessfulEmail] = useState(false); | ||
// const [successfulEmail, setSuccessfulEmail] = useState(false); | ||
|
||
const onSubmit = () => { | ||
sendForm( | ||
'default_service', | ||
'template_28v9nkp', | ||
'#contact-form', | ||
'user_FkoSWYEQ8F2cqar2OKJ2V' | ||
).then( | ||
function (res) { | ||
console.log('SUCCESS!', res.status, res.text); | ||
}, | ||
function (error) { | ||
console.log('FAILED...', error); | ||
} | ||
); | ||
setSuccessfulEmail(true); | ||
}; | ||
// const onSubmit = () => { | ||
// sendForm( | ||
// 'default_service', | ||
// 'template_28v9nkp', | ||
// '#contact-form', | ||
// 'user_FkoSWYEQ8F2cqar2OKJ2V' | ||
// ).then( | ||
// function (res) { | ||
// console.log('SUCCESS!', res.status, res.text); | ||
// }, | ||
// function (error) { | ||
// console.log('FAILED...', error); | ||
// } | ||
// ); | ||
// setSuccessfulEmail(true); | ||
// }; | ||
|
||
// Message countdown | ||
const message = watch('message') || ''; | ||
const messageCharsLeft = 2500 - message.length; | ||
// const message = watch('message') || ''; | ||
// const messageCharsLeft = 2500 - message.length; | ||
|
||
return ( | ||
<div className={styles.main_div}> | ||
<div className={styles.flex_div}> | ||
<div className="p-5"> | ||
<h1 className={styles.chat}>Let's Chat! 💬 </h1> | ||
<p className={styles.social}>Social Links:</p> | ||
<a href="https://twitter.com/nmartinpdx"> | ||
<i className="fab fa-twitter-square fa-3x m-4 hover:bg-yellow-300"></i> | ||
<div className={styles.iconBox}> <a href="https://twitter.com/nmartinpdx"> | ||
<img src={x} alt='twitter-x' className='fa-3x m-4 hover:bg-yellow-300' /> | ||
</a> | ||
<a href="https://github.com/nicole-m-martin"> | ||
<i className="fab fa-github-square fa-3x m-4 hover:bg-green-300"></i> | ||
</a> | ||
<a href="https://www.linkedin.com/in/nicolemartinpdx/"> | ||
<i className="fab fa-linkedin fa-3x m-4 hover:bg-blue-400"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<h1 className={styles.chat}>Let's Chat! </h1> | ||
|
||
<div className={styles.main_form_container}> | ||
<section className="flex justify-center"> | ||
{/* <section className="flex justify-center"> | ||
<div className="w-full max-w-xs"> | ||
<form id="contact-form" onSubmit={handleSubmit(onSubmit)}> | ||
<input type="hidden" name="contact_number" /> | ||
|
@@ -109,7 +112,7 @@ function Contact() { | |
aria-invalid={errors.message ? 'true' : 'false'} | ||
/> | ||
{/* Message countdown */} | ||
<p className={styles.countdown}>{messageCharsLeft}</p> | ||
<div className="flex flex-row justify-center"> | ||
<input className={styles.send_btn} type="submit" value="Send" /> | ||
|
@@ -127,13 +130,14 @@ function Contact() { | |
value="Clear" | ||
/> | ||
</div> | ||
{/* Form Submit Success Message */} | ||
</form> | ||
{successfulEmail && ( | ||
<span className="italic text-green-500">Email Sent</span> | ||
)} | ||
</div> | ||
</section> | ||
</section> */} | ||
<a className={styles.labels} href="mailto:[email protected]">Email: [email protected]</a> | ||
</div> | ||
</div> | ||
); | ||
|
@@ -143,10 +147,11 @@ const styles = { | |
main_div: 'bg-white dark:bg-gray-600 h-screen grid place-content-center', | ||
flex_div: 'flex flex-row justify-center', | ||
social: 'font-Pt dark:text-white text-2xl font-semibold mt-.5 text-center', | ||
chat: 'font-Poppins dark:text-white text-4xl font-semibold mt-.5 tracking-wide text-center', | ||
iconBox: 'flex flex-row justify-center m-4', | ||
chat: 'font-Poppins dark:text-white text-5xl font-semibold mt-.5 tracking-wide text-center m-10', | ||
main_form_container: 'flex justify-center items-center p-5', | ||
labels: | ||
'block text-grey-darker text-lg text-left font-bold font-Pt dark:text-white mb-2 pt-4', | ||
'block text-grey-darker text-lg text-left hover:bg-pink-300 dark:hover:bg-pink-400 font-bold font-Pt dark:text-white margin-2 p-2', | ||
name_input: | ||
'border-2 border-black ring ring-yellow-300 dark:ring-pink-400 rounded w-full py-2 px-3 text-grey-darker leading-tight focus:outline-none focus:shadow-outline dark:bg-white', | ||
email_input: | ||
|
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
Oops, something went wrong.