From 0d91ae412e43bd4b21b896026bd3a3525fb207a4 Mon Sep 17 00:00:00 2001 From: taemochi12 Date: Tue, 6 Aug 2024 23:58:49 +0530 Subject: [PATCH 1/9] Done with the changes in hamburger menu --- news.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/news.html b/news.html index feed0f6d..41fe2034 100644 --- a/news.html +++ b/news.html @@ -119,17 +119,22 @@ .header_container { flex-direction: column; align-items: start; - height: 24.8rem; - transition: 0.55s all ease-out; + /* background-color: transparent !important; */ /* padding-top: 5px; */ } .nav_link { - display: flex; - flex-direction: column; - position: relative; - bottom: 40px; - left: 10px; + display: none; + flex-direction: column; + position: fixed; + top: 64px; + left: 20px; + background-color: #022a2d; + width: 45% !important; + margin-top: 30px; + padding: 20px; + z-index: 10; + box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2); } /* .nav-link li{ margin-bottom: 5px; From 4a145a593897f17cb718bf2874ba7949472fd93b Mon Sep 17 00:00:00 2001 From: Anjaliavv51 <154777864+Anjaliavv51@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:09:05 +0530 Subject: [PATCH 2/9] Added page #1160 --- Css-Files/helpline.css | 170 ++++++++++++++++++++++ helpline.html | 316 +++++++++++++++++++++++++++++++++++++++++ js/helpline.js | 34 +++++ 3 files changed, 520 insertions(+) create mode 100644 Css-Files/helpline.css create mode 100644 helpline.html create mode 100644 js/helpline.js diff --git a/Css-Files/helpline.css b/Css-Files/helpline.css new file mode 100644 index 00000000..a6ee44aa --- /dev/null +++ b/Css-Files/helpline.css @@ -0,0 +1,170 @@ +/* Helpline Container Styles */ +.helpline-container { + background-color: #022a2d; + padding: 20px; + box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); + transition: all 0.3s ease-in-out; +} + +.helpline-container:hover { + transform: scale(1.02); + box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); +} + +.container { + display: flex; + flex-direction: column; + align-items: center; +} + +.helpline-text { + color: #3fbcc0; + font-size: 40px; + font-weight: bold; + animation: slideInLeft 0.5s ease-in-out; +} + +.helpline-content-wrapper { + display: flex; + flex-direction: column; + justify-content: space-between; + width: 100%; + margin-top: 20px; + box-shadow: 0 0 20px rgba(63, 188, 192, 0.3); + border-radius: 10px; +} + +.emergency-form-container, +.contact-details-container { + animation: fadeIn 0.5s ease-in-out; + padding: 20px; +} + +.helpline-form { + display: flex; + align-items: center; +} + +.helpline-form input { + margin-right: 10px; + padding: 5px 10px; + border: none; + border-radius: 5px; + background-color: #3fbcc051; + color: #959DA5; +} + +.helpline-form button { + background-color: #2F81CF; + color: #fff; + padding: 5px 10px; + border: none; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s ease-in-out; +} + +.helpline-form button:hover { + background-color: #1e6bba; +} + +.contact-details-container { + animation: fadeIn 0.5s ease-in-out 0.3s forwards; + opacity: 0; +} + +.helpline-contacts { + display: flex; + flex-direction: column; + align-items: flex-start; + color: rgba(0, 0, 0, 0.3); +} + +.contact-item { + display: flex; + align-items: center; + margin-bottom: 10px; +} + +.helpline-link { + color: #2F81CF; + font-size: 18px; + text-decoration: none; + transition: color 0.3s ease-in-out; +} + +.helpline-link:hover { + color: #3fbcc051; +} + +.helpline-link i { + margin-right: 5px; +} + +/* Popup Styles */ +.popup-container { + margin-top: 100px; + margin-bottom: 100px; + display: none; + justify-content: center; + align-items: center; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.5); + z-index: 999; +} + +.popup { + background-color: #fff; + padding: 30px; + border-radius: 10px; + box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); +} + +.popup h3 { + color: #3fbcc0; + margin-bottom: 20px; +} + +.popup p { + font-size: 18px; + color: #022a2d; + margin-bottom: 20px; +} + +.close-button { + background-color: #2F81CF; + color: #fff; + padding: 10px 20px; + border: none; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s ease-in-out; +} + +.close-button:hover { + background-color: #1e6bba; +} +@keyframes fadeIn { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} + +@keyframes slideInLeft { + 0% { + transform: translateX(-50px); + opacity: 0; + } + 100% { + transform: translateX(0); + opacity: 1; + } +} + diff --git a/helpline.html b/helpline.html new file mode 100644 index 00000000..4e55dfc4 --- /dev/null +++ b/helpline.html @@ -0,0 +1,316 @@ + + + + + + Health Checkup + + + + + + + + + + + + + RapiDoc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +

+ Need help? Contact our Helpline +

+ +
+ + +
+
+
+
Need help? Contact our Helpline
+
+
+

Emergency Form

+
+ + +
+
+
+

Contact Details

+ +
+
+
+
+ + + + + + + diff --git a/js/helpline.js b/js/helpline.js new file mode 100644 index 00000000..23f81f35 --- /dev/null +++ b/js/helpline.js @@ -0,0 +1,34 @@ +window.addEventListener('DOMContentLoaded', function() { + const helplineContainer = document.querySelector('.helpline-container'); + helplineContainer.style.opacity = '0'; + helplineContainer.style.animation = 'fadeIn 0.5s ease-in-out forwards'; + + const contactDetailsContainer = document.querySelector('.contact-details-container'); + contactDetailsContainer.style.opacity = '0'; + setTimeout(function() { + contactDetailsContainer.style.animation = 'fadeIn 0.5s ease-in-out forwards'; + }, 300); +}); + +const emergencyButton = document.querySelector('.emergency-button'); +const popupContainer = document.querySelector('.popup-container'); +const closeButton = document.querySelector('.close-button'); +const nameInput = document.querySelector('#nameInput'); +const nameDisplay = document.querySelector('#nameDisplay'); + +emergencyButton.addEventListener('click', (event) => { + event.preventDefault(); + const name = nameInput.value.trim(); + + if (name) { + popupContainer.style.visibility = 'visible'; + + nameDisplay.textContent = `Emergency request from ${name}`; + } else { + alert('Please enter your name.'); + } +}); + +closeButton.addEventListener('click', () => { + popupContainer.style.visibility = 'hidden'; +}); \ No newline at end of file From 49f1c9a693ec995ae53f7b55a725cd0259713d71 Mon Sep 17 00:00:00 2001 From: Anjaliavv51 <154777864+Anjaliavv51@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:19:38 +0530 Subject: [PATCH 3/9] Helpline link fixed in all pages #1160 --- Html-Files/Doctor Experience.html | 2 +- Html-Files/appointment.html | 2 +- Html-Files/blood.html | 2 +- Html-Files/bloodtest.html | 5 +++-- Html-Files/cardio.html | 2 +- Html-Files/news.html | 2 +- dex.html | 2 +- faq.html | 2 +- index.html | 2 +- medicine.html | 2 +- portal.html | 2 +- test.html | 2 +- 12 files changed, 14 insertions(+), 13 deletions(-) diff --git a/Html-Files/Doctor Experience.html b/Html-Files/Doctor Experience.html index 84b48b17..ce08847a 100644 --- a/Html-Files/Doctor Experience.html +++ b/Html-Files/Doctor Experience.html @@ -186,7 +186,7 @@

Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/Html-Files/appointment.html b/Html-Files/appointment.html index 77acf83b..3c003886 100644 --- a/Html-Files/appointment.html +++ b/Html-Files/appointment.html @@ -1108,7 +1108,7 @@

    Explore

  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/Html-Files/blood.html b/Html-Files/blood.html index c2289762..53e2acad 100644 --- a/Html-Files/blood.html +++ b/Html-Files/blood.html @@ -141,7 +141,7 @@

    Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/Html-Files/bloodtest.html b/Html-Files/bloodtest.html index dfcefa53..58cc7f38 100644 --- a/Html-Files/bloodtest.html +++ b/Html-Files/bloodtest.html @@ -1,4 +1,5 @@ - + + @@ -129,7 +130,7 @@

    Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/Html-Files/cardio.html b/Html-Files/cardio.html index 480a4c6f..42aa6ade 100644 --- a/Html-Files/cardio.html +++ b/Html-Files/cardio.html @@ -788,7 +788,7 @@

    Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/Html-Files/news.html b/Html-Files/news.html index f6f69874..ccac2d8e 100644 --- a/Html-Files/news.html +++ b/Html-Files/news.html @@ -265,7 +265,7 @@

    Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/dex.html b/dex.html index 4d3a6424..884d20f7 100644 --- a/dex.html +++ b/dex.html @@ -534,7 +534,7 @@

    Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/faq.html b/faq.html index 096fd3fa..76fcea8f 100644 --- a/faq.html +++ b/faq.html @@ -1346,7 +1346,7 @@

    Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/index.html b/index.html index c0ff4ff4..d520174a 100644 --- a/index.html +++ b/index.html @@ -695,7 +695,7 @@

    Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/medicine.html b/medicine.html index ec66f844..1b6035b7 100644 --- a/medicine.html +++ b/medicine.html @@ -381,7 +381,7 @@

    Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/portal.html b/portal.html index aee89b5d..83d01818 100644 --- a/portal.html +++ b/portal.html @@ -429,7 +429,7 @@

    Explore


  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • diff --git a/test.html b/test.html index f25b536f..3047f28a 100644 --- a/test.html +++ b/test.html @@ -494,7 +494,7 @@

    Explore

  • Appointment
  • Patient Portal
  • Login account
  • -
  • Helplines
  • +
  • Helplines
  • Location
  • From 596b428321eef9349844508d9d7bb0956ec2f58c Mon Sep 17 00:00:00 2001 From: Anjaliavv51 <154777864+Anjaliavv51@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:24:31 +0530 Subject: [PATCH 4/9] added #1160 --- .github/workflows/auto-label-pr.yml | 37 ++++++----------------------- 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/.github/workflows/auto-label-pr.yml b/.github/workflows/auto-label-pr.yml index c2297b74..9c27845c 100644 --- a/.github/workflows/auto-label-pr.yml +++ b/.github/workflows/auto-label-pr.yml @@ -1,38 +1,15 @@ -name: Auto Label and Issue Check +name: Add 'gssoc' label to PRs on: pull_request: - types: [opened, edited, synchronize] + types: [opened,edited,synchronize] jobs: - auto-label-and-check: + add-gssoc-label: runs-on: ubuntu-latest steps: - - name: Add GSSoC Label and Check Issue - uses: actions/github-script@v6 + - name: Add 'gssoc' label + uses: actions-ecosystem/action-add-labels@v1 with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const { owner, repo } = context.repo; - const pr = context.payload.pull_request; - - try { - await github.rest.issues.addLabels({ - issue_number: pr.number, - owner: owner, - repo: repo, - labels: ['gssoc'] - }); - console.log('Added gssoc label'); - } catch (error) { - console.error('Error adding gssoc label:', error); - } - - const body = pr.body || ''; - const issueMatch = body.match(/(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)\s*:?\s*#(\d+)/i); - - if (!issueMatch) { - core.setFailed('No related issue mentioned in the PR description. Please use the PR template and mention the related issue.'); - } else { - console.log('Related issue found:', issueMatch[1]); - } \ No newline at end of file + labels: gssoc + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 934f6bc7a80e0a3b5b28886186e96df315b8a456 Mon Sep 17 00:00:00 2001 From: Anjaliavv51 <154777864+Anjaliavv51@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:30:12 +0530 Subject: [PATCH 5/9] Added #1160 --- .github/workflows/auto-label-pr.yml | 37 +++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/.github/workflows/auto-label-pr.yml b/.github/workflows/auto-label-pr.yml index 9c27845c..c2297b74 100644 --- a/.github/workflows/auto-label-pr.yml +++ b/.github/workflows/auto-label-pr.yml @@ -1,15 +1,38 @@ -name: Add 'gssoc' label to PRs +name: Auto Label and Issue Check on: pull_request: - types: [opened,edited,synchronize] + types: [opened, edited, synchronize] jobs: - add-gssoc-label: + auto-label-and-check: runs-on: ubuntu-latest steps: - - name: Add 'gssoc' label - uses: actions-ecosystem/action-add-labels@v1 + - name: Add GSSoC Label and Check Issue + uses: actions/github-script@v6 with: - labels: gssoc - github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + const { owner, repo } = context.repo; + const pr = context.payload.pull_request; + + try { + await github.rest.issues.addLabels({ + issue_number: pr.number, + owner: owner, + repo: repo, + labels: ['gssoc'] + }); + console.log('Added gssoc label'); + } catch (error) { + console.error('Error adding gssoc label:', error); + } + + const body = pr.body || ''; + const issueMatch = body.match(/(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)\s*:?\s*#(\d+)/i); + + if (!issueMatch) { + core.setFailed('No related issue mentioned in the PR description. Please use the PR template and mention the related issue.'); + } else { + console.log('Related issue found:', issueMatch[1]); + } \ No newline at end of file From 72b2158d5b0deca5502580f3c7c29bbfe2e7a25e Mon Sep 17 00:00:00 2001 From: Anjaliavv51 <154777864+Anjaliavv51@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:32:12 +0530 Subject: [PATCH 6/9] Changed the title #1160 --- helpline.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpline.html b/helpline.html index 4e55dfc4..8e02cba4 100644 --- a/helpline.html +++ b/helpline.html @@ -3,7 +3,7 @@ - Health Checkup + RapiDoc From 8b82f82116f421285827ecea5c7766d29688cbc3 Mon Sep 17 00:00:00 2001 From: Anjaliavv51 <154777864+Anjaliavv51@users.noreply.github.com> Date: Fri, 9 Aug 2024 14:05:07 +0530 Subject: [PATCH 7/9] Navbar update #1160 --- helpline.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpline.html b/helpline.html index 8e02cba4..1f98867b 100644 --- a/helpline.html +++ b/helpline.html @@ -77,6 +77,8 @@
  • Doctor
  • Contact us
  • Rate Us
  • +
  • Sign in/Sign up
  • +
    From fe9b9ee76f05eba29f048065fb4267a5f7709e16 Mon Sep 17 00:00:00 2001 From: taemochi12 Date: Fri, 9 Aug 2024 17:44:49 +0530 Subject: [PATCH 8/9] Done with the left alignment of navbar container --- index.css | 4 +++- news.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.css b/index.css index b0021b54..3a29b65a 100644 --- a/index.css +++ b/index.css @@ -225,6 +225,7 @@ option { @media (max-width: 768px) { .nav_menu { flex-direction: column; + margin-left: 0; } .hamburger { @@ -240,7 +241,7 @@ option { flex-direction: column; position: fixed; top: 60px; - left: 20px; + left: 0px; background-color: #022a2d; width: 45% !important; margin-top: 30px; @@ -256,6 +257,7 @@ option { .nav_link li { margin: 10px 0; font-size: 18px; + } .nav_link a { diff --git a/news.html b/news.html index 1bb42b24..a169a7c3 100644 --- a/news.html +++ b/news.html @@ -129,7 +129,7 @@ flex-direction: column; position: fixed; top: 64px; - left: 20px; + left: 0px; background-color: #022a2d; width: 45% !important; margin-top: 30px; From 74a63301f4486dbbebb2ea3d7baa9bc5aa0e4531 Mon Sep 17 00:00:00 2001 From: Aditya Bhaumik <92214013+aditya-bhaumik@users.noreply.github.com> Date: Fri, 9 Aug 2024 21:02:52 +0530 Subject: [PATCH 9/9] Update index.html --- index.html | 47 ++--------------------------------------------- 1 file changed, 2 insertions(+), 45 deletions(-) diff --git a/index.html b/index.html index d520174a..3ec87076 100644 --- a/index.html +++ b/index.html @@ -86,7 +86,7 @@
  • About
  • News
  • Service
  • -
  • Patient Portal
  • +
  • Patient Portal
  • Appointment
  • Doctor
  • Contact us
  • @@ -341,50 +341,7 @@

    Health Post

    - - -
    -
    -
    -

    Patient Portal

    -

    Access your medical records, lab results, and prescription history securely.

    -
    -
    - - - - -
    -
    -
    - +