Skip to content

Commit

Permalink
added About us Page (#122)
Browse files Browse the repository at this point in the history
13XAVI authored Jul 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 39665c2 commit a81ebd7
Showing 6 changed files with 121 additions and 0 deletions.
Binary file added public/doublequotes2.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/doublequotesl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/whoweare.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions src/__test__/home/aboutus.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import { Provider } from 'react-redux';
import { configureStore } from '@reduxjs/toolkit';
import { MemoryRouter } from 'react-router-dom';
import Aboutus from '@/components/home/Aboutus';

const renderWithProviders = (
ui: React.ReactElement,
{
store = configureStore({
reducer: {},
}),
} = {}
) => {
return render(
<Provider store={store}>
<MemoryRouter>{ui}</MemoryRouter>
</Provider>
);
};

describe('Aboutus Component', () => {
test('renders Aboutus component', () => {
renderWithProviders(<Aboutus />);

expect(screen.getByText('Dynamite E-commerce')).toBeInTheDocument();

expect(screen.getAllByRole('img')).toHaveLength(4);

expect(screen.getByText('Mission')).toBeInTheDocument();
expect(
screen.getByText(
'We prosper our customers to give them valuable product at affordable price in fast process.'
)
).toBeInTheDocument();
expect(screen.getByText('Vision')).toBeInTheDocument();
expect(
screen.getByText(
'E-commerce is your go-to platform designed for security reasons. Data privacy is our endless goal for potential customers to feel at ease.'
)
).toBeInTheDocument();
expect(screen.getByText('why choose us')).toBeInTheDocument();
});
});
65 changes: 65 additions & 0 deletions src/components/home/Aboutus.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import Header from './header';

function Aboutus() {
return (
<div className="">
<div className="w-full overflow-hidden px-10 bg-violeteBg py-5 md:h-96 relative ">
<h1 className="font-bold md:text-3xl text-2xl text-primary md:flex justify-center py-10">
Dynamite E-commerce
</h1>
<img
src="/doublequotesl.png"
alt=""
className="lg:sticky top-24 md:left-72 pb-4"
/>
<div className="flex-wrap text-textBlack lg:px-80">
E-commerce is your go-to platform for seamless online shopping. We
offer a wide range of products, competitive prices, and a
user-friendly experience, ensuring you find exactly what you need with
ease. At Dynamite, customer satisfaction is our top priority, and we
are dedicated to providing a secure and enjoyable shopping experience
for everyone.
</div>
<img
src="/doublequotes2.png"
alt=""
className="pb-10 lg:sticky top-10 right-72"
style={{ marginLeft: 'auto' }}
/>
</div>

<div className="font-bold flex justify-center py-5 text-2xl md:px-64">
why choose us
</div>
<div className="lg:px-64">
<Header />
</div>
<div className="md:flex items-center md:gap-10 py-20 justify-center md:pl-16 p-5">
<img
src="/whoweare.svg"
alt=""
className=" object-cover md:pl-8 w-96"
/>
<div className="md:flex md:flex-col md:w-1/2 gap-10 ">
<div>
<h1 className="font-semibold text-lg">Mission</h1>
<p className="mt-2">
We prosper our customers to give them valuable product at
affordable price in fast process.
</p>
</div>
<div className="py-3">
<h1 className="font-semibold text-lg">Vision</h1>
<p className="mt-2">
E-commerce is your go-to platform designed for security reasons.
Data privacy is our endless goal for potential customers to feel
at ease.
</p>
</div>
</div>
</div>
</div>
);
}

export default Aboutus;
2 changes: 2 additions & 0 deletions src/routes/AppRoutes.tsx
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ import ProtectedRoute from '@/components/ProtectedRoute';
import Cart from '@/components/Cart/Cart';
import Seller from '@/pages/Seller';
import CheckoutPage from '@/pages/Checkout';
import Aboutus from '@/components/home/Aboutus';

function AppRoutes() {
return (
@@ -30,6 +31,7 @@ function AppRoutes() {
<Route index path="/" element={<Home />} />
<Route path="shop" element={<Shop />} />
<Route path="/contact" element={<ContactPage />} />
<Route path="about" element={<Aboutus />} />
<Route
path="wishlist"
element={

0 comments on commit a81ebd7

Please sign in to comment.