Skip to content

Commit

Permalink
Merge pull request #329 from wjy308/part2-우제윤-week8
Browse files Browse the repository at this point in the history
[우제윤 ] Week8
  • Loading branch information
Siihyun authored May 1, 2024
2 parents d9c6819 + f8e3b38 commit 6cb583a
Show file tree
Hide file tree
Showing 35 changed files with 970 additions and 31 deletions.
171 changes: 167 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"date-fns": "^3.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.3",
"react-scripts": "5.0.1",
"styled-components": "^6.1.8",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
Binary file added public/assets/Ellipse 19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/Group19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/kebab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 9 additions & 12 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import "./App.css";
import NavigationBar from "./NavigationBar/NavigationBar.js";
import "./global.css";
import "./colors.css";
import Profile from "./Profile/Profile.js";
import { CardList } from "./CardList/CardList.js";
import Footer from "./Footer/Footer.js";
import SearchBar from "./SearchBar/SearchBar.js";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Shared from "./page/Shared.js";
import Folder from "./page/Folder.js";

function App() {
return (
<>
<NavigationBar />
<Profile />
<CardList />
<Footer />
</>
<BrowserRouter>
<Routes>
<Route path="/Shared" element={<Shared />}></Route>
<Route path="/Folder" element={<Folder />}></Route>
</Routes>
</BrowserRouter>
);
}

Expand Down
22 changes: 15 additions & 7 deletions src/CardList/CardList.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
display: flex;
flex-direction: column;
width: 325px;
height: 366px;
height: 327px;
box-shadow: 0 0.5rem 2.5rem 0 rgba(0, 0, 0, 0.08);
border-radius: 1.5rem;
}
Expand All @@ -37,6 +37,7 @@

.CardList-item-img.hoverd {
background-size: 130%;
transition: all 0.5s ease-in-out;
}

.CardList-contents {
Expand All @@ -45,6 +46,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
}

.CardList-item-createdAt {
Expand All @@ -68,11 +70,17 @@
column-gap: 5rem;
}

@media (min-width: 1124px) {
.CardList {
max-width: 89rem;
grid-template-columns: repeat(auto-fill, 21rem);
column-gap: 2rem;
}
.CardList-item {
width: 340px;
height: 334px;
}
}

@media (min-width: 1124px) {
.CardList {
max-width: 89rem;
grid-template-columns: repeat(auto-fill, 21rem);
column-gap: 2rem;
}
}
/* <div className="FolderList_list-container"> */
1 change: 1 addition & 0 deletions src/NavigationBar/NavigationBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
width: 100%;
top: 0;
align-items: center;
z-index: 1;
}

.NavigationBar-items {
Expand Down
4 changes: 2 additions & 2 deletions src/NavigationBar/NavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { useAsync } from "../api/useAsync";
import NavProfile from "./NavProfile";
import "./NavigationBar.css";

function NavigationBar() {
function NavigationBar({ position }) {
const { userInfo, userFolder, loading, error } = useAsync();

return (
<nav className="NavigationBar">
<div className="NavigationBar-items">
<div className="NavigationBar-items" style={{ position: position }}>
<a href="/">
<img
className="NavigationBar-logo"
Expand Down
Loading

0 comments on commit 6cb583a

Please sign in to comment.