-
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 #20 from Gift-WrApp-Crew/dev2
Dev2
- Loading branch information
Showing
32 changed files
with
379 additions
and
179 deletions.
There are no files selected for viewing
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.
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.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.Logo { | ||
display: block; | ||
display: flex; | ||
margin-left: auto; | ||
margin-right: auto; | ||
width: 300px; | ||
|
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
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,5 @@ | ||
.FavoritesList { | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: rows; | ||
} |
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,24 @@ | ||
import { useEffect, useState } from 'react'; | ||
import { getFavorites } from '../../state/services/fetch-utils'; | ||
import Post from './Post'; | ||
import styles from './FavoritesList.css'; | ||
|
||
export default function FavoritesList() { | ||
const [favPosts, setFavPosts] = useState([]); | ||
|
||
async function fetch() { | ||
const postData = await getFavorites(); | ||
setFavPosts(postData); | ||
} | ||
useEffect(() => { | ||
fetch(); | ||
}, []); | ||
|
||
return ( | ||
<div className={styles.FavoritesList}> | ||
{favPosts.map((post) => ( | ||
<Post key={post.id} post={post} favPosts={favPosts} fetch={fetch} /> | ||
))} | ||
</div> | ||
); | ||
} |
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,18 @@ | ||
.landingPageImage { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
justify-content: center; | ||
align-items: center; | ||
align-content: stretch; | ||
width: auto; | ||
} | ||
|
||
.Button { | ||
margin: auto; | ||
margin-top: 100px; | ||
width: 50%; | ||
padding: 10px; | ||
padding: 50px; | ||
margin-bottom: 75px; | ||
} |
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,22 @@ | ||
import React from 'react'; | ||
import styles from './LandingPage.css'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
export default function LandingPage() { | ||
const history = useNavigate(); | ||
|
||
async function gotoFeed() { | ||
history('/posts'); | ||
} | ||
|
||
return ( | ||
<> | ||
<div className={styles.landingPageImage}> | ||
<img className={styles.firstImage} src="phone.png" /> | ||
</div> | ||
<button onClick={gotoFeed} className={styles.Button}> | ||
Lets Get Started! ♻️ | ||
</button> | ||
</> | ||
); | ||
} |
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
Oops, something went wrong.