diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..d0026be --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +VITE_API_URL = "http://localhost:3000" \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..9fa3de8 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_API_URL = "https://api-deputes.alexcreates.fr" \ No newline at end of file diff --git a/index.html b/index.html index 11603f8..b42a7f9 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,44 @@ - - - - - Vite App - - -
- - + + + + Trouver mon député + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + diff --git a/package-lock.json b/package-lock.json index edaf08c..f3c6a6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,11 @@ "name": "rep-lookup-fr", "version": "0.1.0", "dependencies": { + "@fortawesome/fontawesome-svg-core": "^6.4.0", + "@fortawesome/free-brands-svg-icons": "^6.4.0", + "@fortawesome/free-regular-svg-icons": "^6.4.0", + "@fortawesome/free-solid-svg-icons": "^6.4.0", + "@fortawesome/vue-fontawesome": "^3.0.3", "@tailwindcss/typography": "^0.5.4", "@vueuse/core": "^10.1.0", "pinia": "^2.0.35", @@ -453,6 +458,72 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@fortawesome/fontawesome-common-types": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.4.0.tgz", + "integrity": "sha512-HNii132xfomg5QVZw0HwXXpN22s7VBHQBv9CeOu9tfJnhsWQNd2lmTNi8CSrnw5B+5YOmzu1UoPAyxaXsJ6RgQ==", + "hasInstallScript": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/fontawesome-svg-core": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.4.0.tgz", + "integrity": "sha512-Bertv8xOiVELz5raB2FlXDPKt+m94MQ3JgDfsVbrqNpLU9+UE2E18GKjLKw+d3XbeYPqg1pzyQKGsrzbw+pPaw==", + "hasInstallScript": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.4.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-brands-svg-icons": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.4.0.tgz", + "integrity": "sha512-qvxTCo0FQ5k2N+VCXb/PZQ+QMhqRVM4OORiO6MXdG6bKolIojGU/srQ1ptvKk0JTbRgaJOfL2qMqGvBEZG7Z6g==", + "hasInstallScript": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.4.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-regular-svg-icons": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.4.0.tgz", + "integrity": "sha512-ZfycI7D0KWPZtf7wtMFnQxs8qjBXArRzczABuMQqecA/nXohquJ5J/RCR77PmY5qGWkxAZDxpnUFVXKwtY/jPw==", + "hasInstallScript": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.4.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-solid-svg-icons": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.4.0.tgz", + "integrity": "sha512-kutPeRGWm8V5dltFP1zGjQOEAzaLZj4StdQhWVZnfGFCvAPVvHh8qk5bRrU4KXnRRRNni5tKQI9PBAdI6MP8nQ==", + "hasInstallScript": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.4.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/vue-fontawesome": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@fortawesome/vue-fontawesome/-/vue-fontawesome-3.0.3.tgz", + "integrity": "sha512-KCPHi9QemVXGMrfuwf3nNnNo129resAIQWut9QTAMXmXqL2ErABC6ohd2yY5Ipq0CLWNbKHk8TMdTXL/Zf3ZhA==", + "peerDependencies": { + "@fortawesome/fontawesome-svg-core": "~1 || ~6", + "vue": ">= 3.0.0 < 4" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", diff --git a/package.json b/package.json index ba33e30..cae48c7 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,11 @@ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" }, "dependencies": { + "@fortawesome/fontawesome-svg-core": "^6.4.0", + "@fortawesome/free-brands-svg-icons": "^6.4.0", + "@fortawesome/free-regular-svg-icons": "^6.4.0", + "@fortawesome/free-solid-svg-icons": "^6.4.0", + "@fortawesome/vue-fontawesome": "^3.0.3", "@tailwindcss/typography": "^0.5.4", "@vueuse/core": "^10.1.0", "pinia": "^2.0.35", diff --git a/public/android-chrome-96x96.png b/public/android-chrome-96x96.png new file mode 100644 index 0000000..f5edc43 Binary files /dev/null and b/public/android-chrome-96x96.png differ diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..ea67f47 Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/browserconfig.xml b/public/browserconfig.xml new file mode 100644 index 0000000..50f376d --- /dev/null +++ b/public/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #da532c + + + diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png new file mode 100644 index 0000000..c44f798 Binary files /dev/null and b/public/favicon-16x16.png differ diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png new file mode 100644 index 0000000..2219ec9 Binary files /dev/null and b/public/favicon-32x32.png differ diff --git a/public/favicon.ico b/public/favicon.ico index df36fcf..732cca5 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/mstile-150x150.png b/public/mstile-150x150.png new file mode 100644 index 0000000..85e62e9 Binary files /dev/null and b/public/mstile-150x150.png differ diff --git a/public/regions/auvergne-rhône-alpes.svg b/public/regions/auvergne-rhône-alpes.svg new file mode 100644 index 0000000..1050758 --- /dev/null +++ b/public/regions/auvergne-rhône-alpes.svg @@ -0,0 +1,56 @@ + + + + + + diff --git a/public/regions/bourgogne-franche-comte.svg b/public/regions/bourgogne-franche-comte.svg new file mode 100644 index 0000000..693bfba --- /dev/null +++ b/public/regions/bourgogne-franche-comte.svg @@ -0,0 +1,39 @@ + + + + + + diff --git a/public/regions/bretagne.svg b/public/regions/bretagne.svg new file mode 100644 index 0000000..f0f0f1d --- /dev/null +++ b/public/regions/bretagne.svg @@ -0,0 +1,38 @@ + + + + + + diff --git a/public/regions/centre-val-de-loire.svg b/public/regions/centre-val-de-loire.svg new file mode 100644 index 0000000..8f5b085 --- /dev/null +++ b/public/regions/centre-val-de-loire.svg @@ -0,0 +1,34 @@ + + + + + + diff --git a/public/regions/corse.svg b/public/regions/corse.svg new file mode 100644 index 0000000..622ac04 --- /dev/null +++ b/public/regions/corse.svg @@ -0,0 +1,23 @@ + + + + + + diff --git a/public/regions/grand-est.svg b/public/regions/grand-est.svg new file mode 100644 index 0000000..9cfb9f7 --- /dev/null +++ b/public/regions/grand-est.svg @@ -0,0 +1,42 @@ + + + + + + diff --git a/public/regions/guadeloupe.svg b/public/regions/guadeloupe.svg new file mode 100644 index 0000000..e4627d6 --- /dev/null +++ b/public/regions/guadeloupe.svg @@ -0,0 +1,15 @@ + + + + + + diff --git a/public/regions/guyane.svg b/public/regions/guyane.svg new file mode 100644 index 0000000..bc804eb --- /dev/null +++ b/public/regions/guyane.svg @@ -0,0 +1,18 @@ + + + + + + diff --git a/public/regions/hauts-de-france.svg b/public/regions/hauts-de-france.svg new file mode 100644 index 0000000..74b8981 --- /dev/null +++ b/public/regions/hauts-de-france.svg @@ -0,0 +1,29 @@ + + + + + + diff --git a/public/regions/ile-de-france.svg b/public/regions/ile-de-france.svg new file mode 100644 index 0000000..30bbfde --- /dev/null +++ b/public/regions/ile-de-france.svg @@ -0,0 +1,24 @@ + + + + + + diff --git a/public/regions/martinique.svg b/public/regions/martinique.svg new file mode 100644 index 0000000..3a5f377 --- /dev/null +++ b/public/regions/martinique.svg @@ -0,0 +1,18 @@ + + + + + + diff --git a/public/regions/mayotte.svg b/public/regions/mayotte.svg new file mode 100644 index 0000000..1895157 --- /dev/null +++ b/public/regions/mayotte.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/public/regions/normandie.svg b/public/regions/normandie.svg new file mode 100644 index 0000000..966787d --- /dev/null +++ b/public/regions/normandie.svg @@ -0,0 +1,31 @@ + + + + + + diff --git a/public/regions/nouvelle-aquitaine.svg b/public/regions/nouvelle-aquitaine.svg new file mode 100644 index 0000000..d18c669 --- /dev/null +++ b/public/regions/nouvelle-aquitaine.svg @@ -0,0 +1,55 @@ + + + + + + diff --git a/public/regions/occitanie.svg b/public/regions/occitanie.svg new file mode 100644 index 0000000..27e2445 --- /dev/null +++ b/public/regions/occitanie.svg @@ -0,0 +1,45 @@ + + + + + + diff --git a/public/regions/pays-de-la-loire.svg b/public/regions/pays-de-la-loire.svg new file mode 100644 index 0000000..b0a3fd1 --- /dev/null +++ b/public/regions/pays-de-la-loire.svg @@ -0,0 +1,32 @@ + + + + + + diff --git a/public/regions/provence-alpes-côte-d'azur.svg b/public/regions/provence-alpes-côte-d'azur.svg new file mode 100644 index 0000000..5f17bf8 --- /dev/null +++ b/public/regions/provence-alpes-côte-d'azur.svg @@ -0,0 +1,36 @@ + + + + + + diff --git a/public/regions/réunion.svg b/public/regions/réunion.svg new file mode 100644 index 0000000..2cef1f7 --- /dev/null +++ b/public/regions/réunion.svg @@ -0,0 +1,14 @@ + + + + + + diff --git a/public/safari-pinned-tab.svg b/public/safari-pinned-tab.svg new file mode 100644 index 0000000..c929123 --- /dev/null +++ b/public/safari-pinned-tab.svg @@ -0,0 +1,17 @@ + + + + +Created by potrace 1.14, written by Peter Selinger 2001-2017 + + + + + + diff --git a/public/site.webmanifest b/public/site.webmanifest new file mode 100644 index 0000000..4d786a1 --- /dev/null +++ b/public/site.webmanifest @@ -0,0 +1,13 @@ +{ + "name": "Mon d\u00e9put\u00e9", + "short_name": "Mon d\u00e9put\u00e9", + "icons": [ + { + "src": "/public/android-chrome-96x96.png", + "sizes": "96x96", + "type": "image/png" + } + ], + "theme_color": "#020617", + "background_color": "#020617" +} diff --git a/src/App.vue b/src/App.vue index e23bcaa..6664008 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,6 @@ - -