Skip to content

Commit

Permalink
Merge pull request #19 from khanghy2130/style-profile-route
Browse files Browse the repository at this point in the history
Style profile route
  • Loading branch information
khanghy2130 authored Sep 21, 2024
2 parents f3d5947 + fc2e709 commit 84eeab4
Show file tree
Hide file tree
Showing 23 changed files with 1,140 additions and 670 deletions.
13 changes: 13 additions & 0 deletions app/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default function Footer() {
return (
<div className="flex w-full flex-grow items-end pt-10">
<div className="text-md flex w-full flex-col items-center bg-black px-2 py-3 text-center text-gray-200 sm:px-20 sm:text-lg">
<h2>&copy; {new Date().getFullYear()} Hy Nguyen</h2>
<h2>
<span className="font-bold">Disclaimer:</span> This is a
demo website project, not a real online store!
</h2>
</div>
</div>
);
}
1 change: 0 additions & 1 deletion app/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useEffect, useState, useRef } from "react";
import { Link } from "@remix-run/react";

import brandTextImage from "~/assets/brand_text.png";
Expand Down
3 changes: 3 additions & 0 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
RawCartItem,
} from "./utils/types/ContextProps.type";
import PopupNotificationsList from "./components/PopupNotificationsList";
import Footer from "./components/Footer";

export const links: LinksFunction = () => [
{ rel: "stylesheet", href: stylesheet },
Expand Down Expand Up @@ -218,6 +219,8 @@ function App() {
/>
</div>

<Footer />

<PopupNotificationsList notifications={notifications} />

<Scripts />
Expand Down
58 changes: 0 additions & 58 deletions app/routes/orders/OrderItem.tsx

This file was deleted.

64 changes: 0 additions & 64 deletions app/routes/orders/OrderModal.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions app/routes/product.$productID/reviews_section/ReviewForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ export default function ReviewForm({
{!enableFormInput ? (
<div className="flex justify-end">
<button
className="rounded-md bg-bgColor2 px-3 py-1 text-sm font-medium text-primaryTextColor hover:bg-bgColor3"
className="rounded-md bg-bgColor2 px-3 py-1 text-sm font-medium text-textColor1 hover:bg-bgColor3"
type="button"
onClick={() => setEnableFormInput(true)}
>
Edit
</button>
<button
className="ml-2 rounded-md bg-bgColor2 px-3 py-1 text-sm font-medium text-primaryTextColor hover:bg-bgColor3"
className="ml-2 rounded-md bg-bgColor2 px-3 py-1 text-sm font-medium text-textColor1 hover:bg-bgColor3"
type="button"
onClick={deleteReview}
>
Expand Down
Loading

0 comments on commit 84eeab4

Please sign in to comment.