diff --git a/.github/pr-title-checker.json b/.github/pr-title-checker.json new file mode 100644 index 00000000..2051b994 --- /dev/null +++ b/.github/pr-title-checker.json @@ -0,0 +1,25 @@ +{ + "LABEL": { + "name": "title needs formatting", + "color": "F9D0C4" + }, + "CHECKS": { + "prefixes": [ + "build: ", + "chore: ", + "docs: ", + "feat: ", + "fix: ", + "perf: ", + "refactor: ", + "revert: ", + "style: ", + "test: " + ] + }, + "MESSAGES": { + "success": "Everything is great. Status: 200", + "failure": "PR title does not conform to the required format. Please use one of the specified prefixes(feat, build, chore, docs, fix, perf, refactor, revert, style, test) followed by a colon and a space. Status: 400", + "notice": "" + } + } \ No newline at end of file diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml new file mode 100644 index 00000000..3dad82d1 --- /dev/null +++ b/.github/workflows/pr-title-checker.yml @@ -0,0 +1,19 @@ +name: 'PR Title Checker' +on: + pull_request_target: + types: + - opened + - edited + - synchronize + - labeled + - unlabeled + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: thehanimo/pr-title-checker@v1.3.7 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + pass_on_octokit_error: false + configuration_path: '.github/pr-title-checker.json' diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..6f3a2913 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/Theme.js b/Theme.js index 50a4cefc..c6c851d6 100644 --- a/Theme.js +++ b/Theme.js @@ -22,8 +22,12 @@ themeToggle.addEventListener("change", () => { if (document.body.classList.contains("dark-theme")) { themeLabel.style.background = "#fff"; // Adjust color for the checked state as needed console.log("Dark theme"); + document.body.classList.remove("dark-theme"); + document.body.classList.add("light-theme"); } else { themeLabel.style.background = "var(--primary-color)"; // Adjust color for the unchecked state as needed console.log("Light theme"); + document.body.classList.remove("light-theme"); + document.body.classList.add("dark-theme"); } }); diff --git a/dedicated-destinations/Dubai/start.html b/dedicated-destinations/Dubai/start.html index 2809fa22..7ea92607 100644 --- a/dedicated-destinations/Dubai/start.html +++ b/dedicated-destinations/Dubai/start.html @@ -30,7 +30,7 @@ --->