Skip to content

Commit

Permalink
Merge pull request #53 from Ashesi-Org/incorporate-api-endpoints
Browse files Browse the repository at this point in the history
correct paths
  • Loading branch information
Oheneba-Dade authored Dec 15, 2023
2 parents b83fd75 + 222b0d0 commit df1bf78
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 86 deletions.
7 changes: 2 additions & 5 deletions kente-krafters/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* input field.
*/
import { NavLink } from "react-router-dom";
import Logo from "../assets/logos/woven_logo_2.png";

const Navbar = () => {
const handleButtonClick = () => {
Expand All @@ -12,11 +13,7 @@ const Navbar = () => {
return (
<div className="container">
<NavLink to="/">
<img
src="src/assets/logos/woven_logo_2.png"
alt=""
className="w-32 mx-auto"
/>
<img src={Logo} alt="" className="w-32 mx-auto" />
</NavLink>

<div className="mb-4">
Expand Down
6 changes: 4 additions & 2 deletions kente-krafters/src/pages/auth/login/Login.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { NavLink } from "react-router-dom";
import { baseEndPoint } from "../../../../expressAPI/data";
import login_page_hero from "../../../assets/hero_page_img.png";
import google_logo from "../../../assets/logos/google.png";

const Login = () => {
const handleLoginSubmit = (e) => {
Expand Down Expand Up @@ -57,7 +59,7 @@ const Login = () => {
<div className="flex min-h-screen justify-center gap-16">
<div className="flex-1 justify-center">
<img
src="src/assets/hero_page_img.png"
src={login_page_hero}
alt=""
className="w mx-auto"
/>
Expand Down Expand Up @@ -104,7 +106,7 @@ const Login = () => {
<div className="flex flex-col space-y-2 mb-3.5">
<button className="bg-gray-300 px-4 py-2 rounded-lg border text-black">
<img
src="src/assets/logos/google.png"
src={google_logo}
alt=""
className="w-6 mr-2 inline-block"
/>
Expand Down
176 changes: 97 additions & 79 deletions kente-krafters/src/pages/welcome.jsx
Original file line number Diff line number Diff line change
@@ -1,89 +1,107 @@
import React from 'react';
import React from "react";
import { NavLink } from "react-router-dom";
import carousel_img_1 from "../assets/nice.png";
import carousel_img_3 from "../assets/kent.png";
import carousel_img_2 from "../assets/carousel_img_2.jpg";


const LandingPage = () => {
const handleButtonClick = () => {
// Replace the following URL with the actual URL you want to navigate to
window.location.href = 'https://6576593962d11507416a7e96--spiffy-phoenix-61e583.netlify.app/';
};
return (
<div className="min-h-screen flex items-center justify-center flex-col">
<div className="relative p-8 rounded-md shadow-md flex items-center justify-between w-full">
<div className="w-1/2">
<img
className="relative w-100 h-100 object-cover mb-4"
src={carousel_img_1}
alt="Landing Page Image"
/>
</div>
<div className="w-1/2 text-black text-center">
<h1 className="text-6xl font-bold mb-4">Welcome to Woven</h1>

<p className="mb-8">
As a family enterprise that has been sustained three generations down, it has been an undulating journey. For just like the kente fabric in itself, with time comes growth and with this growth befalls struggle. In the recent past, this enterprise had been threatened by fires which sought to end the three generation-long business
</p>
<NavLink to="/HomePage" className="my-0.5 col-md-6">
<button className="bg-black text-white px-4 py-2 rounded-md">
Get started
</button>
</NavLink>

</div>
</div>
<div className="relative p-8 rounded-md shadow-md flex items-center justify-between w-full">
<div className="w-1/2 text-black text-left">
<h2 className="text-5xl font-bold mb-4">Your stole, our priority</h2>
<p className="mb-4">
However, we at Woven present an answer to ensuring the sustenance that was started by our forefathers, by taking kente digital and providing a widened market for it; both in Ghana and across the continent.
With you in mind, we extend an invitation to join our family and take this journey of growth and sustenance with us, by being our loyal customers.
</p>

<button className="bg-black text-white px-4 py-2 rounded-md" onClick={handleButtonClick}>
Stole Customization
</button>

{/* Add more content or styling as needed */}
</div>
<div className="w-1/2">
<img
className="relative w-57 h-57 object-cover mb-4"
src={carousel_img_3}
alt="Right Image"
/>
</div>
</div>
<div className="relative p-8 rounded-md shadow-md text-left w-full">
<img
className="w-full h-96 object-cover mb-4"
src={carousel_img_2}
alt="Bottom Image 2"
/>
<div className="text-black text-center">
<h2 className="text-5xl font-bold mb-4">Unique way of celebration</h2>
<p className="mb-4">
In our bid to grow as a social enterprise, Woven seeks to build the skills of its employees so that they are ever ready to serve you in this ever-changing world we live in.

With Ghana being the headquarters of the African Continental Free Trade Area (AfCTA), we seek to capitalise on this to help widen our scope spread our fabric across the continent and beyond.
</p>
<NavLink to="/kente" className="my-0.5 col-md-6">
<button className="bg-black text-white px-4 py-2 rounded-md">
Start shopping
</button>
</NavLink>
{/* Add more content or styling as needed */}
</div>
</div>
</div>
);
};

export default LandingPage;

const handleButtonClick = () => {
// Replace the following URL with the actual URL you want to navigate to
window.location.href =
"https://6576593962d11507416a7e96--spiffy-phoenix-61e583.netlify.app/";
};
return (
<div className="min-h-screen flex items-center justify-center flex-col">
<div className="relative p-8 rounded-md shadow-md flex items-center justify-between w-full">
<div className="w-1/2">
<img
className="relative w-100 h-100 object-cover mb-4"
src={carousel_img_1}
alt="Landing Page Image"
/>
</div>
<div className="w-1/2 text-black text-center">
<h1 className="text-6xl font-bold mb-4">
Welcome to Woven
</h1>

<p className="mb-8">
As a family enterprise that has been sustained three
generations down, it has been an undulating journey. For
just like the kente fabric in itself, with time comes
growth and with this growth befalls struggle. In the
recent past, this enterprise had been threatened by
fires which sought to end the three generation-long
business
</p>
<NavLink to="/HomePage" className="my-0.5 col-md-6">
<button className="bg-black text-white px-4 py-2 rounded-md">
Get started
</button>
</NavLink>
</div>
</div>
<div className="relative p-8 rounded-md shadow-md flex items-center justify-between w-full">
<div className="w-1/2 text-black text-left">
<h2 className="text-5xl font-bold mb-4">
Your stole, our priority
</h2>
<p className="mb-4">
However, we at Woven present an answer to ensuring the
sustenance that was started by our forefathers, by
taking kente digital and providing a widened market for
it; both in Ghana and across the continent. With you in
mind, we extend an invitation to join our family and
take this journey of growth and sustenance with us, by
being our loyal customers.
</p>

<button
className="bg-black text-white px-4 py-2 rounded-md"
onClick={handleButtonClick}
>
Stole Customization
</button>

{/* Add more content or styling as needed */}
</div>
<div className="w-1/2">
<img
className="relative w-57 h-57 object-cover mb-4"
src={carousel_img_3}
alt="Right Image"
/>
</div>
</div>
<div className="relative p-8 rounded-md shadow-md text-left w-full">
<img
className="w-full h-96 object-cover mb-4"
src={carousel_img_2}
alt="Bottom Image 2"
/>
<div className="text-black text-center">
<h2 className="text-5xl font-bold mb-4">
Unique way of celebration
</h2>
<p className="mb-4">
In our bid to grow as a social enterprise, Woven seeks
to build the skills of its employees so that they are
ever ready to serve you in this ever-changing world we
live in. With Ghana being the headquarters of the
African Continental Free Trade Area (AfCTA), we seek to
capitalise on this to help widen our scope spread our
fabric across the continent and beyond.
</p>
<NavLink to="/kente" className="my-0.5 col-md-6">
<button className="bg-black text-white px-4 py-2 rounded-md">
Start shopping
</button>
</NavLink>
{/* Add more content or styling as needed */}
</div>
</div>
</div>
);
};

export default LandingPage;

0 comments on commit df1bf78

Please sign in to comment.