create-rsbuild 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +1 -1
  3. package/template-react-js/package.json +1 -1
  4. package/template-react-js/src/App.css +26 -0
  5. package/template-react-js/src/App.jsx +6 -16
  6. package/template-react-js/src/index.jsx +0 -1
  7. package/template-react-ts/package.json +1 -1
  8. package/template-react-ts/src/App.css +26 -0
  9. package/template-react-ts/src/App.tsx +6 -16
  10. package/template-react-ts/src/env.d.ts +1 -0
  11. package/template-react-ts/src/index.tsx +0 -1
  12. package/template-svelte-js/package.json +1 -1
  13. package/template-svelte-js/src/App.svelte +21 -26
  14. package/template-svelte-js/src/index.css +6 -0
  15. package/template-svelte-js/src/index.js +1 -2
  16. package/template-svelte-ts/package.json +1 -1
  17. package/template-svelte-ts/src/App.svelte +21 -26
  18. package/template-svelte-ts/src/env.d.ts +2 -0
  19. package/template-svelte-ts/src/index.css +6 -0
  20. package/template-svelte-ts/src/index.ts +1 -2
  21. package/template-vue2-js/package.json +1 -1
  22. package/template-vue2-js/src/App.vue +21 -20
  23. package/template-vue2-js/src/index.css +3 -38
  24. package/template-vue2-js/src/index.js +1 -1
  25. package/template-vue2-ts/package.json +1 -1
  26. package/template-vue2-ts/src/App.vue +20 -21
  27. package/template-vue2-ts/src/env.d.ts +2 -0
  28. package/template-vue2-ts/src/index.css +3 -38
  29. package/template-vue2-ts/src/index.ts +1 -1
  30. package/template-vue3-js/package.json +1 -1
  31. package/template-vue3-js/src/App.vue +21 -22
  32. package/template-vue3-js/src/index.css +3 -38
  33. package/template-vue3-js/src/index.js +1 -1
  34. package/template-vue3-ts/package.json +1 -1
  35. package/template-vue3-ts/src/App.vue +21 -16
  36. package/template-vue3-ts/src/env.d.ts +2 -0
  37. package/template-vue3-ts/src/index.css +3 -38
  38. package/template-vue3-ts/src/index.ts +1 -1
  39. package/template-react-js/src/index.css +0 -41
  40. package/template-react-ts/src/index.css +0 -41
  41. package/template-svelte-js/src/global.css +0 -68
  42. package/template-svelte-ts/src/global.css +0 -68
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # create-rsbuild
2
2
 
3
+ ## 0.0.19
4
+
5
+ ## 0.0.18
6
+
7
+ ### Patch Changes
8
+
9
+ - 6f1c4a1: feat: add builtin assets and CSS modules types
10
+ - eed4dcb: feat(create-rsbuild): update all pages in templates
11
+ - a4485ea: feat(create-rspack): add dev --open option by default
12
+
3
13
  ## 0.0.17
4
14
 
5
15
  ## 0.0.16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -0,0 +1,26 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
