diff --git a/solutions/day-04/day-04-exercises/src/App.css b/solutions/day-04/day-04-exercises/src/App.css index bf2986b..4fd79be 100644 --- a/solutions/day-04/day-04-exercises/src/App.css +++ b/solutions/day-04/day-04-exercises/src/App.css @@ -8,6 +8,7 @@ body { display: flex; - justify-content: center; - margin: 80px auto; + justify-content: start; + margin: 30px auto; + padding: 0 80px; } \ No newline at end of file diff --git a/solutions/day-04/day-04-exercises/src/App.js b/solutions/day-04/day-04-exercises/src/App.js index c3d2f76..45280aa 100644 --- a/solutions/day-04/day-04-exercises/src/App.js +++ b/solutions/day-04/day-04-exercises/src/App.js @@ -1,18 +1,24 @@ import React from 'react' // import Background from './pages/Background' import './App.css' -import Stripe from './pages/Stripe' +import Footer from './pages/Footer' +import ProfileCard from './pages/ProfileCard' +import Skills from './pages/Skills' +// import Stripe from './pages/Stripe' const App = (props) => { return (
{/* */} - + {/* - + */} + + +
) } diff --git a/solutions/day-04/day-04-exercises/src/assets/img/photo.jpg b/solutions/day-04/day-04-exercises/src/assets/img/photo.jpg new file mode 100644 index 0000000..f1ba32a Binary files /dev/null and b/solutions/day-04/day-04-exercises/src/assets/img/photo.jpg differ diff --git a/solutions/day-04/day-04-exercises/src/pages/Footer.js b/solutions/day-04/day-04-exercises/src/pages/Footer.js new file mode 100644 index 0000000..63c522c --- /dev/null +++ b/solutions/day-04/day-04-exercises/src/pages/Footer.js @@ -0,0 +1,9 @@ +import React from 'react' +import styles from './Footer.module.css' +const Footer = () => { + return ( +
Footer
+ ) +} + +export default Footer \ No newline at end of file diff --git a/solutions/day-04/day-04-exercises/src/pages/Footer.module.css b/solutions/day-04/day-04-exercises/src/pages/Footer.module.css new file mode 100644 index 0000000..e69de29 diff --git a/solutions/day-04/day-04-exercises/src/pages/ProfileCard.js b/solutions/day-04/day-04-exercises/src/pages/ProfileCard.js new file mode 100644 index 0000000..ea3c6dd --- /dev/null +++ b/solutions/day-04/day-04-exercises/src/pages/ProfileCard.js @@ -0,0 +1,15 @@ +import React from "react"; +import styles from "./ProfileCard.module.css"; +var ProfilePhoto = require('../assets/img/photo.jpg') + +const ProfileCard = () => { + return ( +
+ Profile Photo +

Diego Baena

+

Frontend Developer

+
+ ); +}; + +export default ProfileCard; diff --git a/solutions/day-04/day-04-exercises/src/pages/ProfileCard.module.css b/solutions/day-04/day-04-exercises/src/pages/ProfileCard.module.css new file mode 100644 index 0000000..1767159 --- /dev/null +++ b/solutions/day-04/day-04-exercises/src/pages/ProfileCard.module.css @@ -0,0 +1,12 @@ +.container img { + width: 250px; + border-radius: 50%; + margin-bottom: 20px; +} + +.container h1, +.container p { + text-align: center; + margin-bottom: 10px; + color: rgb(36, 35, 35); +} diff --git a/solutions/day-04/day-04-exercises/src/pages/Skills.js b/solutions/day-04/day-04-exercises/src/pages/Skills.js new file mode 100644 index 0000000..a641cf1 --- /dev/null +++ b/solutions/day-04/day-04-exercises/src/pages/Skills.js @@ -0,0 +1,33 @@ +import React from "react"; +import styles from "./Skills.module.css"; +import Tags from "./Tags"; + +const Skills = (props) => { + return ( +
+

Skills

+
+ + + + + + + + + + + + + + + + + + +
+
+ ); +}; + +export default Skills; diff --git a/solutions/day-04/day-04-exercises/src/pages/Skills.module.css b/solutions/day-04/day-04-exercises/src/pages/Skills.module.css new file mode 100644 index 0000000..83ad62c --- /dev/null +++ b/solutions/day-04/day-04-exercises/src/pages/Skills.module.css @@ -0,0 +1,15 @@ +.container { + display: flex; + flex-direction: column; +} + +.container div { + display: flex; + justify-content: space-between; +} + +.container h1 { + color: rgb(55, 53, 53); + text-align: left; + margin-bottom: 15px; +} diff --git a/solutions/day-04/day-04-exercises/src/pages/Tags.js b/solutions/day-04/day-04-exercises/src/pages/Tags.js new file mode 100644 index 0000000..0486a57 --- /dev/null +++ b/solutions/day-04/day-04-exercises/src/pages/Tags.js @@ -0,0 +1,10 @@ +import React from 'react' +import styles from './Tags.module.css' + +const Tags = (props) => { + return ( +

{props.skill}

+ ) +} + +export default Tags \ No newline at end of file diff --git a/solutions/day-04/day-04-exercises/src/pages/Tags.module.css b/solutions/day-04/day-04-exercises/src/pages/Tags.module.css new file mode 100644 index 0000000..14e98cc --- /dev/null +++ b/solutions/day-04/day-04-exercises/src/pages/Tags.module.css @@ -0,0 +1,12 @@ +.container { + display: flex; + justify-content: center; + align-items: center; + min-width: 50px; + max-width: 80px; + padding: 2px; + border-radius: 5px; + color: white; + font-weight: bold; + background-color: aqua; +} \ No newline at end of file