/r/Frontend

Photograph via snooOG

/r/frontend is a subreddit for front end web developers who want to move the web forward or want to learn how. If you're looking to find or share the latest and greatest tips, links, thoughts, and discussions on the world of front web development, this is the place to do it.

Are you beyond (or want to be beyond) the days of href="javascript:void(0)"? Does the idea of having HTML templates inside of a MySQL database make you nervous? Do you love making beautiful, modern websites? Then /r/frontend is for you.

What is /r/frontend?

/r/frontend is a subreddit for front end web developers who want to move the web forward or want to learn how. If you're looking to find or share the latest and greatest tips, links, thoughts, and discussions on the world of front web development, this is the place to do it.

Here's the kinds of things you'll find (and should post about) here:

  • HTML5 APIs and elements
  • JavaScript frameworks, libraries and microlibs (BackboneJS, AngularJS, Knockout, Ember, jQuery, Zepto, and on...)
  • CSS/SCSS/LESS/etc. frameworks/tools/management
  • Design workflow and prototyping tools
  • UI/UE/UX examples and discussion
  • Neat new stuff like canvas, web sockets/workers, audio, etc.
  • Responsive/mobile design and optimization
  • Page-load performance optimization and perceived speed
  • Web-focused application architecture and development
  • Analytics and data visualization
  • Asset management and deployment
  • Automation and build tools
  • Accessibility best practices
  • Front-end office/company culture
  • ... and anything else that probably fits!

Rules

  1. Keep self promotion to a minimum. "It's perfectly fine to be a redditor with a website, it's not okay to be a website with a reddit account." - Confucius
  2. No posting your project without the source or repo We get it, you guys build some cool things, but this isn't r/sideproject or another sub for getting praise and onboarding users. For it to be valid and related to frontend it should be accompanied by the open source repo, and the context of the post should be around the frontend of your project, not the project idea.
  3. No Recruiters. or recruitment posts.
  4. Stay on the topic of Frontend

The web is growing fast

Nowadays, the field of front end development is evolving at such a rapid pace that sometimes it's difficult to say what is frontend and what isn't. Therefore, some lenience is allowed in the type of posts that may seem more back-end oriented so long as their emphasis seems to be in the spirit of the subreddit.

Front-End Resources

You can find a list of useful sites and resources including blogs, social media sites, utilities, guides, tutorials, newsletters, tools, and more in our /r/frontend wiki.

Related Subreddits

/r/Frontend

280,471 Subscribers

4

Functional Web Components with LitElements

Do we need yet another UI framework? Probably not. This is something im working on to practice, learn and to use in my own projects.

I decided to create a UI framework to make LitElements more functional. I like the idea of webcomponents and litElement, but i also liked the ReactJS syntax for what i think is "more readable" and "more maintainable" code. So i decided to create a simple todo app using a functional approach with LitElements.

Im investigating unstable and experimental features, so i dont reccommend anyone to adopt using this yet. The implementation is far from finished, but seems to be working enough to test.

Future improvements on this im looking into are:
- bottom-up state management
- encrypted state persistence at rest

Todo List how-to: https://positive-intentions.com/blog/dim-todo-list

Blog: https://positive-intentions.com/blog/dim-functional-webcomponents

GitHub: https://github.com/positive-intentions/dim

Demo: https://dim.positive-intentions.com/?path=/story/components-todo--basic

4 Comments
2024/12/02
12:45 UTC

0

A little help with Webpack and Sass?

So, I've been tearing my hair out over this problem with Webpack generating incorrect sourcemaps for my Sass files. When I inspect in developer tools (or use a tool like this one), the generated CSS maps to the wrong source files. This only seems to happen with my own code, not third-party Sass files (I'm including Bootstrap in my project). I've definitely narrowed the issue down to being Webpack-related: When I compile from the command line with (Dart) Sass, the emitted sourcemap is correct. I've setup an example project to prove this. The Webpack configuration there is nearly identical to my actual project's config (except the actual project's config also compiles JS, images, fonts, etc.). Compare the output in the dist directory when you run npm run build to when you run sass --embed-sources -I ./node_modules/ src/scss/app.scss:dist/app.css, there's definitely a difference in the main sourcemap. If it matters, you'll notice that I'm using use directives instead of import (as opposed to Bootstrap's outdated Sass code).

0 Comments
2024/12/01
02:13 UTC

0

Which tech stack

I am starting to build a web application for travel.

It requires a highly dynamic front end that will interact with vendor APIs to retrieve search results.

Which front end tech should I use?

23 Comments
2024/11/30
18:28 UTC

0

Where to start?

I’m an experienced backend developer, I’m tired of using plain css, and want to learn something to make frontend less of a pain. Ideally something that can is light, and has little boilerplate code. What should I do?

15 Comments
2024/11/29
23:55 UTC

9

How do I make an interface with draggable tiles in React

Similar to like how you can drag apps and tiles on a smartphone home screen, but I want to make a website like that.

11 Comments
2024/11/29
11:54 UTC

2

awwwards masterclasses review

hey fellow frontenders
I'm looking at some awwwards masterclasses and found out thatnthey're 10 euros right instead of 100
would it be worth it to buy a couple of masterclasses?
anyone in here who has done some of them? I'd like to hear about your epxerience

2 Comments
2024/11/29
11:22 UTC

26

Hey frontend developers, how well do you use Figma devmode?

