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 @@
-
+
{{ category.emoji }}
{{ category.name }}
-
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'
diff --git a/src/components/AppHeader/ToggleDarkMode.vue b/src/components/AppHeader/ToggleDarkMode.vue
index cf697d6..2f6d798 100644
--- a/src/components/AppHeader/ToggleDarkMode.vue
+++ b/src/components/AppHeader/ToggleDarkMode.vue
@@ -1,20 +1,25 @@
-
diff --git a/src/views/_HomeView.dark.scss b/src/views/_HomeView.dark.scss
index f08d134..c12d90a 100644
--- a/src/views/_HomeView.dark.scss
+++ b/src/views/_HomeView.dark.scss
@@ -1,3 +1,3 @@
.HomeView {
- background-color: var(--color-dark);
+ @apply bg-[var(--color-dark)];
}
diff --git a/src/views/_HomeView.scss b/src/views/_HomeView.scss
new file mode 100644
index 0000000..a45596f
--- /dev/null
+++ b/src/views/_HomeView.scss
@@ -0,0 +1,16 @@
+.HomeView {
+ @apply flex h-screen;
+ background-color: var(--color-ghostwhite);
+
+ main {
+ @apply w-2/4 p-5 max-h-screen overflow-y-scroll;
+ }
+
+ &__header {
+ @apply pt-4 pb-4 flex items-center justify-between;
+ }
+
+ &__content {
+ @apply grid grid-cols-2 gap-4;
+ }
+}