1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 02:44:40 +00:00

Init commit

This commit is contained in:
2022-10-18 23:55:27 +07:00
commit 26158d44b4
52 changed files with 13281 additions and 0 deletions

11
.editorconfig Normal file
View File

@@ -0,0 +1,11 @@
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 2
[*.md]
trim_trailing_whitespace = false

11
.gitignore vendored Normal file
View File

@@ -0,0 +1,11 @@
.vscode
.idea
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.env
dist

42
README.md Normal file
View File

@@ -0,0 +1,42 @@
# Nuxt 3 Minimal Starter
Look at the [nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.
## Setup
Make sure to install the dependencies:
```bash
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install --shamefully-hoist
```
## Development Server
Start the development server on http://localhost:3000
```bash
npm run dev
```
## Production
Build the application for production:
```bash
npm run build
```
Locally preview production build:
```bash
npm run preview
```
Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/presets) for more information.

5
app.vue Normal file
View File

@@ -0,0 +1,5 @@
<template>
<div>
<NuxtPage />
</div>
</template>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

41
assets/styles/_fonts.scss Normal file
View File

@@ -0,0 +1,41 @@
@mixin MakeFont($font-family, $fonts, $base-font-path: '') {
@each $font, $weight in $fonts {
$font-with-dash: #{$font-family}-#{$font};
$font-with-space: #{$font-family} #{$font};
$font-with-path: #{$base-font-path}/#{$font-with-dash};
@font-face {
font-family: $font-family;
src: url('#{$font-with-path}.eot');
src: local('#{$font-with-dash}'), local('#{$font-with-space}'),
url('#{$font-with-path}.eot?#iefix') format('embedded-opentype'),
url('#{$font-with-path}.woff2') format('woff2'),
url('#{$font-with-path}.woff') format('woff'),
url('#{$font-with-path}.ttf') format('truetype');
font-weight: $weight;
font-style: normal;
}
@font-face {
font-family: $font-family;
src: url('#{$font-with-path}Italic.eot');
src: local('#{$font-with-dash}Italic'), local('#{$font-with-space} Italic'),
url('#{$font-with-path}Italic.eot?#iefix') format('embedded-opentype'),
url('#{$font-with-path}Italic.woff2') format('woff2'),
url('#{$font-with-path}Italic.woff') format('woff'),
url('#{$font-with-path}Italic.ttf') format('truetype');
font-weight: $weight;
font-style: italic;
}
}
}
$fonts: (
Light: 300,
Regular: 400,
Medium: 500,
Bold: 600,
Black: 700,
);
@include MakeFont('Formular', $fonts, '@/assets/fonts/formular');

View File

1
assets/styles/main.scss Normal file
View File

@@ -0,0 +1 @@
@import 'fonts';

16
nuxt.config.ts Normal file
View File

@@ -0,0 +1,16 @@
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
css: ['@/assets/styles/main.scss'],
vite: {
css: {
preprocessorOptions: {
sass: {
additionalData: '@import "@/assets/styles/_variables.sass"',
},
},
},
},
typescript: {
shim: false
}
})

13125
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

16
package.json Normal file
View File

@@ -0,0 +1,16 @@
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "3.0.0-rc.11"
},
"dependencies": {
"sass": "^1.55.0"
}
}

9
pages/index.vue Normal file
View File

@@ -0,0 +1,9 @@
<template>
<h1>Hello, Nuxt </h1>
</template>
<style scoped>
h1 {
font-family: Formular, Helvetica, Arial, sans-serif;
}
</style>

4
tsconfig.json Normal file
View File

@@ -0,0 +1,4 @@
{
// https://v3.nuxtjs.org/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}