Skip to content

Commit

Permalink
feat: add responsive design for dekstop view
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuuriii committed Nov 15, 2023
1 parent 7346e33 commit 639c6cf
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions app/components/withSKilline/withSkilline.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import Padding from '../padding/padding';
import Class from '@/assets/withSkilline/class.jpeg';
import Orange from '@/assets/withSkilline/orangeSquare.png';
import Blue from '@/assets/withSkilline/blueSquare.png';
import Image from 'next/image';
import Play from '@/assets/header/play.png';

export default function WithSkilline() {
return (
<Padding>
<div className='mt-[3rem]'>
<div>
<div className='flex flex-col items-center xl:items-start'>
<div className='mt-[3rem] mb-[2rem]'>
<div className='flex items-center justify-center'>
<div className='flex mr-[3rem] flex-col xl:w-[50%] items-center xl:items-start'>
<h1
className='text-[#2F327D] mb-[1rem] font-[600] text-[1.5rem] text-center lg:text-left md:w-[38rem]'
className='text-[#2F327D] mb-[1rem] font-[600] text-[1.5rem] text-center lg:text-left lg:text-[2rem] md:w-[38rem]'
style={{ fontFamily: 'poppins, sans-serif' }}
>
Everything you can do in a physical classroom,{' '}
Expand All @@ -28,7 +33,30 @@ export default function WithSkilline() {
Learn more
</button>
</div>
<div></div>
<div className='hidden xl:flex rounded-[1rem] h-[20rem] xl:bg-[#171B4180] w-[auto] relative'>
<Image
className='absolute top-[-1rem] left-[-1rem] z-[-2]'
src={Blue}
alt=''
/>
<Image
className='h-[100%] rounded-[1rem] w-[100%] z-[-1]'
src={Class}
alt=''
/>
<button className='absolute top-[40%] left-[40%] hover:scale-[1.05] duration-[0.3s] active:scale-[0.98]'>
<Image
className='h-[3.7rem] w-auto mx-[1.5rem]'
src={Play}
alt='playIcon'
/>
</button>
<Image
className='absolute z-[-2] h-[10rem] w-auto bottom-[-1rem] right-[-1rem]'
src={Orange}
alt=''
/>
</div>
</div>
</div>
</Padding>
Expand Down
Binary file added assets/withSkilline/blueSquare.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 assets/withSkilline/class.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 assets/withSkilline/orangeSquare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 639c6cf

Please sign in to comment.