CDL
CDL
Explore posts from servers
KPCKevin Powell - Community
Created by CDL on 7/2/2024 in #front-end
VueJS Navbar
No description
42 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
CC#
Created by CDL on 5/26/2024 in #help
best place to get started learning C# for web dev?
I’ve been learning C# fundamentals for a little while now and I’m trying to find a reliable tutorial or documentation (preferably a video tutorial) on building and learning C# for web dev. I get a little confused over which version it’s currently in, assuming because of my tag that it’s ASP.NET CORE? Also.. am I fine writing this one VSC, or is there an advantage to using VS? I write mostly react right now so I live in VSC. Thanks!
9 replies
KPCKevin Powell - Community
Created by CDL on 5/8/2024 in #front-end
centering content inside a grid container?
No description
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?
function App() {
return (
<Router>
<div>
<div className="intro">
<h1>The Playground</h1>
<p>Where we "test" whatever comes to mind.</p>
</div>
<div>
<Link to="/transition">Transition Example</Link>

<Routes>
<Route path="/transition" element={<TransitionExample />} />
</Routes>
</div>
</div>
</Router>
);
}
function App() {
return (
<Router>
<div>
<div className="intro">
<h1>The Playground</h1>
<p>Where we "test" whatever comes to mind.</p>
</div>
<div>
<Link to="/transition">Transition Example</Link>

<Routes>
<Route path="/transition" element={<TransitionExample />} />
</Routes>
</div>
</div>
</Router>
);
}
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?
No description
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
No description
49 replies
KPCKevin Powell - Community
Created by CDL on 4/2/2024 in #front-end
Trying to align every card so that the button?
No description
13 replies
CDCloudflare Developers
Created by CDL on 4/2/2024 in #pages-help
Trying to host a NextJS project on Cloudflare. Error: Output directory "out" not found.
No description
4 replies
KPCKevin Powell - Community
Created by CDL on 3/28/2024 in #front-end
Changed the hardcoded Data on my ecommerce site to fakestore API but now having trouble pushing data
https://github.com/callum-laing/shopping-site I encountered this issue before but my experience/knowledge with React isn't good enough to figure this out anymore, and I'm at the point where I'd just like to get it working so I can move on to something else 😅 I'm not getting any errors when I try testing lines/functions in the console, you click "add to cart" and it's like nothing happens, literally, so I'm not sure where the missing piece of the puzzle is... I tried putting this into a codesandbox but it wasn't playing ball, so apologies that i only have my github repo to work with.
8 replies
KPCKevin Powell - Community
Created by CDL on 3/27/2024 in #front-end
How to increase the quantity on an item that already exists in my shopping cart?
Yo! I'm trying to figure out how I go about increasing the quantity of an item that already exists in cart/page.jsx, instead of it adding that same item again as a new element each time, but I can't figure it out. the repo is here: https://github.com/callum-laing/shopping-site
23 replies
KPCKevin Powell - Community
Created by CDL on 3/25/2024 in #os-and-tools
Hosting custom domains through cloudflare (google domains (squarespace?))
No description
2 replies
KPCKevin Powell - Community
Created by CDL on 3/24/2024 in #front-end
Looking for some tips/tricks to use Svelte animations/transitions for either page load, or scroll
Looking to jazz up the portfolio a bit but don't want to over-do it. At the moment I only seem to have fly working well, but I can't just use that for the entire page 🤣 https://github.com/callum-laing/portfolio-v4
1 replies
KPCKevin Powell - Community
Created by CDL on 3/19/2024 in #front-end
Is there an efficient way to handle SVG usage in Svelte?
No description
16 replies
KPCKevin Powell - Community
Created by CDL on 3/19/2024 in #back-end
If Sveltekit, Next, Nuxt, are "Fullstack" frameworks, why would you need a backend language?
Am I to assume that sure, the Fullstack Frameworks can do fullstack, but they're limited to a certain point? they can handle API calls, server side rendering, off the top of my head, what's missing that a backend language solves?
1 replies