diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 9dc01b6..dca1416 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -7,6 +7,14 @@ jobs: build_and_preview: if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' runs-on: ubuntu-latest + environment: 'development' + env: + VITE_APP_TITLE: ${{ vars.VITE_APP_TITLE }} + VITE_APP_DESCRIPTION: ${{ vars.VITE_APP_DESCRIPTION }} + VITE_APP_WEBSITE: ${{ vars.VITE_APP_WEBSITE }} + VITE_APP_IMG: ${{ vars.VITE_APP_IMG }} + VITE_APP_KEYWORDS: ${{ vars.VITE_APP_KEYWORDS }} + VITE_APP_LANG: ${{ vars.VITE_APP_LANG }} steps: - uses: actions/checkout@v2 - run: npm ci && npm run build diff --git a/package.json b/package.json index f5fcdcd..1067109 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "format": "prettier --write src/", - "commit": "npm run type-check && npm run lint && npm run format && cz" + "commit": "npm run type-check && npm run lint && npm run format && git add . && cz" }, "dependencies": { "@vueuse/core": "^10.5.0", diff --git a/postcss.config.js b/postcss.config.js index 33ad091..3b33f36 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line no-undef module.exports = { plugins: { tailwindcss: {}, diff --git a/src/assets/styles/color-scheme.scss b/src/assets/styles/color-scheme.scss index b9de2ec..f2a2937 100644 --- a/src/assets/styles/color-scheme.scss +++ b/src/assets/styles/color-scheme.scss @@ -1,5 +1,5 @@ -body[color-scheme="dark"] { - @import "@/views/HomeView.dark"; +body[color-scheme='dark'] { + @import '@/views/HomeView.dark'; @import '@/components/AppCategory/_AppCategory.dark'; @import '@/components/AppStatementCard/_AppStatementCard.dark'; } diff --git a/src/assets/styles/main.scss b/src/assets/styles/main.scss index 6ad41ce..273ea72 100644 --- a/src/assets/styles/main.scss +++ b/src/assets/styles/main.scss @@ -17,4 +17,3 @@ body { color: var(--color-ghostwhite); } } - diff --git a/src/assets/styles/variables.scss b/src/assets/styles/variables.scss index 086776d..987b387 100644 --- a/src/assets/styles/variables.scss +++ b/src/assets/styles/variables.scss @@ -1,6 +1,7 @@ :root { - --color-dark: #2E2E41; - --color-dark-light: #272C3A; + --color-dark: #2e2e41; + --color-dark-light: #272c3a; --color-dark-text: #242424; + --color-dark-icon: #4b5563; --color-ghostwhite: ghostwhite; } diff --git a/src/components/AppCategory/AppCategory.vue b/src/components/AppCategory/AppCategory.vue index fbd7f54..847035f 100644 --- a/src/components/AppCategory/AppCategory.vue +++ b/src/components/AppCategory/AppCategory.vue @@ -1,27 +1,21 @@ - diff --git a/src/components/AppFilter/_AppFilter.scss b/src/components/AppFilter/_AppFilter.scss new file mode 100644 index 0000000..5c522ca --- /dev/null +++ b/src/components/AppFilter/_AppFilter.scss @@ -0,0 +1,25 @@ +.AppFilter { + font-family: 'Fira Mono', sans-serif; + @apply rounded-lg w-2/5 cursor-pointer relative bg-transparent border text-sm; + + input { + @apply w-full h-full p-3 rounded-lg relative; + &:focus { + @apply outline-amber-500; + } + } + + &__icon { + @apply absolute top-0 bottom-0 right-0 m-auto text-[var(--color-dark-icon)] w-10 flex justify-center items-center rounded-r-lg; + } + + &__dropdown { + @apply absolute top-10 z-10 bg-white border p-3 left-0 max-h-80 shadow-2xl rounded-lg overflow-y-scroll; + li { + @apply p-2 transition-all flex; + &:hover { + @apply bg-amber-100 rounded-lg; + } + } + } +} diff --git a/src/components/AppHeader/HeaderActions.vue b/src/components/AppHeader/HeaderActions.vue index 19e1e5f..d9cf4a4 100644 --- a/src/components/AppHeader/HeaderActions.vue +++ b/src/components/AppHeader/HeaderActions.vue @@ -1,6 +1,6 @@ @@ -8,7 +8,13 @@ const GITHUB_URL = 'https://github.com/MartinsOnuoha/what-should-i-design'