Skip to content

Commit

Permalink
Revert "fix(enhance homepage): enhanece homepage"
Browse files Browse the repository at this point in the history
This reverts commit 650ee4c.
  • Loading branch information
Khalil-NOUI committed Nov 24, 2023
1 parent 650ee4c commit 4fbd22a
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 36 deletions.
6 changes: 5 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ module.exports = {
},
reactStrictMode: true,
images: {
remotePatterns: [{ hostname: "firebasestorage.googleapis.com" }],
remotePatterns: [
{ hostname: "i.pinimg.com" },

{ hostname: "firebasestorage.googleapis.com" },
],
},
};
Binary file removed public/globalGoalsLogos/feedback3.jpg
Binary file not shown.
Binary file removed public/globalGoalsLogos/feedback5.jpg
Binary file not shown.
Binary file removed public/globalGoalsLogos/feedback6.jpg
Binary file not shown.
Binary file added public/globalGoalsLogos/user.jpg
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/images/AboutUs/fakeImad.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/donation.png
Binary file not shown.
2 changes: 1 addition & 1 deletion public/locales/ar/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

"HeroSection": {
"title": "انضموا إلينا لإحداث تغيير مؤثر",
"introduction": "مرحبًا بكم في 'ايد ب ايد'، حيث نجمع بين القلوب والأيدي لإحداث فارق. تُعَدّ فعاليات الخير لدينا أكثر من مجرد تجمعات؛ إنها فرص لتحويل الحياة. انضموا إلى مهمتنا لإلهام الأمل، وتعزيز التغيير، ونشر العطاء. معًا، يمكننا صنع مستقبل أفضل، حدثا بعد حدث."
"introduction": "مرحبًا بكم في Pebble، حيث نجمع بين القلوب والأيدي لإحداث فارق. تُعَدّ فعاليات الخير لدينا أكثر من مجرد تجمعات؛ إنها فرص لتحويل الحياة. انضموا إلى مهمتنا لإلهام الأمل، وتعزيز التغيير، ونشر العطاء. معًا، يمكننا صنع مستقبل أفضل، حدثا بعد حدث."
},
"HowitWorks": {
"title": "كيف يعمل",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

"HeroSection": {
"title": "Join Us in Creating Impactful Change",
"introduction": "Welcome to 'Aide be Aide', where we unite hearts and hands to make a difference. Our charity events are more than gatherings; they're opportunities to transform lives. Join our mission to inspire hope, foster change, and spread kindness. Together, we can create a brighter future, one event at a time"
"introduction": "Welcome to Pebble, where we unite hearts and hands to make a difference. Our charity events are more than gatherings; they're opportunities to transform lives. Join our mission to inspire hope, foster change, and spread kindness. Together, we can create a brighter future, one event at a time"
},
"HowitWorks": {
"title": "How it Works",
Expand Down
4 changes: 2 additions & 2 deletions src/components/homepage/HowitWorks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const HowitWorks = () => {
link: user ? "/createTheEvent" : "/authentication/signUp",
},
{
image: "/images/donation.png",
image: "/images/Girl.png",
id: 4,
title: t("Contribute"),
description: t("HowitWorks.donate"),
Expand Down Expand Up @@ -85,7 +85,7 @@ const HowitWorks = () => {
alt={service.title}
width={220}
height={220}
className='w-full object-contain h-full shadow-md'
className='object-cover w-full h-full rounded-full shadow-md'
/>
<h4 className='text-txtc-DarkCharcoal font-Montserrat text-xl font-medium leading-8'>
{service.title}
Expand Down
52 changes: 24 additions & 28 deletions src/components/homepage/SectionTwo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,25 +93,22 @@ const SectionTwo = () => {
];
const userFeeddBack = [
{
Name: "Emma Thompson",
Occupation: " Environmental Scientist",
Image: "/globalGoalsLogos/feedback3.jpg",
FeedBack:
" “ I had a fantastic experience with 'Aide be Aide'. The sense of community and shared purpose was truly inspiring. I look forward to being part of future initiatives! ” ",
Name: "flan",
Occupation: "apple",
Image: "/globalGoalsLogos/user.png",
FeedBack: "Lorem ipsum dolor sit amet consectetur adipisicing",
},
{
Name: "Lina Abbas",
Occupation: "Graphic Designer",
Image: "/globalGoalsLogos/feedback5.jpg",
FeedBack:
" “ Volunteering with you was not only rewarding but also incredibly fun. I genuinely appreciate the dedication your team shows to the cause. it's truly commendable! Looking forward to futur opportunities! ” ",
Name: "flan",
Occupation: "apple",
Image: "/globalGoalsLogos/user.png",
FeedBack: "Lorem ipsum dolor sit amet consectetur adipisicing",
},
{
Name: "Alex Rodriguez",
Occupation: "Software Engineer",
Image: "/globalGoalsLogos/feedback6.jpg",
FeedBack:
" “ A fulfilling experience. The well-organized tasks and the positive energy among volunteers made a real impact. Thank you for the opportunity! ” ",
Name: "flan",
Occupation: "apple",
Image: "/globalGoalsLogos/user.png",
FeedBack: "Lorem ipsum dolor sit amet consectetur adipisicing",
},
];
return (
Expand Down Expand Up @@ -146,9 +143,9 @@ const SectionTwo = () => {
</div>

{/* events images section */}
<div className='flex md:flex-row flex-col bg-bgc-silver px-4 gap-3 md:px-8 py-4'>
<div className='flex md:flex-row flex-col px-4 gap-3 md:px-8 py-4'>
<div className='hidden md:flex flex-col gap-y-3'>
<div className='object-fill rounded-md overflow-hidden'>
<div className='h-[40%] rounded-md overflow-hidden shadow-md'>
<Image
className='w-full h-full transition duration-300 hover:scale-110'
src='/globalGoalsLogos/refugies.png'
Expand All @@ -157,7 +154,7 @@ const SectionTwo = () => {
height={800}
/>
</div>
<div className='object-fill rounded-md overflow-hidden'>
<div className='h-[60%] rounded-md overflow-hidden shadow-md'>
<Image
className='w-full h-full transition duration-300 hover:scale-110'
src='/globalGoalsLogos/helpOlds.png'
Expand All @@ -168,16 +165,16 @@ const SectionTwo = () => {
</div>
</div>
<div className='hidden md:flex flex-col gap-y-3'>
<div className=' rounded-md overflow-hidden'>
<div className='h-[55%] rounded-md overflow-hidden shadow-md'>
<Image
className='object-fill w-full h-full transition duration-300 hover:scale-110'
className='w-full h-full transition duration-300 hover:scale-110'
src='/globalGoalsLogos/construct.png'
alt=''
width={800}
height={800}
/>
</div>
<div className='object-fill rounded-md overflow-hidden'>
<div className='h-[45%] rounded-md overflow-hidden shadow-md'>
<Image
className='w-full h-full transition duration-300 hover:scale-110'
src='/globalGoalsLogos/donate.png'
Expand Down Expand Up @@ -220,21 +217,20 @@ const SectionTwo = () => {
<div className='grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 justify-center items-center'>
{userFeeddBack.map((user, index) => (
<div
className='flex flex-col overflow-hidden pt-8 px-3 h-full justify-center items-center gap-2 pb-3 bg-bgc-silver rounded-md hover:shadow-xl transition duration-200 hover:scale-100'
className='flex flex-col overflow-hidden pt-8 px-3 border-2 h-full justify-center items-center gap-2 pb-3 bg-white border-white rounded-md shadow-sm hover:shadow-xl transition duration-200 hover:scale-100'
key={index}
>
<Image
className='md:my-4 rounded-[50%] m-0 p-0 '
className='w-[50px] h-[50px] md:w-[60px] md:h-[60px] md:my-4 lg:w-[80px] lg:h-[80px] rounded-[50%] m-0 p-0 border border-white border-20 shadow-xl '
src={user.Image}
alt={user.Name}
height={120}
width={120}
objectFit='cover'
width={300}
height={300}
/>
<h1 className='text-center font-Montserrat md:text-xl text-sm text-txtc-DarkCharcoal font-semibold'>
<h1 className='text-center font-Lora md:text-xl text-sm text-txtc-DarkCharcoal font-semibold'>
{user.Name}, {user.Occupation}
</h1>
<p className='text-center font-Opensans font-normal text-sm text-txtc-DarkCharcoal'>
<p className='text-center font-OpenSans text-sm text-txtc-DarkCharcoal font-normal'>
{user.FeedBack}
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function Navbar() {
<div
className={`sticky left-0 top-0 w-full h-auto z-50 ${
hasScrolled
? "bg-black/80 text-white shadow-sm h-9vh"
? "bg-black/80 text-white shadow-sm"
: "bg-black/20 backdrop-blur-lg text-black shadow-lg"
}`}
>
Expand Down
2 changes: 0 additions & 2 deletions src/lib/interestsList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { AiOutlineGlobal, AiOutlineRead, AiOutlineStock } from "react-icons/ai";
import { BiSolidTreeAlt } from "react-icons/bi";
import {
Expand All @@ -12,7 +11,6 @@ import { FaGlassWaterDroplet } from "react-icons/fa6";
import { LuEqualNot } from "react-icons/lu";
import { MdFamilyRestroom, MdOutlineEnergySavingsLeaf } from "react-icons/md";
import { PiBowlFood, PiInfinity, PiUniteFill } from "react-icons/pi";

export const interestList = [
{
title: "no Poverty",
Expand Down

0 comments on commit 4fbd22a

Please sign in to comment.