diff --git a/src/App.jsx b/src/App.jsx
index f01cb14..bb3ecb3 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -5,6 +5,7 @@ import Footer from "./components/Footer/Footer";
import Content from "./components/MainContent/Content";
import { Route, Routes } from "react-router-dom";
import OrchidDetail from "./components/OrchidDetail";
+import SpecialOrchid from "./components/SpecialOrchid";
function App() {
const [count, setCount] = useState(0);
@@ -14,6 +15,7 @@ function App() {
} />
+ } />
}>
diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx
index 485d296..5fb2262 100644
--- a/src/components/Header/Header.jsx
+++ b/src/components/Header/Header.jsx
@@ -20,6 +20,10 @@ const pages = [
name: "Home",
path: "/fer-lab1/",
},
+ {
+ name: "Special",
+ path: "/fer-lab1/natural",
+ },
{
name: "About",
path: "/fer-lab1/about",
diff --git a/src/components/MainContent/Content.jsx b/src/components/MainContent/Content.jsx
index 8a78106..e328410 100644
--- a/src/components/MainContent/Content.jsx
+++ b/src/components/MainContent/Content.jsx
@@ -1,4 +1,4 @@
-import { Container, Grid } from "@mui/joy";
+import { Grid } from "@mui/joy";
import React from "react";
import { Orchids } from "../../ListOfOrchids";
import OrchidCard from "./OrchidCard";
@@ -19,7 +19,7 @@ export default function Content() {
padding: 2,
width: "100%",
margin: "0 auto",
- backgroundColor: theme.mainContent.backgroundColor
+ backgroundColor: theme.mainContent.backgroundColor,
}}
>
{Orchids.map((orchid) => {
diff --git a/src/components/SpecialOrchid.jsx b/src/components/SpecialOrchid.jsx
new file mode 100644
index 0000000..d079f96
--- /dev/null
+++ b/src/components/SpecialOrchid.jsx
@@ -0,0 +1,36 @@
+import { Grid } from "@mui/joy";
+import React from "react";
+import { Orchids } from "../ListOfOrchids";
+import OrchidCard from "./MainContent/OrchidCard";
+import { useContext } from "react";
+import { ThemeContext } from "../themes/ThemeContext";
+
+export default function SpecialOrchid() {
+ const { theme } = useContext(ThemeContext);
+
+ //Filter orchids to only include special ones
+ const specialOrchids = Orchids.filter((orchid) => orchid.isSpecial);
+ return (
+
+ {specialOrchids.map((orchid) => {
+ return (
+
+
+
+ );
+ })}
+
+ );
+}