Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from "react";
import Header from "./components/Header";
import Link from "./components/Link";
import Card from "./components/Card"
import Card from "./components/Card";
import SearchBar from "./components/SearchBar";
import Container from "./components/Container";
/* import Main from "./components/Main"; */
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faBell, faCommentDots, faUser } from '@fortawesome/free-solid-svg-icons'
Expand All @@ -24,11 +25,19 @@ const App = () => {
</div>
</Header>
{/* <Main /> */}
<Card description="Una Foto"
title="Intereses, el nuevo widget de pinterest"
src="https://i.picsum.photos/id/0/536/354.jpg?hmac=pYva7VotLDyw33JFwZdFMkf5Egtdk2Z6p7Rr8nO6ngs"
size="large"
/>
<Container title="Hola Como estas">
<Card description="Una Foto"
title="Intereses, el nuevo widget de pinterest"
src="https://i.picsum.photos/id/0/536/354.jpg?hmac=pYva7VotLDyw33JFwZdFMkf5Egtdk2Z6p7Rr8nO6ngs"
/><Card description="Una Foto"
title="Intereses, el nuevo widget de pinterest"
src="https://i.picsum.photos/id/0/536/354.jpg?hmac=pYva7VotLDyw33JFwZdFMkf5Egtdk2Z6p7Rr8nO6ngs"
/><Card description="Una Foto"
title="Intereses, el nuevo widget de pinterest"
src="https://i.picsum.photos/id/0/536/354.jpg?hmac=pYva7VotLDyw33JFwZdFMkf5Egtdk2Z6p7Rr8nO6ngs"
size="large"
/>
</Container>
</>
);
};
Expand Down
15 changes: 15 additions & 0 deletions src/components/Container.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react";
import styles from "./../stylesheets/Container.css"

export default function Container({title, children, ...props}) {
return (
<div className="container__wrapper">
<div className="container">
<h2 className="container__title">{title}</h2>
<div className="container__cards">
{children}
</div>
</div>
</div>
)
}
5 changes: 5 additions & 0 deletions src/stylesheets/Card.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
z-index: -10;
top: 0;
left: 0;
transition: all 1.2s;
}

.card__gradient {
Expand All @@ -52,3 +53,7 @@
left: 0;
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(17, 17, 17, 0.6) 100%);
}

.card:hover > .card__img {
transform: scale(1.2);
}
27 changes: 27 additions & 0 deletions src/stylesheets/Container.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.container__wrapper {
display: flex;
display: flex;
flex-direction: column;
align-items: center;
max-width: 832px;
margin: auto;
max-height: 665px;
}

.container__title {
font-size: 28px;
text-align: center;
width: 100%;
}

.container {
display: flex;
gap: 32px;
flex-direction: column;
}

.container__cards {
display: flex;
gap: 32px;
flex-wrap: wrap;
}
26 changes: 26 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,32 @@
minimatch "^3.0.4"
strip-json-comments "^3.1.1"

"@fortawesome/fontawesome-common-types@^0.2.34":
version "0.2.34"
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.34.tgz#0a8c348bb23b7b760030f5b1d912e582be4ec915"
integrity sha512-XcIn3iYbTEzGIxD0/dY5+4f019jIcEIWBiHc3KrmK/ROahwxmZ/s+tdj97p/5K0klz4zZUiMfUlYP0ajhSJjmA==

"@fortawesome/fontawesome-svg-core@^1.2.34":
version "1.2.34"
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.34.tgz#1d1a7c92537cbc2b8a83eef6b6d824b4b5b46b26"
integrity sha512-0KNN0nc5eIzaJxlv43QcDmTkDY1CqeN6J7OCGSs+fwGPdtv0yOQqRjieopBCmw+yd7uD3N2HeNL3Zm5isDleLg==
dependencies:
"@fortawesome/fontawesome-common-types" "^0.2.34"

"@fortawesome/free-solid-svg-icons@^5.15.2":
version "5.15.2"
resolved "https://registry.yarnpkg.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.15.2.tgz#25bb035de57cf85aee8072965732368ccc8e8943"
integrity sha512-ZfCU+QjaFsdNZmOGmfqEWhzI3JOe37x5dF4kz9GeXvKn/sTxhqMtZ7mh3lBf76SvcYY5/GKFuyG7p1r4iWMQqw==
dependencies:
"@fortawesome/fontawesome-common-types" "^0.2.34"

"@fortawesome/react-fontawesome@^0.1.14":
version "0.1.14"
resolved "https://registry.yarnpkg.com/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.14.tgz#bf28875c3935b69ce2dc620e1060b217a47f64ca"
integrity sha512-4wqNb0gRLVaBm/h+lGe8UfPPivcbuJ6ecI4hIgW0LjI7kzpYB9FkN0L9apbVzg+lsBdcTf0AlBtODjcSX5mmKA==
dependencies:
prop-types "^15.7.2"

"@hapi/address@2.x.x":
version "2.1.4"
resolved "https://registry.able.co/@hapi%2faddress/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5"
Expand Down