diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 4a4c600..bd393ef 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -7,6 +7,10 @@ "": { "name": "curriculum-vitae", "version": "0.0.1", + "dependencies": { + "@jamescoyle/svelte-icon": "^0.1.1", + "@mdi/js": "^7.3.67" + }, "devDependencies": { "@sveltejs/adapter-auto": "^2.0.0", "@sveltejs/kit": "^1.20.4", @@ -389,6 +393,11 @@ "node": ">=14" } }, + "node_modules/@jamescoyle/svelte-icon": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@jamescoyle/svelte-icon/-/svelte-icon-0.1.1.tgz", + "integrity": "sha512-7zDOSm3UQ4Onk2JWI4Zp8vjfK1pA8LQDBIBHRCuKB36kk+ZQY2/oXGIneVOyPJawVjRLkKK5Xv8hY0I2iyaiNQ==" + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", @@ -437,6 +446,11 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@mdi/js": { + "version": "7.3.67", + "resolved": "https://registry.npmjs.org/@mdi/js/-/js-7.3.67.tgz", + "integrity": "sha512-MnRjknFqpTC6FifhGHjZ0+QYq2bAkZFQqIj8JA2AdPZbBxUvr8QSgB2yPAJ8/ob/XkR41xlg5majDR3c1JP1hw==" + }, "node_modules/@polka/url": { "version": "1.0.0-next.23", "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.23.tgz", diff --git a/frontend/package.json b/frontend/package.json index df717d5..504ab6c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -10,9 +10,13 @@ "devDependencies": { "@sveltejs/adapter-auto": "^2.0.0", "@sveltejs/kit": "^1.20.4", + "autoprefixer": "10.4.16", "svelte": "^4.0.5", - "vite": "^4.4.2", - "autoprefixer": "10.4.16" + "vite": "^4.4.2" }, - "type": "module" -} \ No newline at end of file + "type": "module", + "dependencies": { + "@jamescoyle/svelte-icon": "^0.1.1", + "@mdi/js": "^7.3.67" + } +} diff --git a/frontend/src/app.postcss b/frontend/src/app.postcss deleted file mode 100644 index 510ff1d..0000000 --- a/frontend/src/app.postcss +++ /dev/null @@ -1,4 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; -@tailwind variants; diff --git a/frontend/src/lib/components/sidebar-component.svelte b/frontend/src/lib/components/sidebar-component.svelte new file mode 100644 index 0000000..91f48ca --- /dev/null +++ b/frontend/src/lib/components/sidebar-component.svelte @@ -0,0 +1,20 @@ + + +
+
+ +
+

{title}

+ {#each descriptionArray as text} +

{text}

+ {/each} +
\ No newline at end of file diff --git a/frontend/src/lib/css/base.css b/frontend/src/lib/css/base.css new file mode 100644 index 0000000..5ab5fe2 --- /dev/null +++ b/frontend/src/lib/css/base.css @@ -0,0 +1,9 @@ +@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;700&family=Urbanist:wght@500;600;900&display=swap'); + +:root { + --color-title: #071952; + --color-subtitle: #0C356A; + --color-special: #0174BE; + --color-text: #261C2C; + --color-background: #F8F1F1; +} \ No newline at end of file diff --git a/frontend/src/lib/css/cv.css b/frontend/src/lib/css/cv.css new file mode 100644 index 0000000..871fed0 --- /dev/null +++ b/frontend/src/lib/css/cv.css @@ -0,0 +1,56 @@ +body, html { + height: 100%; + background: var(--color-background); + margin: 0; + padding: 0; +} + +.container-cv { + display: flex; + flex-direction: row; +} + +.sidebar { + width: 100%; + height: 100%; + flex-basis: 25rem; + background-color: var(--color-special); + box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px; + margin-right: 2rem; +} + +.profile-picture-container { + display: flex; + justify-content: center; + align-items: center; +} + +.profile-picture { + width: 10rem; + height: auto; + margin: 2rem; + box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px; +} + +.main { + width: 100%; +} + +.name { + text-align: center; + text-shadow: -15px 5px 20px #00000030; +} + +h1 { + color: var(--color-title); + font-family: 'Urbanist', sans-serif; + font-weight: 600; + font-size: 4rem; +} + +h2 { + color: var(--color-subtitle); + font-family: 'Urbanist', sans-serif; + font-weight: 500; + font-size: 2rem; +} \ No newline at end of file diff --git a/frontend/src/lib/css/sidebar-component.css b/frontend/src/lib/css/sidebar-component.css new file mode 100644 index 0000000..06d4ef1 --- /dev/null +++ b/frontend/src/lib/css/sidebar-component.css @@ -0,0 +1,34 @@ +.sc-container { + width: 100%; + height: auto; + margin-top: 1rem; + margin-bottom: 4rem; +} + +.sc-icon { + display: flex; + justify-content: center; + align-items: center; + margin-bottom: 0.5rem; + color: var(--color-background); +} + +.text { + font-family: 'Gabarito', sans-serif; + color: var(--color-background); + text-align: center; + margin: 0; + padding: 0; +} + +.sc-title { + font-weight: 600; + font-size: 2.5rem; + margin-bottom: 0.5rem; +} + +.sc-description { + font-weight: 500; + font-size: 1.5rem; + margin-bottom: 0.25rem; +} \ No newline at end of file diff --git a/frontend/src/lib/cv.css b/frontend/src/lib/cv.css deleted file mode 100644 index 40927e9..0000000 --- a/frontend/src/lib/cv.css +++ /dev/null @@ -1,6 +0,0 @@ -body, html { - height: 100%; - background: white; - margin: 0; - padding: 0; -} \ No newline at end of file diff --git a/frontend/src/lib/img/cvnQU1-W_nowhite_carre.jpg b/frontend/src/lib/img/cvnQU1-W_nowhite_carre.jpg new file mode 100755 index 0000000..0a24f37 Binary files /dev/null and b/frontend/src/lib/img/cvnQU1-W_nowhite_carre.jpg differ diff --git a/frontend/src/lib/js/date.js b/frontend/src/lib/js/date.js new file mode 100644 index 0000000..df78b3d --- /dev/null +++ b/frontend/src/lib/js/date.js @@ -0,0 +1,6 @@ +export function formatDate(date) { + const options = { day: 'numeric', month: 'long', year: 'numeric' }; + const cool_date = new Date(date); + const formattedDate = cool_date.toLocaleDateString('fr-FR', options); + return formattedDate; +} \ No newline at end of file diff --git a/frontend/src/lib/processdata.js b/frontend/src/lib/js/processdata.js similarity index 100% rename from frontend/src/lib/processdata.js rename to frontend/src/lib/js/processdata.js diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte deleted file mode 100644 index da212a0..0000000 --- a/frontend/src/routes/+layout.svelte +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index 16a722e..1f38191 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -1,14 +1,36 @@ -
- {#if data.status == 0} -

Le super CV de {cv.info.full_name}

- {:else} -

Oops, could not load database :/

- {/if} -
+{#if data.status == 0} +
+ +
+

{cv.info.full_name}

+

Apprentice Engineer Automatic/Electronic

+
+
+{:else} +

Oops, could not load database :/

+{/if}