Latest Updates

Documenting code, one commit at a time.

Code Style Consistency in Breniapp/brenia with php-cs-fixer

Introduction

Maintaining a consistent code style is crucial for any project, especially when multiple developers are contributing. This post delves into how the Breniapp/brenia project enforces code style using php-cs-fixer, focusing on Livewire dispatch calls.

The Importance of Code Style

Consistent code style improves readability, reduces cognitive load, and minimizes merge

Read more
PHP CSS

Unifying Email Styling with Brand Colors in Landing Project

Introduction

The landing project is focused on creating a consistent and appealing user experience. A key aspect of this is ensuring a unified brand identity across all communication channels, including email. This post details how we standardized email styling to align with the project's brand guidelines.

The Challenge

Previously, email templates used per-template color overrides,

Read more
PHP Livewire

Serving Files Directly: Migrating from Livewire AJAX to HTTP Routes

This post details a recent optimization in the landing project, focusing on how we transitioned file downloads from a Livewire AJAX implementation to a more robust HTTP route. This change addresses issues with file corruption and improves overall reliability.

The Problem: Corrupted File Downloads

Initially, we used a Livewire method, downloadCv(), to serve dynamically generated DOCX files.

Read more

Mitigating XSS Vulnerabilities in Livewire/Alpine.js with @js()

The Problem

In the landing project, we encountered a subtle but significant security issue related to how data was being passed from PHP to JavaScript within our Blade templates. Specifically, when using Livewire and Alpine.js, values containing special characters (like apostrophes in names such as "O'Brien") could break the JavaScript context, leading to unexpected behavior or, worse,

Read more

Improving Feedback Form Accuracy in Landing Pages

Introduction

In web development, capturing accurate context is crucial for debugging and improving user experience. This post addresses an issue encountered in the devlog-ist/landing project where the feedback form was capturing an incorrect URL due to server-side rendering limitations with Livewire.

The Problem: Server-Side URL Capture

When using Livewire, attempting to capture the

Read more
PHP CSS HTML

Enhancing Landing Page Themes with Responsive Education and Language Sections

The landing project focuses on creating engaging and informative landing pages. Recent updates introduce a more intuitive layout for showcasing education and language skills within the retro and nan themes.

The Problem

Previously, the education and language sections were not optimally positioned on the page, nor were they displayed in a way that maximized readability and visual appeal,

Read more

Personalizing the User Experience: Dynamic Theme Switching in Landing Pages

Introduction

Imagine offering users a seamless way to customize their experience directly from their portfolio page. This post details how the 'landing' project implemented a floating theme selector, providing authenticated owners the power to change their portfolio's appearance without navigating to admin settings.

The Challenge: Static Themes

Previously, users had to delve into admin

Read more
PHP CSS

Enhancing User Experience with Email Customization in Landing

The landing project focuses on creating a seamless user experience. A recent enhancement involved improving email notifications to provide more clarity and a better call-to-action.

Consistent Branding and Improved Navigation

The update addresses two key areas: visual consistency and ease of navigation. The email footer's color was previously inconsistent with the header, using a darker shade

Read more