Regarding the logic, this theme serves as a form where the client receives login details for their account, logs in, and must fill out forms (tasks) by a set date. On the other hand, the company collects this data.
It is necessary to create a custom theme for WordPress using the provided HTML, CSS, and JS files. The theme should consist of three main pages and include additional functionalities for working with users and custom content types.
👉Main requirements:
Theme structure:
The theme should include three main HTML pages:
login.html this page should be used as the homepage and provide users with the ability to log in. After a successful login, the user is directed to other pages.
overview.html this page should be accessible only to authorized users. It should display information about assigned events (Events) and statistics on completed and uncompleted tasks (Tasks).
tasks.html also accessible only after authorization. On this page, users should be able to fill out and submit forms, which will then be displayed as "completed".
Custom post types:
Create a custom post type Events. Each Event should have editable fields: title, text, and image. An event can be associated with multiple users with the role of event_user, but each user can be associated with only one event.
Custom user role:
Create a custom role "Event User". Users of this role should not have access to the WordPress admin panel, only to the frontend after a successful login. The "Event User" role provides access only to the pages overview.html and tasks.html.
Functionality for the administrator:
The administrator has the ability to view data submitted by users (role: "Event User") through forms on the tasks.html page. In the WordPress admin panel, the administrator can see all the information that users filled out in the forms.
👉Functionality on the pages:
overview.html on this page there should be a section displaying the assigned event for the user (if any). There should also be a section with a list of tasks (Tasks), where the status of each task will be displayed: completed or not completed.
tasks.html users have the ability to fill out and submit forms for task completion. After submission, the task should be marked as "completed", and information about this will be displayed on the page.
Forms on the Tasks page should retain data after submission so that the administrator can view them in the admin panel.
👉 Additionally:
Use WordPress standards for theme and plugin development. Adhere to security principles such as input validation and escaping. Implement the custom post type through theme functions. Ensure proper display of pages on all devices.