DimitriUI
DimitriUI
KPCKevin Powell - Community
Created by DimitriUI on 4/25/2024 in #back-end
React + PHP - How to deploy the API files
No description
2 replies
KPCKevin Powell - Community
Created by DimitriUI on 4/7/2024 in #front-end
How to import a folder with multiple images inside
Hello i am working in React and i want to import a folder with 1000+ images to use them in different components. How can i do that? All the images have as name an defined id which i will use later. I just need to import them all at once from the folder and save their names as an array. I tryed some codes from the net like this: import React from 'react'; const images = require.context('../../images', true); const imageList = images.keys().map(image => images(image)); function ImageGallery() { return ( <div> {imageList.map((image, index) => ( <img key={index} src={image.default} alt={image-${index}} /> ))} </div> ); } export default ImageGallery; But it says me require.contect undefined
1 replies
KPCKevin Powell - Community
Created by DimitriUI on 2/12/2024 in #front-end
Is really necessary to learn React or Angular for front end?
Hi, i just started diving into React and i don't understand why is used. To me it seems like it over complicates everything. Until now i can do the same things with basic Javascript and CSS. I feel that is like making everything harder. Do i really need to learn it? I already managed to make a normal website with HTML, CSS, JAVASCRIPT, PHP, JQUERY AJAX. With a catalog and filters, dashboard without using React or Angular. What is the point?
10 replies
KPCKevin Powell - Community
Created by DimitriUI on 2/3/2024 in #front-end
Parent container with overflow not changing height based on child elements
No description
3 replies
KPCKevin Powell - Community
Created by DimitriUI on 1/9/2024 in #back-end
PHP Header redirection not working on Website, but working on localhost
No description
2 replies
KPCKevin Powell - Community
Created by DimitriUI on 12/20/2023 in #back-end
PHP Catalog Limit Numbers of Items per page
No description
68 replies
KPCKevin Powell - Community
Created by DimitriUI on 12/11/2023 in #back-end
Should i learn PHP or ASP?
I started learning recently html, css and javascript basic stuff. I want now to start learning back end and try make an ecommerce site. I tryed PHP but i found it extremely hard and messy. The syntax i hate it, also is annoying with filtering variables to not run scripts inside and security. I managed to insert and read data into MySql database, but to make login, logout and session it kills my brain. I saw ASP.net and seems way much cleaner and easier to use. Should i let go PHP and go for ASP.net? What you recomand for a newbie in web development?
7 replies
KPCKevin Powell - Community
Created by DimitriUI on 11/29/2023 in #front-end
EM and REM scaling in different resolutions
Hello, i have a question about EM and REM and i don't found any answer, even chatgpt doesn't know. I understand how they work. For example 16px font size on the root, 2REM = 32px and EM the font-size of the parent element. What i don't understand is how they scale in different screen resolutions. Because if i set the font-size for example 16px and i use rems on my page. The page will look good on 1080p but on a 4k monitor would look tiny, because when i use REM in the end is still pixels. (and pixel is a fixed value) If i don't declare the font-size what will the browser consider as default font-size? I mean is something fixed to 16px? Or it varies on the screen resolution? Example if i am in 1080p will be 16px, 1440p 32px, 4k 64px? Thank you.
48 replies
KPCKevin Powell - Community
Created by DimitriUI on 11/27/2023 in #front-end
How to make font-size relative to the div element.
No description
6 replies