Commit Graph

116 Commits

Author SHA1 Message Date
Rico van Zelst
fdc2843f6f feat(components): add Matomo analytics component
Add Matomo analytics tracking code to a new Blade component for easy integration across views.
2024-02-26 03:05:42 +01:00
Rico van Zelst
322755a42a style(layout): remove unused font loading code
Removed unused font loading code from the layout file to improve clarity and reduce unnecessary clutter.
2024-02-26 02:14:17 +01:00
Rico van Zelst
cb7cef45cf feat(fonts): add Inter font files for various weights
Add font files for Inter font family with different weights (100-900) in WOFF2 format. Update CSS to include font-face declarations for each weight.
2024-02-26 02:04:39 +01:00
Rico van Zelst
6a91cc1b7e style(footer): add aria-label attribute to link for accessibility 2024-02-26 01:32:50 +01:00
Rico van Zelst
c53a8154bd chore(about): update GitHub link in about page
Updated the GitHub link on the about page to provide a more concise and clear call-to-action for developers interested in contributing to the project.
2024-02-25 02:56:21 +01:00
Rico van Zelst
088066f720 feat(skins): Update grid_info blade with improved styling and layout
- Refactored CSS classes for better readability
- Adjusted grid layout for responsiveness
- Updated image display properties and transitions
2024-02-25 01:40:21 +01:00
Rico van Zelst
9dd4cc3b87 style(meta): Add dark mode meta tag and fix indentation
Added a meta tag to disable DarkReader on the site and fixed the indentation in the file.
2024-02-24 22:20:13 +01:00
Rico van Zelst
30819a8e14 style(about): Rearrange classes in about page for consistency
- Reordered classes in HTML elements for better readability and maintainability.
- Updated class order in various elements to follow a consistent pattern.
2024-02-24 21:54:32 +01:00
Rico van Zelst
8bdcd5b086 feat(contact): Add hCaptcha integration, Discord alert for contact
- Added hCaptcha validation to the contact form.
- Integrated hCaptcha configuration in the application.
- Implemented Discord alerts for new contact submissions with detailed content.
2024-02-24 21:52:00 +01:00
Rico van Zelst
1ed7856985 feat(contact): add ContactSubmissionController and contact form view
- Added ContactSubmissionController with index and store methods for handling contact submissions.
- Created a new Blade view for the contact form with fields for name, email, discord, category, subject, and message.
- Updated routes to include endpoints for displaying the contact form and submitting it.
2024-02-24 20:30:23 +01:00
Rico van Zelst
13ba72c897 feat(env): add GTAG_MEASUREMENT_ID to env and config
- Added GTAG_MEASUREMENT_ID to .env.example
- Updated 'GTAG_MEASUREMENT_ID' in config/app.php
- Modified script tag in googletag.blade.php to use dynamic ID
2024-02-24 15:44:57 +01:00
Rico van Zelst
2c6246faea feat(faq): update League of Legends FAQ
- Reordered the questions and answers for better readability
- Updated information about League of Legends availability on different platforms
- Added information about the characters in Arcane and the end date of Season 14
2024-02-16 02:11:50 +01:00
Rico van Zelst
f1ada2fb01 refactor(icons): improve code readability and formatting
- Reorganized the HTML structure for better readability.
- Fixed indentation and spacing inconsistencies.
- Added missing newline after PHP opening tag.
- Updated class names to follow consistent naming conventions.
- Wrapped icon titles in anchor tags for improved accessibility.
2024-02-16 01:57:48 +01:00
Rico van Zelst
a48ea6e42f feat(home): update upcoming and latest skins display
- Updated the query in HomeController@index to filter upcoming skins based on release date.
- Updated the query in HomeController@index to filter latest skins based on release date.
- Added links to champion details page for each champion in list_all.blade.php.
- Added links to skin details page for each skin in recent_skins.blade.php and upcoming_skins.blade.php.
2024-02-16 01:41:06 +01:00
Rico van Zelst
1bb4655bdb feat(home): add link to skin details page
- Modify recent_skins.blade.php and upcoming_skins.blade.php
- Add a hyperlink to the skin name that redirects to the skin details page
2024-01-20 15:04:25 +01:00
Rico van Zelst
266b5f6a92 feat(posts): add privacy policy and terms of use pages
- Added new files `privacy-policy.md` and `terms-of-use.md` to the `content/posts` directory.
- Updated the footer component to include links to the privacy policy and terms of use pages.
- Updated the listposts component to exclude hidden posts from being displayed.
2024-01-20 14:01:02 +01:00
Rico van Zelst
e4051a2a4d feat(home): update upcoming skins description
- Updated the description of upcoming skins section on the home page.
- Added a link to the League of Legends Wiki as the data source.
- Mentioned that the data is not guaranteed to be real-time accurate.
2024-01-13 17:31:22 +01:00
Rico van Zelst
984b7a862d feat(components): add googletag component
- Added a new blade component `googletag.blade.php` to the `resources/views/components` directory.
- The component includes the necessary script tags for Google Tag Manager integration.
- Updated the `app.blade.php` layout file to include the newly added `googletag` component.
2024-01-03 03:51:50 +01:00
Rico van Zelst
5aef60fc5e refactor(posts): update thumbnail image class
fixes #59
2023-12-28 15:06:09 +01:00
Rico van Zelst
8aac9e6bd9 fix(views): fix role filter bug
The code changes in `list_all.blade.php` fix a spacing issue in the champion card component. So filters work now
2023-12-28 14:43:30 +01:00
Rico van Zelst
391e2a19f4 fix(about/faq): update League of Legends season end date
The answer to the question "When League of Legends season 13 end?" has been updated to reflect that Season 13 ends on January 9, 2024 at 12AM of the server's time zone. Additionally, it mentions that Season 14 will start on January 9th, 2024 when patch 14.1 is live.
2023-12-27 15:54:43 +01:00
Rico van Zelst
47f811f7d9 feat: Add DOCTYPE declaration to app.blade.php
This change adds the DOCTYPE declaration to the app.blade.php file in order to ensure proper rendering of HTML.
2023-12-14 15:04:44 +01:00
Rico van Zelst
c15c4d640f refactor: Update schema.org markup for FAQ dropdown
- Changed the itemtype from "https://schema.org/QAPage" to "https://schema.org/Question"
- Removed unnecessary itemprop attribute from summary element
- Added "suggestedAnswer" itemprop attribute to the answer element

