Skip to content

Commit

Permalink
add twitter card
Browse files Browse the repository at this point in the history
  • Loading branch information
tolerevo committed Feb 24, 2024
1 parent d6c8091 commit acaaa07
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
15 changes: 14 additions & 1 deletion projects/00-hola-mundo/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ import { TwitterFollowCard } from "./TwitterFollowCard";

export const App = () => {
return (
<TwitterFollowCard userName="tolerevo" name="Diego Tolentino" />
<section className="App">
<TwitterFollowCard
isFollowing
userName="tolerevo"
name="Diego Tolentino"
/>
<TwitterFollowCard
isFollowing
userName="pheralb"
name="Pablo Hernandez"
/>
<TwitterFollowCard isFollowing userName="elonmusk" name="Elon Musk" />
<TwitterFollowCard isFollowing userName="vxnder" name="Vanderhart" />
</section>
);
};
3 changes: 3 additions & 0 deletions projects/00-hola-mundo/src/TwitterFollowCard.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// eslint-disable-next-line react/prop-types
export function TwitterFollowCard({ userName, name, isFollowing }) {
console.log(isFollowing)

return (
<article
className="tw-followCard"
Expand Down
6 changes: 6 additions & 0 deletions projects/00-hola-mundo/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ body {
display: grid;
place-content: center;
min-height: 100vh;
}

.App {
display: flex;
flex-direction: column;
gap: 8px;
}

0 comments on commit acaaa07

Please sign in to comment.