CDL
Explore posts from serversKPCKevin Powell - Community
•Created by CDL on 11/13/2024 in #resources
Git tutorial from Primeagen/Bootdev
10 replies
KPCKevin Powell - Community
•Created by CDL on 10/29/2024 in #ui-ux
Figma designs -> CSS code. Linear-fill background?
1 replies
KPCKevin Powell - Community
•Created by CDL on 10/29/2024 in #ui-ux
Styling Forms, Cards, and Navbars - opinions/helpful tips please :)
With or without a framework/lib, can y'all please help a newb out with some styling on these specific components, as I'm getting nowhere 😅
Can use my portfolio as an example of my current attempts at all 3.
https://callum-laing.com/
29 replies
KPCKevin Powell - Community
•Created by CDL on 10/23/2024 in #os-and-tools
"bad object HEAD" when trying to commit changes to my git repo
140 replies
KPCKevin Powell - Community
•Created by CDL on 10/18/2024 in #front-end
Help a fella make his project section look better?
2 replies
KPCKevin Powell - Community
•Created by CDL on 8/14/2024 in #front-end
Trying to wrap my head around this example of list rendering in VueJS
I understand id starts at 0, there's a state variable for newTodo, and todos.
In the function addTodos I can see we're pushing into the todos array with and id, and a new todo value.. the bit I'm confused on there is literally that array..
I understand id: id++, it's adding 1 to the value of id, so every time you add a todo, it'll be a number higher than the previous... but where/why is text: there and not just newTodo.value++ or something? and then why am I making newTodo.value = an empty string after the push method?
10 replies
KPCKevin Powell - Community
•Created by CDL on 7/26/2024 in #front-end
mobile view - scuffed?
6 replies
KPCKevin Powell - Community
•Created by CDL on 7/25/2024 in #ui-ux
Color combos for a site containing multiple inputs/buttons
9 replies
KPCKevin Powell - Community
•Created by CDL on 6/25/2024 in #os-and-tools
How to work on a project on 2 local machines?
I'll be working on projects on my laptop and desktop. I initially started it on my laptop.
If I now fork/clone the github repo onto my desktop, make changes, then commit them, am I still doing the below on my desktop?
git add .
git commit
git push -u origin master
or is there something else I do on desktop, vs laptop?
23 replies
KPCKevin Powell - Community
•Created by CDL on 6/25/2024 in #front-end
svelte logic (if else) - can you write this in the js? (potential very dumb question)
Basically I want to put a conditional in here so if count is == 0 then the decrement button vanishes (haven’t coded it as on phone).. I figured that’d be a conditional in the decrement function, and if it is do I write it as a typical js conditional, or a svelte conditional?
‘’’js
<script>
let count = 0;
function increment() {
count += 1;
}
</script>
<button on:click={increment}>
Clicked {count}
{count === 1 ? 'time' : 'times'}
</button>
{#if count > 10}
<p>{count} is greater than 10</p>
{:else}
<p>{count} is between 0 and 10</p>
{/if}’’’js
7 replies
KPCKevin Powell - Community
•Created by CDL on 6/7/2024 in #front-end
Grid layout to cover spacing with Header/Footer/Content
This is my attempt with a very basic layout... I have a flex version which I think is ok, but this is how I've managed the grid version..
https://codepen.io/Laing91/pen/dyEzGLo
I realized the elements were stacking without flexbox, so I've flexed the child elements of the grid container so that they default to row and can be spaced out etc..
flex version if interested:
https://codepen.io/Laing91/pen/WNWvagz
3 replies
KPCKevin Powell - Community
•Created by CDL on 5/27/2024 in #os-and-tools
setting up Git/Github on 2nd console?
Pick up my laptop Wednesday, obviously want to try get everything synced as much as possible, with the GitHub repository I’ll have to clone them all onto the laptop so I get the local files; Is there anything I do with git? It’s been like 2 years since I’ve had to mess around with the config for GitHub or Git 😅
4 replies
KPCKevin Powell - Community
•Created by CDL on 5/8/2024 in #front-end
centering content inside a grid container?
6 replies
KPCKevin Powell - Community
•Created by CDL on 5/7/2024 in #front-end
React/Vite -> Trying to connect routes & components together through App.jsx
https://github.com/callum-laing/react-test-proj
Clicking the Link at the bottom of the page does move us from http://127.0.0.1:5173 to http://127.0.0.1:5173/transition so the route is working, but the content isn't changing.. I thought it would show the component's content as I have the route path correct (I think)
Edit: Is it to do with the content that is already on the page? does this need to perhaps be in a component and then rendered in also?
66 replies
KPCKevin Powell - Community
•Created by CDL on 5/7/2024 in #front-end
React + Vite Builds -what do you style in index.css and app.css?
1 replies
KPCKevin Powell - Community
•Created by CDL on 5/4/2024 in #front-end
Transitions/Animations - Where to start, and what to avoid?
Looking for info on how to start using transitions/animations - the only ones I'm aware of and have used are the basics from Svelte transition: in/out, fade, fly etc...
I'm wanting to learn this through Vanilla JS if possible, but also React 🙂
1 replies
KPCKevin Powell - Community
•Created by CDL on 4/26/2024 in #front-end
React + Tailwindcss users? Help with some examples please!
I'm trying to learn this damn thing, unfortunately every job here uses it and I've done nothing but vanilla css for 3+ years and sadly, this stuff is pure alien to my little pepega brain.
Could you perhaps show me an example of a card, or a navbar using React/Tailwind? or honestly just any kinda simple component so I can get a feel as to how this is used.. preferably something using grid/flex too.
Thanks!
9 replies
KPCKevin Powell - Community
•Created by CDL on 4/2/2024 in #front-end
Card positioning inside a grid container, we want the price and buttons to be the same for each card
49 replies