Skip to content

Commit

Permalink
chore: Add the rest of code
Browse files Browse the repository at this point in the history
  • Loading branch information
Aya-X committed Sep 27, 2023
1 parent b816af3 commit a7a3aa2
Show file tree
Hide file tree
Showing 80 changed files with 5,215 additions and 856 deletions.
24 changes: 11 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/src/images/favicon.ico" />

<link rel="icon" type="image/svg+xml" href="/src/images/favicon.svg" />
<title>PetEats</title>
</head>

<title>draft | PetEats</title>
</head>
<body>
<div id="root"></div>

<body>
<div id="root"></div>

<script type="module" src="/src/main.jsx"></script>
</body>

</html>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
105 changes: 105 additions & 0 deletions package-lock.json

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

20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@
"preview": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mui/icons-material": "^5.10.3",
"@tanem/react-nprogress": "^5.0.13",
"aos": "^2.3.4",
"axios": "^0.27.2",
"vite": "^2.7.2",
"leaflet": "^1.9.4",
"leaflet-control-geocoder": "^2.4.0",
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"prop-types": "^15.8.1",
"react-router-dom": "^6.3.0",
"react-toastify": "^9.0.8",
"react-spinners": "^0.13.4",
"@tanem/react-nprogress": "^5.0.13",
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mui/icons-material": "^5.10.3"
"react-toastify": "^9.0.8",
"taos": "^1.0.3",
"vite": "^2.7.2"
},
"devDependencies": {
"@vitejs/plugin-react": "^1.0.7",
Expand All @@ -33,4 +37,4 @@
"vitawind": "^2.0.0",
"vite": "^2.7.2"
}
}
}
48 changes: 48 additions & 0 deletions peteats.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.______ _______ .___________. _______ ___ .___________. _______.
| _ \ | ____|| || ____| / \ | | / |
| |_) | | |__ `---| |----`| |__ / ^ \ `---| |----` | (----`
| ___/ | __| | | | __| / /_\ \ | | \ \
| | | |____ | | | |____ / _____ \ | | .----) |
| _| |_______| |__| |_______/__/ \__\ |__| |_______/


ASCII generated by http://www.network-science.de/ascii/

恭喜你找到這份文件! (ノ◕ヮ◕)ノ*:・゚✧
底下是本站背後的團隊以及使用的技術
如果有任何的疑問,還請不吝與我們聯絡
感謝觀賞 <(_ _)>

───────────────────────────────────────────────────────────────────────

/* TEAM */
Aya (Front-End Developer)
GitHub: https://github.com/Aya-X
Mail: ayaxong@gmail.com

Chiaoan (Back-End Developer)
GitHub: https://github.com/oriku0322
Mail: yuuya82323@gmail.com



/* SUPPORT */

Poka (UI Designer)
Site: https://53artwokerstudio.github.io/Hsiao-Yong-Ling-s-Profile
Mail: 53artworkerstudio@gmail.com


Justin (Coach)
Site: https://rocketcamp.kktix.cc



廖洧杰 (Coach)
GitHub: https://github.com/gonsakon



/* SITE */
Technology: React, React Router, Vite,
Source code: https://github.com/rockets-coding/project-peteats-2022
1 change: 1 addition & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function App() {
pauseOnFocusLoss
draggable
pauseOnHover
theme="dark"
/>
</LoadingContext.LoadingProvider>
);
Expand Down
15 changes: 11 additions & 4 deletions src/components/AreaItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ function AreaItem({ item, pageType }) {
// #REVIEW: something weird
const isPageHome = pageType === 'HOME';

// const handleScroll = (e) => {
// if (e.scrollToTarget) {
// e.scrollToTarget();
// }
// };

if (!item) {
return <h3>LOADING...</h3>;
}
Expand All @@ -23,16 +29,17 @@ function AreaItem({ item, pageType }) {
<li className="col-span-12 flex justify-center sm:col-span-6 lg:col-span-4">
<Link
to={`/shops/city/${Id}`}
// onClick={handleScroll}
className="inline-block rounded-3xl border-4 border-[#DB8C8C] px-6 hover:bg-[#DB8C8C] sm:px-0 md:w-full md:px-2"
>
{/* /shops/city/:id */}
<div className="flex flex-col items-center justify-center py-6">
<picture className="relative z-10 -mt-[30%] block h-[280px] w-[280px]">
{/* #NOTE: setting the height and weight to shows `Square` */}
<img
className="h-full w-full rounded-full object-cover object-center shadow-xl"
loading="lazy"
alt={CityName || 'CityName'}
className="h-full w-full rounded-full object-cover object-center shadow-xl"
src={imageUrl || AREA_IMG}
// src={AREA_IMG || imageUrl}
/>
Expand All @@ -52,14 +59,14 @@ function AreaItem({ item, pageType }) {
/* end of style-Large */
<li className="col-span-11 pl-[12%] sm:col-span-6 md:col-span-6 lg:col-span-4">
<Link
to="/shops/city"
to={`/shops/city/${Id}`}
className="inline-flex h-[75%] w-full rounded-3xl bg-[#212529] hover:bg-[#DB8C8C]"
>
<div className="flex items-center">
<picture className="relative z-10 -ml-[16%] block w-[120px]">
<picture className="relative z-10 -ml-[16%] block h-[120px] w-[120px]">
<img
className="h-full w-full rounded-full object-cover object-center shadow-xl"
src={AREA_IMG || imageUrl}
src={imageUrl || AREA_IMG}
alt={CityName || 'CityName'}
/>
</picture>
Expand Down
Loading

0 comments on commit a7a3aa2

Please sign in to comment.