Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minecraft and Blog Subdirectory Integration #2305

Merged
merged 12 commits into from
Oct 21, 2024
Merged

Minecraft and Blog Subdirectory Integration #2305

merged 12 commits into from
Oct 21, 2024

Conversation

bernardhanna
Copy link
Collaborator

This pull request introduces multiple updates to the Codeweek platform, focusing on improving functionality, adding new features, and fixing various issues related to the Minecraft section, Tailwind CSS integration, and Blade templates. Below is a detailed list of changes:

Key Changes:

Added Blog Subdirectory in Menu:

Updated the blog link in menu.blade.php to point to the correct subdirectory.

Minecraft Section and Blade Component:

Added a new Minecraft section to the homepage.
Created a custom Blade component (MinecraftSection) and integrated it into the homepage Blade template.

Tailwind CSS and Autoprefixer Configuration:
Integrated Tailwind CSS and Autoprefixer into the build process by updating package.json, vite.config.js, and the Tailwind config file (tailwind.config.js).

Logo and Path Fixes:
Fixed the absolute path in menu.blade.php to prevent 404 errors for the blog link.
Replaced Minecraft SVG logo with PNG format for better compatibility and updated the relevant Blade views.

Reverted and Updated Package Files:
Added Tailwind directives (@tailwind base, @tailwind components, @tailwind utilities) to app.scss and style.scss to ensure the Tailwind styles are compiled correctly.

Files Modified and Added:

  • AppServiceProvider.php: Registered the Minecraft Blade component.
  • MinecraftSection Component: Created a new Blade component for the Minecraft section.
  • menu.blade.php: Fixed blog URL and pathing issues.
  • Minecraft Blade View: Added a new Minecraft view to the homepage, updating the logo and other assets.
  • Tailwind Config: Added custom colors, breakpoints, and fonts to tailwind.config.js.
  • Vite Config: Integrated Tailwind and Autoprefixer into the PostCSS pipeline.
  • package.json and package-lock.json: Updated for Tailwind and dependency management.
  • Images: Added new images in avif, png, and webp formats for the Minecraft section.

Additional Notes:

The changes ensure that Tailwind CSS and Autoprefixer are properly configured in the project while reverting earlier problematic package file versions.

The custom Blade component for Minecraft can be reused across multiple views, enhancing code reusability and reducing redundancy.

@bernardhanna bernardhanna merged commit a7d3d1e into master Oct 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant