ascentiaci / ascentiaci.ca

Ascentia Career Institute Main Marketing Site
1 stars 1 forks source link

Replace HCA page with 'Coming Soon' page to bring into compliance #116

Closed fireball8931 closed 2 months ago

fireball8931 commented 2 months ago

The BC Care registry has requested that until we have revised our information for the program to bring it into compliance, we should redirect to a 'Coming Soon' page

codeautopilot[bot] commented 2 months ago

Potential solution

To comply with the BC Care registry's request, we need to redirect users from the Health Care Assistant page to a 'Coming Soon' page. This can be achieved by updating the src/health-care-assistant.html file to include a meta refresh tag that redirects users to the new 'Coming Soon' page. Additionally, we need to create the 'Coming Soon' page itself.

How to implement

  1. Update src/health-care-assistant.html to Redirect to 'Coming Soon' Page:

    • Add a meta refresh tag to automatically redirect users.
    • Provide a fallback link in case the meta refresh does not work.
  2. Create src/coming-soon.html:

    • Create a new HTML file with a message indicating that the content is coming soon.
    • Include basic styling to make the page visually appealing.

Implementation details and code snippets

File: src/health-care-assistant.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="refresh" content="0; url='/coming-soon.html'" />
  <title>Health Care Assistant - Redirect</title>
</head>
<body>
  <p>If you are not redirected automatically, follow this <a href="/coming-soon.html">link to the Coming Soon page</a>.</p>
</body>
</html>

File: src/coming-soon.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Coming Soon</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            padding: 50px;
            background-color: #f4f4f4;
        }
        .container {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            display: inline-block;
        }
        h1 {
            color: #333;
        }
        p {
            color: #666;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Coming Soon</h1>
        <p>We are currently updating our information to bring it into compliance. Please check back soon for the latest updates.</p>
    </div>
</body>
</html>

This solution ensures that users visiting the Health Care Assistant page are redirected to the 'Coming Soon' page, thus complying with the request from the BC Care registry.

Click here to create a Pull Request with the proposed solution

Files used for this task:

Changes on src/health-care-assistant.html To address the task of updating the `src/health-care-assistant.html` file to include a redirect to the new 'Coming Soon' page, you can follow these steps: 1. **Add a Meta Refresh Tag**: This will automatically redirect users to the 'Coming Soon' page after a short delay. 2. **Remove or Comment Out Existing Content**: To ensure that the old content is not displayed, you can either remove it or comment it out. Here's the updated content for the `src/health-care-assistant.html` file: ```html Health Care Assistant - Redirect

If you are not redirected automatically, follow this link to the Coming Soon page.

``` ### Explanation: - **Meta Refresh Tag**: The `` tag will redirect the user to the 'Coming Soon' page immediately. The `content="0"` part specifies a delay of 0 seconds. - **Fallback Link**: The paragraph `

If you are not redirected automatically, follow this link to the Coming Soon page.

` provides a fallback link in case the meta refresh does not work for some reason. This change ensures that users visiting the Health Care Assistant page are redirected to the 'Coming Soon' page, complying with the request from the BC Care registry.
Changes on src/coming-soon.html To address the task of creating a new 'Coming Soon' page, you need to create a new HTML file named `coming-soon.html` with a message indicating that the content is coming soon. Here is a concrete proposal for the content of this file: ### src/coming-soon.html ```html Coming Soon

Coming Soon

We are currently updating our information to bring it into compliance. Please check back soon for the latest updates.

``` This file includes: - Basic HTML structure with a `DOCTYPE` declaration. - Meta tags for character set and viewport settings. - A title for the page. - Inline CSS for basic styling to make the page visually appealing. - A container with a heading and a paragraph to inform users that the content is coming soon. This new file should be saved as `src/coming-soon.html`. The other agent will handle the redirection from `health-care-assistant.html` to this new 'Coming Soon' page.