7
+
8
+ .content {
9
+ display: flex;
10
+ min-height: 100vh;
11
+ line-height: 1.1;
12
+ text-align: center;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ }
16
+
17
+ .content h1 {
18
+ font-size: 3.6rem;
19
+ font-weight: 700;
20
+ }
21
+
22
+ .content p {
23
+ font-size: 1.2rem;
24
+ font-weight: 400;
25
+ opacity: 0.5;
26
+ }
@@ -1,22 +1,12 @@
1
- import { useState } from 'react';
2
-
3
- const HelloWorld = () => {
4
- const [count, setCount] = useState(0);
1
+ import './App.css';
5
2
 
3
+ const App = () => {
6
4
  return (
7
- <div>
8
- <h1>Rsbuild + React</h1>
9
-
10
- <div>
11
- <button type="button" onClick={() => setCount(count + 1)}>
12
- count is {count}
13
- </button>
14
- <p>
15
- Edit <code>App.tsx</code> to test HMR
16
- </p>
17
- </div>
5
+ <div className="content">
6
+ <h1>Rsbuild with React</h1>
7
+ <p>Start building amazing things with Rsbuild.</p>
18
8
  </div>
19
9
  );
20
10
  };
21
11
 
22
- export default HelloWorld;
12
+ export default App;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import ReactDOM from 'react-dom/client';
3
- import './index.css';
4
3
  import App from './App';
5
4
 
6
5
  const root = ReactDOM.createRoot(document.getElementById('root'));
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -0,0 +1,26 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
7
+
8
+ .content {
9
+ display: flex;
10
+ min-height: 100vh;
11
+ line-height: 1.1;
12
+ text-align: center;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ }
16
+
17
+ .content h1 {
18
+ font-size: 3.6rem;
19
+ font-weight: 700;
20
+ }
21
+
22
+ .content p {
23
+ font-size: 1.2rem;
24
+ font-weight: 400;
25
+ opacity: 0.5;
26
+ }
@@ -1,22 +1,12 @@
1
- import { useState } from 'react';
2
-
3
- const HelloWorld = () => {
4
- const [count, setCount] = useState(0);
1
+ import './App.css';
5
2
 
3
+ const App = () => {
6
4
  return (
7
- <div>
8
- <h1>Rsbuild + React</h1>
9
-
10
- <div>
11
- <button type="button" onClick={() => setCount(count + 1)}>
12
- count is {count}
13
- </button>
14
- <p>
15
- Edit <code>App.tsx</code> to test HMR
16
- </p>
17
- </div>
5
+ <div className="content">
6
+ <h1>Rsbuild with React</h1>
7
+ <p>Start building amazing things with Rsbuild.</p>
18
8
  </div>
19
9
  );
20
10
  };
21
11
 
22
- export default HelloWorld;
12
+ export default App;
@@ -0,0 +1 @@
1
+ /// <reference types="@rsbuild/core/types" />
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import ReactDOM from 'react-dom/client';
3
- import './index.css';
4
3
  import App from './App';
5
4
 
6
5
  const root = ReactDOM.createRoot(document.getElementById('root')!);
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -1,33 +1,28 @@
1
- <script>
2
- export let name;
3
- </script>
4
-
5
1
  <main>
6
- <h1>Hello {name}!</h1>
7
- <p>
8
- Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn
9
- how to build Svelte apps.
10
- </p>
2
+ <div class="content">
3
+ <h1>Rsbuild with Svelte</h1>
4
+ <p>Start building amazing things with Rsbuild.</p>
5
+ </div>
11
6
  </main>
12
7
 
13
8
  <style>
14
- main {
15
- text-align: center;
16
- padding: 1em;
17
- max-width: 240px;
18
- margin: 0 auto;
19
- }
9
+ .content {
10
+ display: flex;
11
+ min-height: 100vh;
12
+ line-height: 1.1;
13
+ text-align: center;
14
+ flex-direction: column;
15
+ justify-content: center;
16
+ }
20
17
 
21
- @media (min-width: 640px) {
22
- main {
23
- max-width: none;
24
- }
25
- }
18
+ .content h1 {
19
+ font-size: 3.6rem;
20
+ font-weight: 700;
21
+ }
26
22
 
27
- h1 {
28
- color: #ff3e00;
29
- text-transform: uppercase;
30
- font-size: 4em;
31
- font-weight: 100;
32
- }
23
+ .content p {
24
+ font-size: 1.2rem;
25
+ font-weight: 400;
26
+ opacity: 0.5;
27
+ }
33
28
  </style>
@@ -0,0 +1,6 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
@@ -1,5 +1,4 @@
1
- import './global.css';
2
-
1
+ import './index.css';
3
2
  import App from './App.svelte';
4
3
 
5
4
  const app = new App({
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -1,33 +1,28 @@
1
- <script>
2
- export let name;
3
- </script>
4
-
5
1
  <main>
6
- <h1>Hello {name}!</h1>
7
- <p>
8
- Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn
9
- how to build Svelte apps.
10
- </p>
2
+ <div class="content">
3
+ <h1>Rsbuild with Svelte</h1>
4
+ <p>Start building amazing things with Rsbuild.</p>
5
+ </div>
11
6
  </main>
12
7
 
13
8
  <style>
14
- main {
15
- text-align: center;
16
- padding: 1em;
17
- max-width: 240px;
18
- margin: 0 auto;
19
- }
9
+ .content {
10
+ display: flex;
11
+ min-height: 100vh;
12
+ line-height: 1.1;
13
+ text-align: center;
14
+ flex-direction: column;
15
+ justify-content: center;
16
+ }
20
17
 
21
- @media (min-width: 640px) {
22
- main {
23
- max-width: none;
24
- }
25
- }
18
+ .content h1 {
19
+ font-size: 3.6rem;
20
+ font-weight: 700;
21
+ }
26
22
 
27
- h1 {
28
- color: #ff3e00;
29
- text-transform: uppercase;
30
- font-size: 4em;
31
- font-weight: 100;
32
- }
23
+ .content p {
24
+ font-size: 1.2rem;
25
+ font-weight: 400;
26
+ opacity: 0.5;
27
+ }
33
28
  </style>
@@ -0,0 +1,2 @@
1
+ /// <reference types="@rsbuild/core/types" />
2
+ /// <reference types="svelte" />
@@ -0,0 +1,6 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
@@ -1,5 +1,4 @@
1
- import './global.css';
2
-
1
+ import './index.css';
3
2
  import App from './App.svelte';
4
3
 
5
4
  const app = new App({
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -1,27 +1,28 @@
1
1
  <template>
2
- <div>
3
- <h1>Rsbuild + Vue</h1>
4
-
5
- <div class="card">
6
- <button type="button" @click="count++">count is {{ count }}</button>
7
- <p>
8
- Edit
9
- <code>App.vue</code> to test HMR
10
- </p>
11
- </div>
2
+ <div class="content">
3
+ <h1>Rsbuild with Vue</h1>
4
+ <p>Start building amazing things with Rsbuild.</p>
12
5
  </div>
13
6
  </template>
14
7
 
15
- <script>
16
- export default {
17
- data() {
18
- return { count: 0 };
19
- },
20
- };
21
- </script>
22
-
23
8
  <style scoped>
24
- .card {
25
- padding: 2em;
9
+ .content {
10
+ display: flex;
11
+ min-height: 100vh;
12
+ line-height: 1.1;
13
+ text-align: center;
14
+ flex-direction: column;
15
+ justify-content: center;
16
+ }
17
+
18
+ .content h1 {
19
+ font-size: 3.6rem;
20
+ font-weight: 700;
21
+ }
22
+
23
+ .content p {
24
+ font-size: 1.2rem;
25
+ font-weight: 400;
26
+ opacity: 0.5;
26
27
  }
27
28
  </style>
@@ -1,41 +1,6 @@
1
- :root {
2
- font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3
- font-size: 16px;
4
- line-height: 24px;
5
- font-weight: 400;
6
- color: #213547;
7
- background-color: #ffffff;
8
- max-width: 1280px;
9
- margin: 0 auto;
10
- padding: 5rem;
11
- text-align: center;
12
- }
13
-
14
1
  body {
15
2
  margin: 0;
16
- min-height: 100vh;
17
- }
18
-
19
- h1 {
20
- font-size: 3.2em;
21
- line-height: 1.1;
22
- }
23
-
24
- button {
25
- border-radius: 8px;
26
- border: 1px solid transparent;
27
- padding: 0.6em 1.2em;
28
- font-size: 1em;
29
- font-weight: 500;
30
- font-family: inherit;
31
- background-color: #f9f9f9;
32
- cursor: pointer;
33
- transition: border-color 0.25s;
34
- }
35
- button:hover {
36
- border-color: #646cff;
37
- }
38
- button:focus,
39
- button:focus-visible {
40
- outline: 4px auto -webkit-focus-ring-color;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
41
6
  }
@@ -1,5 +1,5 @@
1
- import Vue from 'vue';
2
1
  import './index.css';
2
+ import Vue from 'vue';
3
3
  import App from './App.vue';
4
4
 
5
5
  new Vue({
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -1,29 +1,28 @@
1
1
  <template>
2
- <div>
3
- <h1>Rsbuild + Vue</h1>
4
-
5
- <div class="card">
6
- <button type="button" @click="count++">count is {{ count }}</button>
7
- <p>
8
- Edit
9
- <code>App.vue</code> to test HMR
10
- </p>
11
- </div>
2
+ <div class="content">
3
+ <h1>Rsbuild with Vue</h1>
4
+ <p>Start building amazing things with Rsbuild.</p>
12
5
  </div>
13
6
  </template>
14
7
 
15
- <script lang="ts">
16
- import { defineComponent } from 'vue';
8
+ <style scoped>
9
+ .content {
10
+ display: flex;
11
+ min-height: 100vh;
12
+ line-height: 1.1;
13
+ text-align: center;
14
+ flex-direction: column;
15
+ justify-content: center;
16
+ }
17
17
 
18
- export default defineComponent({
19
- data() {
20
- return { count: 0 };
21
- },
22
- });
23
- </script>
18
+ .content h1 {
19
+ font-size: 3.6rem;
20
+ font-weight: 700;
21
+ }
24
22
 
25
- <style scoped>
26
- .card {
27
- padding: 2em;
23
+ .content p {
24
+ font-size: 1.2rem;
25
+ font-weight: 400;
26
+ opacity: 0.5;
28
27
  }
29
28
  </style>
@@ -1,3 +1,5 @@
1
+ /// <reference types="@rsbuild/core/types" />
2
+
1
3
  declare module '*.vue' {
2
4
  import Vue from 'vue';
3
5
 
@@ -1,41 +1,6 @@
1
- :root {
2
- font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3
- font-size: 16px;
4
- line-height: 24px;
5
- font-weight: 400;
6
- color: #213547;
7
- background-color: #ffffff;
8
- max-width: 1280px;
9
- margin: 0 auto;
10
- padding: 5rem;
11
- text-align: center;
12
- }
13
-
14
1
  body {
15
2
  margin: 0;
16
- min-height: 100vh;
17
- }
18
-
19
- h1 {
20
- font-size: 3.2em;
21
- line-height: 1.1;
22
- }
23
-
24
- button {
25
- border-radius: 8px;
26
- border: 1px solid transparent;
27
- padding: 0.6em 1.2em;
28
- font-size: 1em;
29
- font-weight: 500;
30
- font-family: inherit;
31
- background-color: #f9f9f9;
32
- cursor: pointer;
33
- transition: border-color 0.25s;
34
- }
35
- button:hover {
36
- border-color: #646cff;
37
- }
38
- button:focus,
39
- button:focus-visible {
40
- outline: 4px auto -webkit-focus-ring-color;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
41
6
  }
@@ -1,5 +1,5 @@
1
- import Vue from 'vue';
2
1
  import './index.css';
2
+ import Vue from 'vue';
3
3
  import App from './App.vue';
4
4
 
5
5
  new Vue({
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -1,29 +1,28 @@
1
- <script setup>
2
- import { ref } from 'vue';
3
-
4
- defineProps({
5
- msg: {
6
- type: String,
7
- },
8
- });
9
-
10
- const count = ref(0);
11
- </script>
12
-
13
1
  <template>
14
- <h1>Rsbuild + Vue</h1>
15
-
16
- <div class="card">
17
- <button type="button" @click="count++">count is {{ count }}</button>
18
- <p>
19
- Edit
20
- <code>App.vue</code> to test HMR
21
- </p>
2
+ <div class="content">
3
+ <h1>Rsbuild with Vue</h1>
4
+ <p>Start building amazing things with Rsbuild.</p>
22
5
  </div>
23
6
  </template>
24
7
 
25
8
  <style scoped>
26
- .card {
27
- padding: 2em;
9
+ .content {
10
+ display: flex;
11
+ min-height: 100vh;
12
+ line-height: 1.1;
13
+ text-align: center;
14
+ flex-direction: column;
15
+ justify-content: center;
16
+ }
17
+
18
+ .content h1 {
19
+ font-size: 3.6rem;
20
+ font-weight: 700;
21
+ }
22
+
23
+ .content p {
24
+ font-size: 1.2rem;
25
+ font-weight: 400;
26
+ opacity: 0.5;
28
27
  }
29
28
  </style>
@@ -1,41 +1,6 @@
1
- :root {
2
- font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3
- font-size: 16px;
4
- line-height: 24px;
5
- font-weight: 400;
6
- color: #213547;
7
- background-color: #ffffff;
8
- max-width: 1280px;
9
- margin: 0 auto;
10
- padding: 5rem;
11
- text-align: center;
12
- }
13
-
14
1
  body {
15
2
  margin: 0;
16
- min-height: 100vh;
17
- }
18
-
19
- h1 {
20
- font-size: 3.2em;
21
- line-height: 1.1;
22
- }
23
-
24
- button {
25
- border-radius: 8px;
26
- border: 1px solid transparent;
27
- padding: 0.6em 1.2em;
28
- font-size: 1em;
29
- font-weight: 500;
30
- font-family: inherit;
31
- background-color: #f9f9f9;
32
- cursor: pointer;
33
- transition: border-color 0.25s;
34
- }
35
- button:hover {
36
- border-color: #646cff;
37
- }
38
- button:focus,
39
- button:focus-visible {
40
- outline: 4px auto -webkit-focus-ring-color;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
41
6
  }
@@ -1,5 +1,5 @@
1
- import { createApp } from 'vue';
2
1
  import './index.css';
2
+ import { createApp } from 'vue';
3
3
  import App from './App.vue';
4
4
 
5
5
  createApp(App).mount('#root');
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -1,23 +1,28 @@
1
- <script setup lang="ts">
2
- import { ref } from 'vue';
3
-
4
- const count = ref(0);
5
- </script>
6
-
7
1
  <template>
8
- <h1>Rsbuild + Vue</h1>
9
-
10
- <div class="card">
11
- <button type="button" @click="count++">count is {{ count }}</button>
12
- <p>
13
- Edit
14
- <code>App.vue</code> to test HMR
15
- </p>
2
+ <div class="content">
3
+ <h1>Rsbuild with Vue</h1>
4
+ <p>Start building amazing things with Rsbuild.</p>
16
5
  </div>
17
6
  </template>
18
7
 
19
8
  <style scoped>
20
- .card {
21
- padding: 2em;
9
+ .content {
10
+ display: flex;
11
+ min-height: 100vh;
12
+ line-height: 1.1;
13
+ text-align: center;
14
+ flex-direction: column;
15
+ justify-content: center;
16
+ }
17
+
18
+ .content h1 {
19
+ font-size: 3.6rem;
20
+ font-weight: 700;
21
+ }
22
+
23
+ .content p {
24
+ font-size: 1.2rem;
25
+ font-weight: 400;
26
+ opacity: 0.5;
22
27
  }
23
28
  </style>
@@ -1,3 +1,5 @@
1
+ /// <reference types="@rsbuild/core/types" />
2
+
1
3
  declare module '*.vue' {
2
4
  import type { DefineComponent } from 'vue';
3
5
 
@@ -1,41 +1,6 @@
1
- :root {
2
- font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3
- font-size: 16px;
4
- line-height: 24px;
5
- font-weight: 400;
6
- color: #213547;
7
- background-color: #ffffff;
8
- max-width: 1280px;
9
- margin: 0 auto;
10
- padding: 5rem;
11
- text-align: center;
12
- }
13
-
14
1
  body {
15
2
  margin: 0;
16
- min-height: 100vh;
17
- }
18
-
19
- h1 {
20
- font-size: 3.2em;
21
- line-height: 1.1;
22
- }
23
-
24
- button {
25
- border-radius: 8px;
26
- border: 1px solid transparent;
27
- padding: 0.6em 1.2em;
28
- font-size: 1em;
29
- font-weight: 500;
30
- font-family: inherit;
31
- background-color: #f9f9f9;
32
- cursor: pointer;
33
- transition: border-color 0.25s;
34
- }
35
- button:hover {
36
- border-color: #646cff;
37
- }
38
- button:focus,
39
- button:focus-visible {
40
- outline: 4px auto -webkit-focus-ring-color;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
41
6
  }
@@ -1,5 +1,5 @@
1
- import { createApp } from 'vue';
2
1
  import './index.css';
2
+ import { createApp } from 'vue';
3
3
  import App from './App.vue';
4
4
 
5
5
  createApp(App).mount('#root');
@@ -1,41 +0,0 @@
1
- :root {
2
- font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3
- font-size: 16px;
4
- line-height: 24px;
5
- font-weight: 400;
6
- color: #213547;
7
- background-color: #ffffff;
8
- max-width: 1280px;
9
- margin: 0 auto;
10
- padding: 5rem;
11
- text-align: center;
12
- }
13
-
14
- body {
15
- margin: 0;
16
- min-height: 100vh;
17
- }
18
-
19
- h1 {
20
- font-size: 3.2em;
21
- line-height: 1.1;
22
- }
23
-
24
- button {
25
- border-radius: 8px;
26
- border: 1px solid transparent;
27
- padding: 0.6em 1.2em;
28
- font-size: 1em;
29
- font-weight: 500;
30
- font-family: inherit;
31
- background-color: #f9f9f9;
32
- cursor: pointer;
33
- transition: border-color 0.25s;
34
- }
35
- button:hover {
36
- border-color: #646cff;
37
- }
38
- button:focus,
39
- button:focus-visible {
40
- outline: 4px auto -webkit-focus-ring-color;
41
- }
@@ -1,41 +0,0 @@
1
- :root {
2
- font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3
- font-size: 16px;
4
- line-height: 24px;
5
- font-weight: 400;
6
- color: #213547;
7
- background-color: #ffffff;
8
- max-width: 1280px;
9
- margin: 0 auto;
10
- padding: 5rem;
11
- text-align: center;
12
- }
13
-
14
- body {
15
- margin: 0;
16
- min-height: 100vh;
17
- }
18
-
19
- h1 {
20
- font-size: 3.2em;
21
- line-height: 1.1;
22
- }
23
-
24
- button {
25
- border-radius: 8px;
26
- border: 1px solid transparent;
27
- padding: 0.6em 1.2em;
28
- font-size: 1em;
29
- font-weight: 500;
30
- font-family: inherit;
31
- background-color: #f9f9f9;
32
- cursor: pointer;
33
- transition: border-color 0.25s;
34
- }
35
- button:hover {
36
- border-color: #646cff;
37
- }
38
- button:focus,
39
- button:focus-visible {
40
- outline: 4px auto -webkit-focus-ring-color;
41
- }
@@ -1,68 +0,0 @@
1
- html,
2
- body {
3
- position: relative;
4
- width: 100%;
5
- height: 100%;
6
- }
7
-
8
- body {
9
- color: #333;
10
- margin: 0;
11
- padding: 8px;
12
- box-sizing: border-box;
13
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
14
- Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
15
- }
16
-
17
- a {
18
- color: rgb(0, 100, 200);
19
- text-decoration: none;
20
- }
21
-
22
- a:hover {
23
- text-decoration: underline;
24
- }
25
-
26
- a:visited {
27
- color: rgb(0, 80, 160);
28
- }
29
-
30
- label {
31
- display: block;
32
- }
33
-
34
- input,
35
- button,
36
- select,
37
- textarea {
38
- font-family: inherit;
39
- font-size: inherit;
40
- -webkit-padding: 0.4em 0;
41
- padding: 0.4em;
42
- margin: 0 0 0.5em 0;
43
- box-sizing: border-box;
44
- border: 1px solid #ccc;
45
- border-radius: 2px;
46
- }
47
-
48
- input:disabled {
49
- color: #ccc;
50
- }
51
-
52
- button {
53
- color: #333;
54
- background-color: #f4f4f4;
55
- outline: none;
56
- }
57
-
58
- button:disabled {
59
- color: #999;
60
- }
61
-
62
- button:not(:disabled):active {
63
- background-color: #ddd;
64
- }
65
-
66
- button:focus {
67
- border-color: #666;
68
- }
@@ -1,68 +0,0 @@
1
- html,
2
- body {
3
- position: relative;
4
- width: 100%;
5
- height: 100%;
6
- }
7
-
8
- body {
9
- color: #333;
10
- margin: 0;
11
- padding: 8px;
12
- box-sizing: border-box;
13
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
14
- Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
15
- }
16
-
17
- a {
18
- color: rgb(0, 100, 200);
19
- text-decoration: none;
20
- }
21
-
22
- a:hover {
23
- text-decoration: underline;
24
- }
25
-
26
- a:visited {
27
- color: rgb(0, 80, 160);
28
- }
29
-
30
- label {
31
- display: block;
32
- }
33
-
34
- input,
35
- button,
36
- select,
37
- textarea {
38
- font-family: inherit;
39
- font-size: inherit;
40
- -webkit-padding: 0.4em 0;
41
- padding: 0.4em;
42
- margin: 0 0 0.5em 0;
43
- box-sizing: border-box;
44
- border: 1px solid #ccc;
45
- border-radius: 2px;
46
- }
47
-
48
- input:disabled {
49
- color: #ccc;
50
- }
51
-
52
- button {
53
- color: #333;
54
- background-color: #f4f4f4;
55
- outline: none;
56
- }
57
-
58
- button:disabled {
59
- color: #999;
60
- }
61
-
62
- button:not(:disabled):active {
63
- background-color: #ddd;
64
- }
65
-
66
- button:focus {
67
- border-color: #666;
68
- }