I would like to know how do you utlize Figma devmode when you work with designers.

50 Comments
2024/11/29
11:04 UTC

6

border-radius pop quiz

What is

border-radius: 4px 3px 6px / 2px 4px

equivalent to in longhand? Feel free to use the spec, you will still get it wrong 😅

Answer:

! border-top-left-radius: 4px 2px;

border-top-right-radius: 3px 4px;
border-bottom-right-radius: 6px 2px;
border-bottom-left-radius: 3px 4px; !<

So intuitive. I <3 CSS

6 Comments
2024/11/29
02:06 UTC

4

Interview with vp of product

I have a behaviour round with VP of product for senior front end position, anyone have any tips ? I never been interviewed by product people before , usually it’s manager or engineers

Thanks

5 Comments
2024/11/29
00:13 UTC

1

Advanced UI controls

How might I start building things like volume knobs and sliders in react? We used to build things like this in flash. So this is using drag inputs and constraining graphics. Having infinitesimal resolutions to work with don't know where to start.

3 Comments
2024/11/28
22:01 UTC

1

Switching from BootstrapVue (Bootstrap v4): Suggestions for a Modern, Lightweight UI Library?

Hey everyone!

We're looking to replace our current component library, which is built with BootstrapVue. The main reasons for the switch are:

  1. Incompatibility with Vue3
  2. BootstrapVue uses Bootstrap v4 under the hood which is very heavy-weight as it still uses jQuery.

We already use TailwindCSS and SCSS in our development, so we're considering shadcn as a potential replacement. One key requirement is that the new library must be heavily customizable to help us maintain the look and feel of the Bootstrap components we're currently using.

We also need it to support:

  • Accessible components
  • Responsive design
  • Vue3 compatibility
  • Interactive Components (Modals, Dropdowns, etc.)
  • Animations and Transitions
  • Comprehensive Documentation and Active Community
  • Potentially Dark Mode Support

Does anyone have experience using shadcn in a Vue3 + Tailwind environment? Are there other UI libraries or frameworks you'd recommend that offer a good balance between performance, customization, and accessibility?

Thanks in advance for your insights!

2 Comments
2024/11/28
19:45 UTC

19

Front-End Web Developer Looking for Experience

I have solid knowledge of PHP, HTML, CSS, and JavaScript. I'm currently seeking opportunities to gain experience and earn a sustainable income for daily expenses. Ideally, I’m looking for a salary range between $200 and $400, which works perfectly for me. Alternatively, I’d consider an internship, even unpaid, as long as the schedule isn’t too demanding.

Currently, I’m training to become a Back-End Developer with the goal of transitioning into Full-Stack development. I’m expanding my skills in TypeScript, Angular, React, and Vue. My English is at an intermediate level—it’s not conversational yet, but I’m actively working on improving it.

I hope this post doesn’t break any sub rules.

14 Comments
2024/11/28
18:25 UTC

2

Faang interview question

I was given a very strange task at front end coding round. We save data from user they can enter host + port host can be letters and numbers. ports only numbers they are divided by : for instance abc:1000, abc1:1005, abc5:1000 also possible abc1:1001,abc10:1002, abc11:1003, abc100:1004 What data structure would I use to save the input. hint: in the last examples 1 - is binary equal to 1, 10 is to 2, 11 to 3 and 100 to 4 anyone has an idea what is it about ? I asked interviewer in the end, but he said there is not correct answer it is open ended question.

11 Comments
2024/11/28
02:03 UTC

1

E-commerce inspiration?

Feels like I'm hitting a brick wall - designing a site for a luxury personalised gifting business that also wants a defined homeware section, two different niches that need to meld together...

Any sources of inspiration? Limited to a degree as I'm building it through Pagefly via Shopify - at first I thought it was the perfect site builder... Slowly regretting it and questioning life choices 😭

1 Comment
2024/11/27
23:17 UTC

32

Got hired as a front end developer. But its just wordpress web design give me tips and tricks to make it more interesting

Oke let me state. I am not an expert developer but im more of a jack of all trades master of none. I know my way around and my motivation and nice feelings in my stomach when i create a nice looking website get me quite far in the game. But i never really dived into wordpress. I mean its easy but i also feel it could be better.

34 Comments
2024/11/27
21:54 UTC

3

Custom Loading screen on React && Next 14

Hey everyone !

I would like to implement in my app a custom and not loop animation while the page loads..
If I render it on the loading default component, possibily the animation will be completed before the page is ready.

So, here is what I would like to do:
Create a component that runs the begining of an animation and when the page is "ready", I run the last part of the animation.

Could you please help me to achieve it ?

Thank you very much !!

0 Comments
2024/11/27
18:18 UTC

0

I added Astro support to my TailwindCSS extension.

So I made a video to showcase this, but I'm not allowed to use YouTube links so I'll just link the extension: https://chromewebstore.google.com/detail/gimli-tailwind/fojckembkmaoehhmkiomebhkcengcljl

0 Comments
2024/11/27
13:54 UTC

15

I have a month. Give me something to build.

I’ve got 4-6 weeks free and I need a new project to keep me busy.

Does anyone have any problem they want solved or something they want solved but arent going to do it themselves?

Just built podcasttomp3.com in a few days after building a Learning Management System last couple of months.

Not charging anything, just need a cool idea.

47 Comments
2024/11/27
10:24 UTC

Back To Top