These changes improve the accuracy and consistency of the schema.org markup for the FAQ dropdown component.
2023-12-14 14:57:58 +01:00
Rico van Zelst
5226d7e3fe refactor: Update FAQ dropdown to include schema.org markup
- Added `itemscope` and `itemtype` attributes to the main container div for QAPage schema
- Added `itemprop`, `itemscope`, and `itemtype` attributes to the summary element for Question schema
- Added `itemprop` attribute to the question text span
- Added `itemprop`, `itemscope`, and `itemtype` attributes to the svg element for Answer schema
- Wrapped the answer text in a div with itemprop, itemscope, and itemtype attributes for Answer schema
2023-12-14 14:35:23 +01:00
Rico van Zelst
c95d28164f feat: Add meta tag for thumbnail URL
Added a new meta tag with the property "thumbnailUrl" to the show.blade.php file. The content of the meta tag is set to the value of `$post->thumbnail`. This will help improve SEO by providing search engines with information about the thumbnail image associated with the post.
2023-12-14 14:29:24 +01:00
Rico van Zelst
20bdb09a8e feat: Add post thumbnail to show page
This commit adds a post thumbnail to the show page of a post. The thumbnail is displayed below the date and above the post title. It is an image with the source set to the URL of the post's thumbnail and alt text set to the post's title. The image has a fixed height, rounded corners, and a semi-transparent border.
2023-12-14 14:20:55 +01:00
Rico van Zelst
b88cdc1f07 feat: SEO Improvements
- Added `APP_STAGING` variable to `.env.example`
- Updated `config/app.php` to use `APP_STAGING` for determining the value of `IS_STAGING`
- Updated `resources/views/layouts/app.blade.php` and `resources/views/posts/show.blade.php` to include additional meta tags for SEO and attribution
2023-12-14 14:11:08 +01:00
Rico van Zelst
0a06f1f7cc refactor: Update import statement for Carbon library
The import statement for the Carbon library in the listposts.blade.php file has been updated to use the @use directive instead of the @php directive. This change improves code readability and follows best practices.
2023-12-13 09:01:30 +01:00
Rico van Zelst
83eb1421f7 refactor: Update itemid attribute in show.blade.php
The commit updates the itemid attribute in the show.blade.php file to dynamically set it based on the current URL. This change improves the accuracy of metadata for search engine optimization.
2023-12-12 14:40:52 +01:00
Rico van Zelst
3de5f42860 feat: blog post show page 2023-12-12 14:32:44 +01:00
Rico van Zelst
5fe3fcac61 feat: add working posts index
This commit adds pagination functionality to the posts index page. The code changes include:
- Sorting the posts by descending date
- Paginating the posts with 6 items per page
- Creating a new component called "Listposts" for rendering the paginated posts
- Adding a new view file for the "Listposts" component
- Updating the blade template of the posts index page to use the "Listposts" component and pass in the paginated posts

The purpose of these changes is to improve user experience by displaying a limited number of posts per page and providing navigation links for easier browsing.
2023-12-12 12:32:42 +01:00
Rico van Zelst
25c3675c2b feat: Add PostsController and configure routes
- Added a new file `PostsController.php` in the `app/Http/Controllers` directory.
- Implemented the `index()` method to retrieve all posts using the Sheets facade.
- Implemented the `show()` method to display a single post using route model binding with Sheets.
- Updated the `RouteServiceProvider.php` file to bind the 'post' route parameter to retrieve posts from the Sheets collection.
- Created a new configuration file `sheets.php` in the `config` directory, defining default settings for collections and their corresponding sheet classes, path parsers, content parsers, and extensions.
- Added a new markdown file `hello-world.md` in the `content/posts` directory as an example post.
- Created two new blade view files: `index.blade.php` and `show.blade.php`, under the `resources/views/posts` directory, for displaying lists of posts and individual post details respectively.
- Modified the existing web routes (`web.php`) to include routes for accessing posts.

The changes enable users to view all posts on `/posts`, as well as access individual post details at `/post/{post}`.
2023-12-12 10:23:15 +01:00
Rico van Zelst
66d71f84c0 feat(components): update heading tags in blade templates
- Updated the heading tags in the `list_all.blade.php` files for champions, emotes, icons, and skins from `<h2>` to `<h1>`.
- Also updated the heading tag in the `features.blade.php` file from `<h2>` to `<h1>`.
2023-12-08 18:18:12 +01:00
Rico van Zelst
733e9852ae refactor(faq): update about + faq
- Updated the HTML structure and removed unnecessary meta tags
- Replaced the Laravel blade syntax with standard PHP syntax
- Added appropriate section titles and descriptions for better SEO optimization
- Fixed a typo in the class name "min-h-sceen" to "min-h-screen"
- Removed redundant code related to OpenGraph and Twitter metadata
- Improved readability by using consistent indentation and spacing
2023-12-08 18:14:10 +01:00
Rico van Zelst
ba5f1f8b10 feat(assets): update assets index page layout and content
- Updated the layout of the assets index page to extend the 'layouts.app' template.
- Added a title and description for better SEO optimization.
- Reorganized the HTML structure for improved readability.
- Updated the section titles for clarity.
- Adjusted the styling of the main heading and subheading.
- Added an image and descriptive text to enhance user engagement.
- Improved the alignment and spacing of elements on the page.
- Updated the links to asset categories with improved hover effects.

This commit improves the overall user experience on the assets index page by enhancing its layout, content, and visual appeal.
2023-12-08 17:57:37 +01:00
Rico van Zelst
40fada31bd feat(views): update champions index and show views
- Updated the `index.blade.php` view to extend the `layouts.app` template and added a title, description, and content section.
- Added a new script (`lane-filter.js`) to be included in the `top_scripts` stack.
- Updated the `show.blade.php` view to extend the `layouts.app` template and added a title, description, and content section.
- Added a new script (`vert-scroll.js`) to be included in the `bottom_scripts` stack.
2023-12-08 17:46:45 +01:00
Rico van Zelst
b7b3fab027 refactor(emotes): update emotes index view
- Refactored the emotes index view to extend the 'layouts.app' blade template.
- Updated the title and description sections with dynamic content using Blade directives.
- Removed unnecessary meta tags related to favicon, OpenGraph, and Twitter.
- Added a new section for content and included the 'x-emotes.list_all' component.

This commit improves the structure and organization of the emotes index view by utilizing reusable components and dynamic content.
2023-12-08 17:41:33 +01:00
Rico van Zelst
561e53cee6 feat(icons): update index and show blade templates
- Updated the `index.blade.php` template to extend the `layouts.app` layout.
- Added a title and description section for SEO purposes in the `index.blade.php` template.
- Removed unnecessary HTML tags from the `index.blade.php` template.
- Updated the `show.blade.php` template to extend the `layouts.app` layout.
- Added a title and description section for SEO purposes in the `show.blade.php` template.
- Removed unnecessary HTML tags from the `show.blade.php` template.
2023-12-08 17:39:24 +01:00
Rico van Zelst
031883ad36 refactor(sales): update sales index view
- Refactored the sales index view to extend the 'layouts.app' blade template.
- Updated the title and description sections with appropriate content.
- Removed unnecessary meta tags related to icons, OpenGraph, and Twitter.
- Added a new section for content and included the 'x-sales.current_sales' component.

This commit improves the structure and content of the sales index page.
2023-12-08 17:34:55 +01:00
Rico van Zelst
3e9fbc05ff feat(layouts): update app.blade.php and add new sections
- Updated the meta description tag in `app.blade.php` to fix formatting.
- Added `@stack('top_scripts')` and `@stack('bottom_scripts')` sections in `app.blade.php`.
- Extended the `layouts.app` template in `skins/index.blade.php` and `skins/show.blade.php`.
- Added title and description sections in both files.
- Removed duplicate meta tags from both files.
- Added content section with appropriate components in both files.
- Added a new script file, 'vert-scroll.js', to be loaded at the bottom of the page in `skins/show.blade.php`.
2023-12-08 17:30:23 +01:00
Rico van Zelst
2294140fce refactor(views): Update home.blade.php and app.blade.php
- Refactored the home.blade.php file to extend the layouts.app.blade.php file.
- Moved the title and description sections to their respective yield sections in app.blade.php.
- Removed duplicate code from home.blade.php.

This commit improves code organization and removes duplication in the views.
2023-12-08 17:09:46 +01:00
Rico van Zelst
7833921632 chore(views): update livestreaming website name
The livestreaming website name "Trello" has been replaced with "Trovo" in the about/index.blade.php file. This change reflects the correct information regarding where League of Legends events are broadcasted.
2023-12-08 14:43:25 +01:00
Rico
51e95ecf84 About (#46)
* feat(controllers): add AboutController and FAQController

- Added new controllers for the About page and FAQ page.
- The AboutController handles requests related to the About page.
- The FAQController handles requests related to the FAQ page.

feat(components): add Dropdown component

- Created a new Dropdown component for displaying questions and answers in the FAQ page.
- The Dropdown component takes in a question and answer as props.

feat(views): add blade templates for Heimerdinger and League of Legends FAQs

- Added blade templates for displaying frequently asked questions about Heimerdinger and League of Legends.
- The Heimerdinger template includes specific questions and answers about Heimerdinger, along with relevant meta tags for SEO purposes.
- The League of Legends template includes general questions and answers about League of Legends, along with relevant meta tags.

* feat(faq): add Heimerdinger's backstory and naming

- Added a new FAQ dropdown for Heimerdinger's backstory, providing information about his origins, role in Piltover, and association with Ekko.
- Included another FAQ dropdown that explains the inspiration behind Heimerdinger's name, combining J. Robert Oppenheimer and Erwin Schrödinger.
- These additions enhance the user's understanding of Heimerdinger's character and background.

* Apply fixes from StyleCI

* refactor(components): simplify constructor syntax

- Refactored the constructor syntax in the `Dropdown` component to use a simplified format.
- Removed unnecessary line breaks and indentation for improved readability.

* refactor(faq): update Heimerdinger page layout

- Change the heading tag from `<h2>` to `<h1>` for better semantic structure.
- Update the paragraph tag from `<p>` to `<h2>` for consistency with other sections.
- Improve the readability and maintainability of the code.

* feat(controllers): add AboutController and FAQController

- Added new controllers for the About page and FAQ page.
- The AboutController handles requests related to the About page.
- The FAQController handles requests related to the FAQ page.

feat(components): add Dropdown component

- Created a new Dropdown component for displaying questions and answers in the FAQ page.
- The Dropdown component takes in a question and answer as props.

feat(views): add blade templates for Heimerdinger and League of Legends FAQs

- Added blade templates for displaying frequently asked questions about Heimerdinger and League of Legends.
- The Heimerdinger template includes specific questions and answers about Heimerdinger, along with relevant meta tags for SEO purposes.
- The League of Legends template includes general questions and answers about League of Legends, along with relevant meta tags.

* feat(faq): add Heimerdinger's backstory and naming

- Added a new FAQ dropdown for Heimerdinger's backstory, providing information about his origins, role in Piltover, and association with Ekko.
- Included another FAQ dropdown that explains the inspiration behind Heimerdinger's name, combining J. Robert Oppenheimer and Erwin Schrödinger.
- These additions enhance the user's understanding of Heimerdinger's character and background.

* Apply fixes from StyleCI

* refactor(components): simplify constructor syntax

- Refactored the constructor syntax in the `Dropdown` component to use a simplified format.
- Removed unnecessary line breaks and indentation for improved readability.

* refactor(faq): update Heimerdinger page layout

- Change the heading tag from `<h2>` to `<h1>` for better semantic structure.
- Update the paragraph tag from `<p>` to `<h2>` for consistency with other sections.
- Improve the readability and maintainability of the code.

* feat(about): add about page and route

- Added a new AboutController class with an index method to handle the /about route.
- Created a new blade template file, index.blade.php, for the about page.
- Added HTML markup and content for the about page.
- Updated web.php routes file to include the /about route.

* feat(about): add information about League of Legends,  Heimerdinger

- Added a section with detailed information about League of Legends, including its gameplay, competitive scene, and spin-off game modes.
- Included a section introducing Heimerdinger.lol as a fan-made website dedicated to providing information about League of Legends.
- Added a section describing the character Heimerdinger, his role in the game, and his appearance in the animated series Arcane.

* feat(navbar): update About link and fix routing issue

- Updated the href attribute of the About link in the navbar component to point to the correct route.
- Fixed a routing issue where the active class was not being applied correctly when on the About page.

---------

Co-authored-by: Rico <rico-vz@users.noreply.github.com>
2023-12-07 23:37:12 +01:00
Rico van Zelst
a659b4a855 feat(home): update features and navbar links
- Updated the link in the "features.blade.php" file to point to "/sale-rotation".
- Updated the link in the "navbar.blade.php" file to use the route "sales.index".

These changes improve navigation and ensure consistency across pages.
2023-12-05 15:46:44 +01:00
Rico van Zelst
39567c861c feat(sales): add discount percentage and link to champion/skin details
- Added the display of the discount percentage for each champion and skin on sale.
- Linked each champion and skin to their respective details page.
2023-12-05 15:41:40 +01:00
Rico van Zelst
48c74fb4d6 feat(sales): WIP: add SaleController, Current_sales component, and view
- Added a new file `SaleController.php` in the `app/Http/Controllers` directory to handle sales-related logic.
- Created a new file `Current_sales.php` in the `app/View/Components/Sales` directory to define the `Current_sales` component.
- Added a new file `current_sales.blade.php` in the `resources/views/components/sales` directory to display the current sales.
- Modified the `web.php` routes file to include a route for accessing the sales page.

These changes introduce functionality related to displaying and managing sales data on the website.
2023-12-05 13:35:59 +01:00
Rico van Zelst
2374a39c77 feat(monitoring): add pulse
- Added a new gate called `viewPulse` in the `AuthServiceProvider` class.
- The gate allows only admin users to view the Pulse feature.
2023-12-01 21:49:26 +01:00
Rico van Zelst
d08702888f fix: meta for assets & emotes 2023-11-28 09:33:28 +01:00
Rico van Zelst
0723d5aa72 fix: center icon show + add alt to img 2023-11-27 20:48:33 +01:00
Rico van Zelst
3e7592fa9c feat: summoner icon show 2023-11-27 19:11:09 +01:00