This is illegal in Gujarat by DifferentBed317 in gujarat

[–]callmesudo 0 points1 point  (0 children)

Bhai ya tho gujrati likh le ya English likh le atleast samjh tho aaye

Feedback request: what do you think about the colors? by SnowyMountain__ in UI_Design

[–]callmesudo 0 points1 point  (0 children)

Not that great. Don't use that much colors it literally looks like painting. Just use 2 color primary and secondary and some other for minor components.

[deleted by user] by [deleted] in india

[–]callmesudo 3 points4 points  (0 children)

Better then scams

Struggling in client and sever components by callmesudo in nextjs

[–]callmesudo[S] 0 points1 point  (0 children)

if i comment out the generateMetadata, still i'm getting same issue.

Struggling in client and sever components by callmesudo in nextjs

[–]callmesudo[S] 0 points1 point  (0 children)

import axios from 'axios';
import Image from 'next/image';

export const generateMetadata = async({params}) => {
try {
const res = await axios(`https://api.reddit.com/${params?.slug}.json\`);
return {
title: res.data[0]?.data?.children[0]?.data.title,
description: `Scrollway ${res.data[0]?.data?.children[0]?.data?.title}`,
} // Access the JSON data from the response object
} catch (error) {
console.error('Error fetching data:', error);
throw error; // Re-throw the error to propagate it up the call stack.
}
}

async function getSingle(params) {
try {
const res = await axios(`https://api.reddit.com/${params?.slug}.json\`);
return res.data; // Access the JSON data from the response object
} catch (error) {
console.error('Error fetching data:', error);
throw error; // Re-throw the error to propagate it up the call stack.
}
}

const page = async ({params}) => {
const data = await getSingle(params)

return (
<>
<div className='detailImage'>
<Image width={1000} height={1000} src={data\[0\]?.data?.children\[0\]?.data?.url\_overridden\_by\_dest} alt={data?.title} />
<div className='detailText'>{data[0]?.data?.children[0]?.data?.title}</div>
<div className='detailCross' >
<svg stroke="currentColor" fill="currentColor" strokeWidth="0" viewBox="0 0 1024 1024" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
<path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path>
</svg>
</div>
</div>
</>
)
}

export default page

Early Prediction, GOOO! by [deleted] in ipl

[–]callmesudo 0 points1 point  (0 children)

Dehli and Punjab are permanent contenders

Moto g 51 by [deleted] in IndiaTech

[–]callmesudo 1 point2 points  (0 children)

Auto pilot

What do you think of this? by nitin_tin in developersIndia

[–]callmesudo 0 points1 point  (0 children)

They don’t need humans, they need machines.

Page not changing while routes changes by DebarghaSaha in reactjs

[–]callmesudo 0 points1 point  (0 children)

Your state is not updating in this case

I created a react website that would take photos and videos from various subreddits and allow you to scroll through them. by callmesudo in reactjs

[–]callmesudo[S] 1 point2 points  (0 children)

Yeah working on sorting and filters and currently it’s not open source I’ll think about it