-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
added About us Page (#122)
Showing
6 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters