Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6/9 #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified my-app/.DS_Store
Binary file not shown.
63 changes: 57 additions & 6 deletions my-app/db.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,67 @@
{
"Newgen":[
"Headphone":[
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/MX2D3?wid=400&hei=400&fmt=jpeg&qlt=90&.v=1713841707336",
"new": "New",
"title": "Apple Pencil Pro",
"price": "3.499.000đ"
},
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/MWR53?wid=400&hei=400&fmt=jpeg&qlt=90&.v=1713934300288",
"new": "New",
"title": "Magic Keyboard cho iPad Pro 13 inch (M4) Đen",
"price": "9.799.000đ"
}
],

"Acs":[
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/MX2D3?wid=400&hei=400&fmt=jpeg&qlt=90&.v=1713841707336",
"new": "New",
"title": "Apple Pencil Pro",
"price": "3.499.000đ"
},
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/MWR53?wid=400&hei=400&fmt=jpeg&qlt=90&.v=1713934300288",
"new": "New",
"title": "Magic Keyboard cho iPad Pro 13 inch (M4) Đen",
"price": "9.799.000đ"
},
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/MT4U3?wid=400&hei=400&fmt=jpeg&qlt=90&.v=1693594248668",
"new": "New",
"title": "Ốp Lưng Vải Tinh Dệt MagSafe cho iPhone 15 Pro - Xanh Lục Thẫm",
"price": "1000đ"
},
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/store-card-40-iphone-15-pro-202309?wid=800&hei=1000&fmt=p-jpg&qlt=95&.v=1692910040844",
"subcript": "The future is here.",
"new": "New",
"title": "iPhone 15 Pro",
"detail": "Experience the next generation of iPhone with advanced technology and sleek design."
"price": "1000đ"
},
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/store-card-40-iphone-15-pro-202309?wid=800&hei=1000&fmt=p-jpg&qlt=95&.v=1692910040844",
"subcript": "The future is here.",
"title": "iPhone 16 Pro",
"detail": "Experience the next generation of iPhone with advanced technology and sleek design."
"new": "New",
"title": "iPhone 15 Pro",
"price": "1000đ"
},
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/store-card-40-iphone-15-pro-202309?wid=800&hei=1000&fmt=p-jpg&qlt=95&.v=1692910040844",
"new": "New",
"title": "iPhone 15 Pro",
"price": "1000đ"
},
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/store-card-40-iphone-15-pro-202309?wid=800&hei=1000&fmt=p-jpg&qlt=95&.v=1692910040844",
"new": "New",
"title": "iPhone 15 Pro",
"price": "1000đ"
},
{
"image":"https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/store-card-40-iphone-15-pro-202309?wid=800&hei=1000&fmt=p-jpg&qlt=95&.v=1692910040844",
"new": "New",
"title": "iPhone 15 Pro",
"price": "1000đ"
}
]
}
4 changes: 4 additions & 0 deletions my-app/public/31.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions my-app/public/32.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions my-app/public/33.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions my-app/public/34.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions my-app/public/35.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions my-app/public/36.svg
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 my-app/public/acs.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 my-app/public/airpod.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 my-app/public/airtag.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 my-app/public/genius.jpeg
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 my-app/public/ipad.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 my-app/public/iphone.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 my-app/public/mac.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 my-app/public/specialist-helpjpeg.jpeg
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 my-app/public/supportericon.jpeg
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 my-app/public/tv.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 my-app/public/watch.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 modified my-app/src/.DS_Store
Binary file not shown.
37 changes: 36 additions & 1 deletion my-app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,51 @@ import Navbar from './components/Navbar';
import LanguageSwitcher from './components/LanguageSwitcher';
import NewGen from './components/Newgen';
import StoreTitle from './components/StoreTitle';
import Advertise from './components/Advertise';
import Footer from './components/Footer';
import Headphone from './components/Headphone';
import Support from './components/Support';
import Ad2 from './components/Ad2';
import Acs from './components/Acs';
import { useTranslation } from 'react-i18next';
import './assets/css/global.css';
import'./assets/scripts/i18n';

