Front End Fraternity (@FrontEndFrater) header
Front End Fraternity (@FrontEndFrater) profile picture

Everything about front-end web development: HTML, CSS, JavaScript, Accessibility, UI, UX, etc. Follow to learn. Need a website or landing page? DM me.

๐Ÿ‡ฎ๐Ÿ‡ณ
Joined February 2023
Photo by Front End Fraternity (@FrontEndFrater)Photo by Front End Fraternity (@FrontEndFrater)Photo by Front End Fraternity (@FrontEndFrater)Photo by Front End Fraternity (@FrontEndFrater)Photo by Front End Fraternity (@FrontEndFrater)Photo by Front End Fraternity (@FrontEndFrater)Photo by Front End Fraternity (@FrontEndFrater)Photo by Front End Fraternity (@FrontEndFrater)Photo by Front End Fraternity (@FrontEndFrater)Photo by Front End Fraternity (@FrontEndFrater)
Front End Fraternity retweeted
10 years since the first commit to the file that eventually became Tailwind CSS ๐Ÿฆ•
103
106
16
3,780
169,715
Front End Fraternity retweeted
13 popular project ideas involving HTML and CSS, perfect for honing your web development skills: Personal Portfolio Website: Create a website to showcase your skills, projects, and resume. Blog Website: Design a blog with posts, comments, and a responsive layout. E-commerce Website: Build a basic online store with product listings, categories, and a shopping cart. Landing Page: Design a sleek and engaging landing page for a product, event, or business. Restaurant Website: Create a website for a restaurant featuring a menu, photo gallery, and location map. Travel Agency Website: A site with travel packages, booking forms, and destination guides. Photo Gallery: Develop an interactive photo gallery with various layouts and styles. Event or Conference Website: Include event schedule, speaker profiles, and registration forms. Educational Website: Build an educational site with courses, tutorials, and learning resources. News Website: A news portal with different categories, comment sections, and live feeds. Music or Video Streaming Website: Design a platform for streaming music or videos with playlists and user profiles. Fitness Website: Create a site with workout plans, nutrition guides, and fitness calculators. Social Media Dashboard: A dashboard design for managing and displaying social media metrics and activities. These projects cover a range of skills and complexities, making them suitable for both beginners and more experienced developers. Each one can be enhanced with additional features like JavaScript interactivity, backend integration, or advanced CSS techniques like animations and transitions.
1
10
3
10
2,149
Front End Fraternity retweeted
Some secret design sauce โ€” never use gray borders with shadows. Use a semi-transparent outline instead, so the bottom edge blends with the shadow and gets darker instead of turning into mud. Subtle, but once you see it you can't unsee it.
49
109
11
3,297
220,692
Front End Fraternity retweeted
I know it's popular to hate on JS frameworks, but I for one am super grateful for libraries like React and Vue โ€” they have made it so much easier to create awesome UIs by simply feeding them some data and having them handle all the reactivity. I clearly remember the days when I had to do that myself, and I don't miss them. Plus with Vite, the developer experience of building these UIs is just incredible. It's so fast. Thank you JS people โค๏ธ
8
6
155
8,484
Front End Fraternity retweeted
Tailwind CSS v4.0 stable will be out next week ๐Ÿค๐Ÿป
121
347
67
4,355
225,299
Front End Fraternity retweeted
๐Ÿ‘€ React 19 Insight The function signatures of server actions adapt depending on how they are used within a React form. Below, I show three variations ๐Ÿ‘‡ 4๏ธโƒฃ A fourth variation would be to use React's useActionState hook without binding an extra argument to the request. ๐Ÿ”˜ Alternatively, we could avoid binding altogether by using a hidden input field (see reply 0 for details).
7
42
362
18,454
Front End Fraternity retweeted
Bootstrap CSS or Tailwind CSS Which one do you use and why?
1
2
195
Front End Fraternity retweeted
Tailwind CSS v4.0-beta by end of day Tuesday ๐Ÿš€
54
75
17
1,523
101,725
Front End Fraternity retweeted
๐Ÿ’Ž UI spacing cheatsheet This spacing system was created using a principle of proximity: elements positioned close together are perceived as belonging to the same group. This system works well for dynamic spacing. ๐Ÿ‘‡
9
137
7
1,275
114,474
Front End Fraternity retweeted
๐Ÿšจ ULTIMATE GIVEAWAY! ๐Ÿšจ I'm giving 3 people access to my Ultimate Framer Masterclass 2.0 for FREE! ๐Ÿฅณ Retweet this post to enter ~ winners will be announced in 24 hours. ๐Ÿ”ฅ
88
260
14
270
31,571
Front End Fraternity retweeted
Day 1: Introduction to Advanced JavaScript Functions Welcome to Day 1 of #100DaysOfCode! ๐ŸŽ‰ Today, we're diving into advanced JavaScript functions. Understanding these concepts will help you write more efficient and powerful code. Let's get started! 1. What are Functions? Functions are the building blocks of JavaScript. They allow you to encapsulate code for reuse and maintainability. Here's a basic function example: function greet(name) { return `Hello, ${name}!`; } console.log(greet("Alice")); // Output: Hello, Alice! 2. Why Advanced Functions? As you progress, you'll encounter scenarios where basic functions aren't enough. Advanced functions provide more control, flexibility, and efficiency. These include closures, higher-order functions, currying, and more. 3. Closures Closures allow a function to access variables from its outer scope even after the outer function has finished executing. Here's an example: function makeCounter() { let count = 0; return function() { count++; return count; }; } const counter = makeCounter(); console.log(counter()); // Output: 1 console.log(counter()); // Output: 2 4. Higher-Order Functions Higher-order functions are functions that take other functions as arguments or return them as results. These are powerful tools for functional programming. Example: const numbers = [1, 2, 3, 4]; const doubled = numbers.map(num => num * 2); console.log(doubled); // Output: [2, 4, 6, 8] 5. Function Currying Currying transforms a function with multiple arguments into a series of functions each taking a single argument. This can be useful for creating more reusable functions. Example: function add(x) { return function(y) { return x + y; }; } const add5 = add(5); console.log(add5(3)); // Output: 8 6. Recursion Recursion is a technique where a function calls itself. It's useful for tasks that can be divided into similar subtasks. Example: function factorial(n) { if (n === 0) return 1; return n * factorial(n - 1); } console.log(factorial(5)); // Output: 120 7. Self-Invoking Functions (IIFE) Immediately Invoked Function Expressions (IIFE) execute as soon as they are defined. They help create a local scope to avoid polluting the global namespace. Example: (function() { console.log("This is an IIFE!"); })(); // Output: This is an IIFE! Advanced functions are crucial for writing clean, efficient, and modular JavaScript code. Over the next few days, we'll explore each of these concepts in depth. Stay tuned! ๐Ÿš€ #100DaysOfCode #JavaScript Feel free to ask questions or share your thoughts in the comments! ๐Ÿ‘‡
1
2
121
Front End Fraternity retweeted
Day 3: Higher-Order Functions Welcome to Day 3 of #100DaysOfCode! Today, weโ€™re exploring higher-order functions in JavaScript. These functions can take other functions as arguments or return them as results, making them extremely powerful. Letโ€™s dive in! #JavaScript 1. What are Higher-Order Functions? Higher-order functions are functions that operate on other functions, either by taking them as arguments or by returning them. This allows for more abstract and flexible code. 2. `map` Function: The `map` function is a higher-order function that applies a given function to each element in an array, returning a new array with the results. const numbers = [1, 2, 3, 4]; const doubled = numbers.map(num => num * 2); console.log(doubled); // Output: [2, 4, 6, 8] 3. `filter` Function: The `filter` function creates a new array with all elements that pass a test implemented by the provided function. const numbers = [1, 2, 3, 4, 5]; const evens = numbers.filter(num => num % 2 === 0); console.log(evens); // Output: [2, 4] 4. `reduce` Function: The `reduce` function applies a function against an accumulator and each element in the array (from left to right) to reduce it to a single value. const numbers = [1, 2, 3, 4]; const sum = numbers.reduce((acc, num) => acc + num, 0); console.log(sum); // Output: 10 5. Creating Your Own Higher-Order Functions: You can create your own higher-order functions by writing functions that take other functions as arguments or return them. function greet(name) { return function(message) { console.log(`${message}, ${name}!`); }; } const greetJohn = greet('John'); greetJohn('Hello'); // Output: Hello, John! 6. Practical Use Case: Sorting- Higher-order functions are useful for custom sorting. For example, sorting an array of objects by a property: const users = [ { name: 'Alice', age: 25 }, { name: 'Bob', age: 30 }, { name: 'Charlie', age: 20 } ]; users.sort((a, b) => a.age - b.age); console.log(users); // Output: // [ // { name: 'Charlie', age: 20 }, // { name: 'Alice', age: 25 }, // { name: 'Bob', age: 30 } // ] 7. Functional Programming: Higher-order functions are a key concept in functional programming, which emphasizes immutability and the use of pure functions. This leads to more predictable and maintainable code. 8. `forEach` Function: The `forEach` function executes a provided function once for each array element. Itโ€™s often used for side effects. const numbers = [1, 2, 3, 4]; numbers.forEach(num => console.log(num)); // Output: // 1 // 2 // 3 // 4 9. Combining Higher-Order Functions: You can combine multiple higher-order functions to create powerful data transformations. const numbers = [1, 2, 3, 4, 5, 6]; const result = numbers .filter(num => num % 2 === 0) .map(num => num * 2) .reduce((acc, num) => acc + num, 0); console.log(result); // Output: 24 Higher-order functions are a powerful feature in JavaScript that enable more abstract, flexible, and reusable code. They are foundational to functional programming and are widely used in modern JavaScript development. Tomorrow, weโ€™ll dive into function currying. Stay tuned! ๐Ÿš€ #100DaysOfCode #JavaScript Feel free to ask questions or share your thoughts in the comments! ๐Ÿ‘‡
1
94
Front End Fraternity retweeted
10 key modern CSS features you must know: 1. CSS Grid: A two-dimensional layout system that allows you to create complex grid-based layouts. It's built around a set of grid containers and grid items, and it works by defining rows and columns that layout the grid. 2. CSS Flexbox: A one-dimensional layout system that allows you to create flexible and adaptive layouts that can adapt to different screen sizes and orientations. 3. CSS Variables: Also known as custom properties, CSS variables allow you to store values that can be reused throughout a stylesheet. This makes it easier to maintain and update styles. 4. CSS import: Allows you to import external stylesheets into your main stylesheet, making it easier to organize and manage your CSS code. 5. CSS Pseudo-Elements: Pseudo-elements like ::before and ::after allow you to insert content before or after an element's content. This can be used for styling purposes or to add decorative elements. 6. CSS Media Queries: Media queries allow you to apply different styles based on the characteristics of the device or screen, such as width, height, and orientation. 7. CSS Animations: CSS animations allow you to define configurations of style, as keyframes, and to transition between them defining an animation. 8. CSS Transitions: CSS transitions allow you to define an animation between several styles and to control the way this transition happens. 9. CSS Transforms: Transforms allow you to change the position of elements by modifying their coordinate space: it allows for translating, rotating, and deforming them in the 2D or 3D spaces. 10. CSS Counters: Counting items and pages is an easy task in CSS. Learn to use counter-reset, counter-increment, counters(), and counter().
1
2
125
UI/UX Designers, here are types of paginations you should know when designing your next UI design project. Bookmark it for later ๐Ÿ’œ
13
111
6
1,149
126,941
Front End Fraternity retweeted
Internship!! Need a remote Frontend developer intern for a project Preferred stack: MERN Apply with your portfolio This is a paid opportunity. Also quote time availability
318
153
10
1,357
207,421
Front End Fraternity retweeted
Whenever I see a UI like this I sigh: because I can tell whoever built it is an dev who doesn't care about their craft much. The card type can be inferred from the first few digits of any card, using a regex. It's a neat (and fun!) thing to code + makes for more pleasant UX.
194
178
33
4,775
631,776
Front End Fraternity retweeted
Frontend development is all about paying attention to the details. Can you: 1. Retrieve data from endpoints? 2. Manage errors during requests and responses? 3. Indicate when content is loading? 4. Present data effectively on a webpage? 5. Optimize the user interface for mobile devices? 6. Ensure your UI is accessible to all users? 7. Implement hover effects? 8. Create a popover menu? 9. Toggle visibility of content with a button press? 10. Ensure input validation (like accepting only numbers for age)? 11. Disable buttons when a form isn't completely filled out? 12. Use events like onClick, onMouseOver, and onKeyPress? 13. Prevent the default action of events? 14. Append headers and bodies to network requests? 15. Show messages indicating success or failure?
34
102
8
427
34,274
Front End Fraternity retweeted
Been there ๐Ÿ˜…
66
62
7
714
30,827
Front End Fraternity retweeted
ya'll know what i'm talkin about
79
578
118
6,512
397,939
Front End Fraternity retweeted
Here is a controversial take. I never enjoyed writing CSS. Bootstrap made it bearable. Then comes @tailwindcss . Now I can get the job done faster. Itโ€™s something that is foundational, optimized and gets the job done faster. I even recommend it to beginners.
47
34
6
604
38,467