From f641c9326d7bd048647d1f208fe8e373f70e1602 Mon Sep 17 00:00:00 2001 From: marcgauch <34353267+marcgauch@users.noreply.github.com> Date: Thu, 12 Jan 2023 19:31:06 +0100 Subject: [PATCH] Templates --- templates/without-npm/app.js | 18 +++++++++ templates/without-npm/index.html | 22 +++++++++++ templates/without-npm/styles.css | 64 ++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 templates/without-npm/app.js create mode 100644 templates/without-npm/index.html create mode 100644 templates/without-npm/styles.css diff --git a/templates/without-npm/app.js b/templates/without-npm/app.js new file mode 100644 index 0000000..8bdaef6 --- /dev/null +++ b/templates/without-npm/app.js @@ -0,0 +1,18 @@ +const app = Vue.createApp({ + data: () => ({ + text: "hello World", + }), + methods: { + date() { + return new Date().toLocaleDateString(); + }, + }, + computed: { + shouted() { + return this.text.toUpperCase() + } + } + }); + + app.mount("#app"); + \ No newline at end of file diff --git a/templates/without-npm/index.html b/templates/without-npm/index.html new file mode 100644 index 0000000..e473d38 --- /dev/null +++ b/templates/without-npm/index.html @@ -0,0 +1,22 @@ + + + + + + TITLE + + + + + + +
+ {{ text }}
+ {{ date() }}
+ {{ shouted }} +
+ + diff --git a/templates/without-npm/styles.css b/templates/without-npm/styles.css new file mode 100644 index 0000000..1fa3dba --- /dev/null +++ b/templates/without-npm/styles.css @@ -0,0 +1,64 @@ +* { + box-sizing: border-box; + } + + html { + font-family: 'Jost', sans-serif; + } + + body { + margin: 0; + } + + section { + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); + margin: 3rem; + border-radius: 10px; + padding: 1rem; + text-align: center; + } + + h2 { + font-size: 2rem; + border-bottom: 4px solid #ccc; + color: #970076; + margin: 0 0 1rem 0; + } + + p { + font-size: 1.25rem; + font-weight: bold; + background-color: #970076; + padding: 0.5rem; + color: white; + border-radius: 25px; + } + + input { + font: inherit; + border: 1px solid #ccc; + } + + input:focus { + outline: none; + border-color: #1b995e; + background-color: #d7fdeb; + } + + button { + font: inherit; + cursor: pointer; + border: 1px solid #ff0077; + background-color: #ff0077; + color: white; + padding: 0.05rem 1rem; + box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.26); + } + + button:hover, + button:active { + background-color: #ec3169; + border-color: #ec3169; + box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.26); + } + \ No newline at end of file