Skip to content

Commit

Permalink
feat: adding styles here and there
Browse files Browse the repository at this point in the history
  • Loading branch information
RastMustafa committed Aug 28, 2022
1 parent ecb67ee commit b00101c
Show file tree
Hide file tree
Showing 13 changed files with 453 additions and 210 deletions.
29 changes: 19 additions & 10 deletions src/components/AboutUs/AboutUs.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.diagonal-box-about {
/* background-image: linear-gradient(45deg, #6303B1, #ff0099); */
transform: skewY(3deg);
}
.content-about {
max-width: 80%;
margin: 0 auto;
/* background-image: linear-gradient(45deg, #6303B1, #ff0099); */
transform: skewY(3deg);
}
.content-about {
max-width: 80%;
margin: 0 auto;
transform: skewY(-3deg);
display: flex;
flex-direction: column;
Expand All @@ -16,7 +16,16 @@
} */

@media only screen and (max-width: 1100px) {
#slider-wrapper {
flex-direction: column !important;
}
}
#slider-wrapper {
flex-direction: column !important;
}
}
.blob {
background-color: none;
z-index: 1;
}
.customShadow {
border: 5px solid;
padding: 10px;
box-shadow: 100px 10px #1d3557;
}
74 changes: 59 additions & 15 deletions src/components/AboutUs/AboutUs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function AboutUs() {
const ImgMap = {
aboutUsOne: aboutUsOne,
aboutUsTwo: aboutUsTwo,
aboutUsThree: aboutUsThree,
aboutUsThree: aboutUsTwo,
};
let reverse = "flex-row";
let reverse1 = "lg:text-left";
Expand All @@ -43,32 +43,22 @@ function AboutUs() {
<p className='text-lg text-blue-light'>1</p>
</div>
<div className='diagonal-box-about bg-blue-light '>
<div className='content-about pb-24'>
<div className='content-about mx-auto w-11/12 pb-24 md:w-9/12'>
<h2
className={`text-center font-quicksand text-5xl font-bold text-white md:text-center ${reverse1} lg:pl-16 `}
className={`mb-12 text-center font-quicksand text-4xl font-bold text-white md:text-center md:text-5xl lg:mb-0 lg:pl-16 ${reverse1}`}
>
{t("home.aboutUs.title")}
</h2>
<Slider {...settings}>
{t("home.aboutUs.texts", { returnObjects: true }).map(
function (item) {
return (
<div
key={item}
className='w-11/12 md:w-10/12'
>
<div key={item} className='px-2'>
{/* Slider wrapper */}
<div
className={` flex ${reverse} font-quicksand text-white`}
className={` flex flex-row-reverse justify-between font-quicksand text-white xl:gap-24`}
id='slider-wrapper'
>
{/* Text Wrapper */}
<div className='text-jus tify mt-8 md:break-normal lg:px-6 lg:pl-14'>
<p className='pb-12 font-SourceSansPro text-xl text-white md:my-12 md:text-2xl'>
{item.description}
</p>
</div>

<div className='relative my-10 flex w-10/12 md:ml-32 md:mt-8 md:w-3/5 md:justify-center lg:my-12 lg:ml-10 lg:w-2/4'>
<img
className='w-3/5 rounded-full border-4 border-gray sm:mr-16 md:ml-7 md:mr-72 md:w-11/12 md:border-8 lg:mr-20 lg:w-7/12'
Expand All @@ -77,6 +67,18 @@ function AboutUs() {
/>
<div className='absolute right-6 -z-10 h-full w-3/5 rounded-full bg-blue-dark md:right-6 md:w-11/12 lg:w-7/12'></div>
</div>

{/* Text Wrapper */}
<div className=' mt-8 md:break-normal lg:w-3/4 '>
<h1
className={`pb-4 ${reverse1} px-4 font-SourceSansPro text-xl font-bold tracking-wider text-white md:text-4xl`}
>
{item.title}
</h1>
<p className='px-4 pb-12 font-SourceSansPro text-lg text-white md:text-xl'>
{item.description}
</p>
</div>
</div>
</div>
);
Expand All @@ -90,3 +92,45 @@ function AboutUs() {
}

export default AboutUs;
{
/* <div className='content-about pb-24'>
<h2
className={`text-center font-quicksand text-5xl font-bold text-white md:text-center ${reverse1} lg:pl-16 `}
>
{t("home.aboutUs.title")}
</h2>
<Slider {...settings}>
{t("home.aboutUs.texts", { returnObjects: true }).map(
function (item) {
return (
<div
key={item}
className='w-11/12 md:w-10/12'
>
{/* Slider wrapper */
}
// <div
// className={` flex ${reverse} h-[40rem] flex-col justify-around font-quicksand text-white xl:flex-row xl:gap-24`}
// id='slider-wrapper'
// >
// {/* Text Wrapper */}
// <div className=' mt-8 h-48 xl:px-6 xl:pl-14'>
// <p className='my-auto pb-12 font-SourceSansPro text-xl text-white md:my-12 md:text-2xl'>
// {item.description}
// </p>
// </div>

// <div className='relative my-10 ml-12 flex w-10/12 sm:ml-36 md:mt-8 lg:my-12 xl:mr-12 xl:justify-center '>
// <img
// className='customShadow h-36 w-36 rounded-full border-4 border-gray sm:mr-16 sm:h-56 sm:w-56 md:ml-7 md:mr-72 md:border-8 lg:right-48 lg:ml-20 lg:h-96 lg:w-96 '
// src={ImgMap[item.image]}
// alt={item.alt}
// />
// </div>
// </div>
// </div>
// );
// }
// )}
// </Slider>
//</div> */}
Loading

0 comments on commit b00101c

Please sign in to comment.