i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasm
Explore posts from servers
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 11/4/2024 in #front-end
How to make this layout?
No description
4 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 10/26/2024 in #front-end
how to make this part ?I cant use one image for this because it needs to be animated .
No description
3 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 10/25/2024 in #front-end
How to make animations on this site ? https://ctrl.xyz/
Please help. here is the website https://ctrl.xyz/
10 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 10/19/2024 in #front-end
Why is there gaps on both sides of the children in this flex container ?
No description
38 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 10/10/2024 in #front-end
Can anybody tell me how to approach this layout ? Please see the attached image
No description
4 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 10/1/2024 in #front-end
How to make a background image darker ?
Can anybody help me ?
7 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 7/28/2024 in #front-end
Flex 1
Can someone explain how does an element with flex 1 and another element with 320px begin to wrap next line?
<Container maxW={"960px"} py={[4, 4, 16]}>
<Flex justifyContent="center" gap={"12px"} wrap="wrap">
{/* Left Side starts below */}
<Box flex={1}>
{/* Heading start */}


</Box>
{/* Left Side ends above */}
{/* Right Side starts below */}
<Grid placeItems={'center'} py={[5,0,0]} w={320}>
<Image borderRadius='lg' src={photo} />
</Grid>
</Flex>
</Container>
<Container maxW={"960px"} py={[4, 4, 16]}>
<Flex justifyContent="center" gap={"12px"} wrap="wrap">
{/* Left Side starts below */}
<Box flex={1}>
{/* Heading start */}


</Box>
{/* Left Side ends above */}
{/* Right Side starts below */}
<Grid placeItems={'center'} py={[5,0,0]} w={320}>
<Image borderRadius='lg' src={photo} />
</Grid>
</Flex>
</Container>
12 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 7/27/2024 in #back-end
How to convert blobUrl to a video file or embed a video ?
Can anybody please help me with this ? I tried to google and used solutions but didnt work
11 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 3/19/2024 in #back-end
Cookies aren't being assigned to the client
const session = require('express-session');
const MongoDBSession = require('connect-mongodb-session')(session);
app.post('/api/login',express.json(),async (req, res) => {
const { username, password } = req.body;
let user=await db.collection("users").findOne({name:username});
let pw=await db.collection("users").findOne({password:password});
if(user && pw){
req.session.user = { name: user.name,id:user.id };
res.json({msg:'Login successful',name: user.name,id:user.id});
}
else{
res.status(404).json({msg:"Invalid Name or Password"})
}
});
const session = require('express-session');
const MongoDBSession = require('connect-mongodb-session')(session);
app.post('/api/login',express.json(),async (req, res) => {
const { username, password } = req.body;
let user=await db.collection("users").findOne({name:username});
let pw=await db.collection("users").findOne({password:password});
if(user && pw){
req.session.user = { name: user.name,id:user.id };
res.json({msg:'Login successful',name: user.name,id:user.id});
}
else{
res.status(404).json({msg:"Invalid Name or Password"})
}
});
so my backend or api is deployed on heroku and I am trying to log in but the cookies are not assigned on the client , I do see the cookie id in my mongodb collections , what is wrong with my code ? Please Help
2 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 2/13/2024 in #front-end
how to make this black top left corner on the image ?
No description
3 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 11/2/2023 in #front-end
How can I do this layout with grid ? Anybody can guide me ?
No description
2 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 10/27/2023 in #front-end
is this using clip path ?
No description
6 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 10/1/2023 in #front-end
how to change the color to red in Material UI ?
No description
3 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 9/12/2023 in #front-end
is using flex and flex wrap considered Desktop first approach ?
Is it desktop first or mobile first approach ?
3 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 8/29/2023 in #back-end
How to send message from a textarea/form on my portfolio to my email ?
Anybody can guide me in this ?
4 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 3/14/2023 in #back-end
how to add payment button?
17 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 3/7/2023 in #front-end
page props undefined , `Subpage undefined` SVELTE
<script context="module">
export function load({fetch,params}){
console.log(params.id);
let id =params.id;
return {props:{id}}
}
</script>
<script>
export let id;
</script>
<div class="max-w-lg mx-auto p-4">
<h1 class="mt-20 text-2xl font-bold italic ">Subpage {id}</h1>

</div>
<script context="module">
export function load({fetch,params}){
console.log(params.id);
let id =params.id;
return {props:{id}}
}
</script>
<script>
export let id;
</script>
<div class="max-w-lg mx-auto p-4">
<h1 class="mt-20 text-2xl font-bold italic ">Subpage {id}</h1>

</div>
any solution ?
26 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 2/25/2023 in #front-end
Some feedback/suggestions to improve the look
14 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 2/11/2023 in #front-end
flex-basis or width for item size in a flex container?
Can somebody tell me which one should I use and why ?
2 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 1/31/2023 in #back-end
Error when trying to create an image in Node js
function BW(){
let pixels=[];
for(let i=0;i<256;i++){
pixels.push(random(0,255))
}
let l=Buffer.from(pixels);
console.log(l)

fs.createWriteStream('hi.png').write(l);
}
BW()
function BW(){
let pixels=[];
for(let i=0;i<256;i++){
pixels.push(random(0,255))
}
let l=Buffer.from(pixels);
console.log(l)

fs.createWriteStream('hi.png').write(l);
}
BW()
someone tell me how to fix this .
31 replies