diff --git a/package-lock.json b/package-lock.json index 5c97a75..04bdffe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,8 @@ "name": "svelte-app", "version": "1.0.0", "dependencies": { - "sirv-cli": "^2.0.0" + "sirv-cli": "^2.0.0", + "svelte-icons": "^2.1.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^17.0.0", @@ -1205,6 +1206,11 @@ "node": ">= 8" } }, + "node_modules/svelte-icons": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/svelte-icons/-/svelte-icons-2.1.0.tgz", + "integrity": "sha512-rHPQjweEc9fGSnvM0/4gA3pDHwyZyYsC5KhttCZRhSMJfLttJST5Uq0B16Czhw+HQ+HbSOk8kLigMlPs7gZtfg==" + }, "node_modules/svelte-preprocess": { "version": "4.10.4", "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.4.tgz", @@ -2245,6 +2251,11 @@ "integrity": "sha512-qKJzw6DpA33CIa+C/rGp4AUdSfii0DOTCzj/2YpSKKayw5WGSS624Et9L1nU1k2OVRS9vaENQXp2CVZNU+xvIg==", "dev": true }, + "svelte-icons": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/svelte-icons/-/svelte-icons-2.1.0.tgz", + "integrity": "sha512-rHPQjweEc9fGSnvM0/4gA3pDHwyZyYsC5KhttCZRhSMJfLttJST5Uq0B16Czhw+HQ+HbSOk8kLigMlPs7gZtfg==" + }, "svelte-preprocess": { "version": "4.10.4", "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.4.tgz", diff --git a/package.json b/package.json index 53d98e2..c99c51e 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "svelte-preprocess": "^4.10.4" }, "dependencies": { - "sirv-cli": "^2.0.0" + "sirv-cli": "^2.0.0", + "svelte-icons": "^2.1.0" } } diff --git a/public/global.css b/public/global.css index 81b6cf2..d4447af 100644 --- a/public/global.css +++ b/public/global.css @@ -18,7 +18,7 @@ body { } a { - color: rgb(0,100,200); + color: #d23e6e; text-decoration: none; } @@ -27,7 +27,7 @@ a:hover { } a:visited { - color: rgb(0,80,160); + color: #d23e6e; } label { diff --git a/src/App.svelte b/src/App.svelte index 31b637a..507ee7c 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -2,15 +2,51 @@ import { currentChartID } from './stores'; import ChartEdit from './ChartEdit.svelte'; import ChartCreation from './ChartCreation.svelte'; + import IoMdHeart from 'svelte-icons/io/IoMdHeart.svelte'; + import { H1 } from 'attractions'; + +
+
+

chartmaker

+
+ {#if $currentChartID} {:else} {/if} -
- \ No newline at end of file + + \ No newline at end of file diff --git a/src/Chart.svelte b/src/Chart.svelte new file mode 100644 index 0000000..ce1ad99 --- /dev/null +++ b/src/Chart.svelte @@ -0,0 +1,55 @@ + + + \ No newline at end of file diff --git a/src/ChartCreation.svelte b/src/ChartCreation.svelte index c640933..5994ad5 100644 --- a/src/ChartCreation.svelte +++ b/src/ChartCreation.svelte @@ -1,9 +1,103 @@ - - \ No newline at end of file + #preview { + text-align: center; + display: flex; + width: 100%; + justify-content: center; + max-height: 512px; + } + #previewcontainer { + width: 512px; + height: auto; + } + + +
+ let's make a chart! + +

+ + + + + + + + + + + + + + {value}px + + + +
+ +
+
+ +
+
+ {#key top + left + right + bot + fontSize} + + {/key} +
+
\ No newline at end of file diff --git a/src/css/theme.scss b/src/css/theme.scss new file mode 100644 index 0000000..196ca04 --- /dev/null +++ b/src/css/theme.scss @@ -0,0 +1,4 @@ +@forward '~attractions/_variables' with ( + $main: #d23e6e, + $font: inherit, +); \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index c540bd4..dd0c8f9 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,5 +1,16 @@ const sveltePreprocess = require('svelte-preprocess'); +const makeAttractionsImporter = require('attractions/importer.js'); +const path = require('path'); module.exports = { - preprocess: [sveltePreprocess()], + preprocess: [ + sveltePreprocess({ + scss: { + importer: makeAttractionsImporter({ + themeFile: path.join(__dirname, 'src/css/theme.scss') + }), + includePaths: [path.join(__dirname, './src/css')], + } + }) + ], }; \ No newline at end of file