Skip to content

Commit 18a0531

Browse files
committed
added responsive
1 parent 2a59821 commit 18a0531

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/pages/blog.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ const blogs = ({ data }) => {
2929
</div>
3030
</div>
3131

32-
<div className='absolute top-40 -left-16 w-96 h-96 bg-gradient-to-t from-[#1BFFFF] to-[#2E3192] rounded-full'></div>
33-
<div className='absolute top-96 -right-80 w-[50rem] h-[50rem] bg-gradient-to-t from-[#FBB03B] to-[#D4145A] rounded-full'></div>
32+
<div className='absolute top-40 -left-16 xl:w-96 xl:h-96 xs:w-64 xs:h-64 bg-gradient-to-t from-[#1BFFFF] to-[#2E3192] rounded-full'></div>
33+
<div className='absolute xl:top-96 xs:top-[50rem] xl:-right-80 xs:-right-0 xl:w-[50rem] xl:h-[50rem] xs:w-80 xs:h-80 bg-gradient-to-t from-[#FBB03B] to-[#D4145A] rounded-full'></div>
3434

3535
<section>
3636
<div className='relative z-2 flex justify-center items-center flex-wrap my-7 mx-0'>
3737

3838
{data.map((curElem) => {
3939
return (
4040
<div className='group z-2 relative w-min h-min bg-white bg-opacity-5 m-10 shadow-2xl rounded-2xl flex justify-conten items-center backdrop-filter backdrop-blur-md'>
41-
<div className='relative xl:w-[35rem] sx:w-[17rem] h-80 flex justify-center items-center flex-col opacity-70 hover:opacity-100'>
41+
<div className='relative xl:w-[35rem] xs:w-[17rem] h-80 flex justify-center items-center flex-col opacity-70 hover:opacity-100'>
4242

4343
<div className='relative w-4/5 rounded-2xl truncate border-8 border-solid border-black/25 group-hover:-translate-y-6 duration-500'>
4444
<img src={curElem.cover_image} className='relative top-0 left-0 w-full h-full object-cover ' />

tailwind.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ module.exports = {
99
'./src/**/*.{js,ts,jsx,tsx}',
1010
],
1111
theme: {
12+
screens: {
13+
'xs': '360px',
14+
'sm': '576px',
15+
'md': '768px',
16+
'lg': '992px',
17+
'xl': '1200px',
18+
},
1219
extend: {
1320
fontFamily: {
1421
poppins: ['Poppins'],

0 commit comments

Comments
 (0)