function App() {
const {t} = useTranslation();

return (
<div>
<Navbar />
<LanguageSwitcher />
<StoreTitle/>
<NewGen/>
<Advertise/>
<div className="whitespace-nowrap flex mx-36 mt-20 font text-2xl">
<p><strong>{t('lastgen')}.</strong><b className="b" >{t('lastgenqote')}</b></p>
</div>
<div>
<NewGen/>
<div className="whitespace-nowrap flex mx-36 mt-4 font text-2xl">
<p><strong>{t('supporttitle')}.</strong><b className="b" >{t('supporqote')}</b></p>
</div>
<Support/>
<div className="whitespace-nowrap flex mx-36 mt-14 font text-2xl">
<p><strong>{t('supporttitle')}.</strong><b className="b" >{t('supporqote')}</b></p>
</div>
<Ad2/>
<div className="whitespace-nowrap flex mx-36 mt-14 font text-2xl">
<p><strong>{t('supporttitle')}.</strong><b className="b" >{t('supporqote')}</b></p>
</div>
<Acs/>
<div className="whitespace-nowrap flex mx-36 mt-14 font text-2xl">
<p><strong>{t('supporttitle')}.</strong><b className="b" >{t('supporqote')}</b></p>
</div>
<Headphone/>
<div className="border-t-2 mx-40 mt-14">
<Footer/>
</div>

</div>
</div>
);
}
Expand Down
99 changes: 99 additions & 0 deletions my-app/src/assets/css/acs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.acs-new-generation-section {
position: relative;
width: calc(100% + 600px);
margin-left: calc(-50vw + 8%);
margin-right: calc(-50vw + 50%);
overflow: hidden;
}

.acs-product {
position: relative;
overflow: hidden;
text-align: center;
border-radius: 12px;
transition: transform 0.4s ease, box-shadow 0.4s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
min-height: 500px;
background-color: white;
padding-top: 40px;
}

.acs-product img {
width: 65%;
height: auto;
transition: transform 0.3s ease;
border-radius: 12px;
transform: translateY(20px);
}

.acs-product:hover {
transform: scale(1.01);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.acs-product-info {
position: absolute;
left: 200px;
transform: translateX(-50%);
background-color: transparent;
top: 22px;
}

.acs-product-info h2 {
width: 350px;
font-size: 18px;
margin-bottom: 10px;
background-color: transparent;
transform: translateY(320px);
}

.acs-product-info p {
width: 350px;
margin-bottom: 10px;
background-color: transparent;
transform: translateY(320px);
}

.slick-prev {
transform: translateX(225px);
z-index: 2;
scale: 3;
color: #858585;
border-radius: 50%;
opacity: 0.8;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slick-next {
transform: translateX(-25px);
z-index: 2;
scale: 3;
color: #858585;
border-radius: 50%;
opacity: 0.8;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slick-slider {
width: 100%;
padding: 8px;
overflow: hidden;

}

.slick-slide {
display: flex;
justify-content: center;
margin: 0 10px;
}

.slick-track {
padding-top: 10px;
padding-bottom: 10px;
overflow: hidden;
display: flex;
}

.uu-dai {
color: #b64400;
}
107 changes: 107 additions & 0 deletions my-app/src/assets/css/ad2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
.ad2-new-generation-section {
position: relative;
width: calc(100% + 600px);
margin-left: calc(-50vw + 8%);
margin-right: calc(-50vw + 50%);
overflow: hidden;
}

.ad2-product {
position: relative;
overflow: hidden;
text-align: center;
border-radius: 12px;
transition: transform 0.4s ease, box-shadow 0.4s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
max-height: 250px;
background-color: white;
}

.ad2-product img {
width: 10%;
height: auto;
transition: transform 0.3s ease;
border-radius: 12px;
min-height: 250px;
background-color: white;
transform: translate(100%, -28%);
}

.ad2-product:hover {
transform: scale(1.01);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.ad2-product-info {
position: absolute;
left: 200px;
transform: translate(-46%, 50%);
background-color: transparent;
top: 22px;

}

.ad2-product-info h2 {
width: 350px;
font-size: 24px;
margin-bottom: 10px;
background-color: transparent;
}

.ad2-product-info p {
width: 350px;
margin-bottom: 10px;
background-color: transparent;
}

.slick-prev {
transform: translateX(225px);
z-index: 2;
scale: 3;
color: #858585;
border-radius: 50%;
opacity: 0.8;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slick-next {
transform: translateX(-25px);
z-index: 2;
scale: 3;
color: #858585;
border-radius: 50%;
opacity: 0.8;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

}

.slick-slider {
width: 100%;
padding: 8px;
overflow: hidden;

}

.slick-slide {
display: flex;
justify-content: center;
margin: 0 10px;

}

.slick-track {
padding-top: 10px;
padding-bottom: 10px;
overflow: hidden;
display: flex;
}

.uu-dai {
color: #b64400;
}

h2 b {
background-color: white;
font-weight: 700;
}
5 changes: 5 additions & 0 deletions my-app/src/assets/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
--tw-bg-opacity: 1;
background-color: rgb(243 244 246 / var(--tw-bg-opacity))
}

.b {
font-weight: 700;
color: gray;
}
Loading