初始化提交。
24
.gitignore
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
9
.postcssrc.cjs
Normal file
@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
'postcss-pxtorem': {
|
||||
rootValue: 16, // 表示根元素字体大小或根据input参数返回根元素字体大小
|
||||
propList: ['*'], // 可以从px更改为rem的属性, 通配符*表示启用所有属性
|
||||
selectorBlackList: ['.norem'] // 过滤掉.norem开头的class,不进行rem转换
|
||||
}
|
||||
}
|
||||
}
|
||||
3
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["Vue.volar"]
|
||||
}
|
||||
5
README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Vue 3 + TypeScript + Vite
|
||||
|
||||
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
||||
|
||||
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
||||
13
index.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>ANOLE</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
1701
package-lock.json
generated
Normal file
26
package.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "xprint.website",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vue-tsc -b && vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"amfe-flexible": "^2.2.1",
|
||||
"less": "^4.3.0",
|
||||
"vant": "^4.9.20",
|
||||
"vue": "^3.5.17"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.10",
|
||||
"@vitejs/plugin-vue": "^6.0.0",
|
||||
"@vue/tsconfig": "^0.7.0",
|
||||
"postcss-pxtorem": "^6.1.0",
|
||||
"typescript": "~5.8.3",
|
||||
"vite": "^7.0.0",
|
||||
"vue-tsc": "^2.2.10"
|
||||
}
|
||||
}
|
||||
1
public/vite.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
29
src/App.vue
Normal file
@ -0,0 +1,29 @@
|
||||
<script setup lang="ts">
|
||||
import Index from './components/Index/Index.vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Index msg="Vite + Vue" />
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
transition: filter 300ms;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
|
||||
.logo.vue:hover {
|
||||
filter: drop-shadow(0 0 2em #42b883aa);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "pfsc";
|
||||
src: url("./assets/font/PingFangSC-Medium.ttf") format("truetype");
|
||||
}
|
||||
</style>
|
||||
BIN
src/assets/font/PingFangSC-Medium.ttf
Normal file
BIN
src/assets/image/1.jpg
Normal file
|
After Width: | Height: | Size: 155 KiB |
BIN
src/assets/image/1.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
src/assets/image/2.jpg
Normal file
|
After Width: | Height: | Size: 132 KiB |
BIN
src/assets/image/2.png
Normal file
|
After Width: | Height: | Size: 736 KiB |
BIN
src/assets/image/3.png
Normal file
|
After Width: | Height: | Size: 679 KiB |
BIN
src/assets/image/4.png
Normal file
|
After Width: | Height: | Size: 602 KiB |
BIN
src/assets/image/5.png
Normal file
|
After Width: | Height: | Size: 244 KiB |
BIN
src/assets/image/experience.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
src/assets/image/logo.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
src/assets/image/menu.png
Normal file
|
After Width: | Height: | Size: 269 B |
BIN
src/assets/image/rect1.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
BIN
src/assets/image/rect2.png
Normal file
|
After Width: | Height: | Size: 909 B |
1
src/assets/vue.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 496 B |
276
src/components/Index/Index.less
Normal file
@ -0,0 +1,276 @@
|
||||
.top-bar {
|
||||
width: 100vw;
|
||||
height: 60px;
|
||||
display: block;
|
||||
text-align: left;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.top-bar-black {
|
||||
.top-bar();
|
||||
background-color: black;
|
||||
color: white;
|
||||
.logo {
|
||||
margin-top: 15px;
|
||||
width: 105px;
|
||||
height: 30px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.menu {
|
||||
margin-top: 20px;
|
||||
width: 24px;
|
||||
height: 20px;
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.top-bar-white {
|
||||
.top-bar();
|
||||
background-color: white;
|
||||
color: black;
|
||||
.logo {
|
||||
margin-top: 15px;
|
||||
width: 105px;
|
||||
height: 30px;
|
||||
margin-left: 20px;
|
||||
filter: grayscale(100%) brightness(0) opacity(100%); /* 仅去色,保留透明度 */
|
||||
}
|
||||
.menu {
|
||||
margin-top: 20px;
|
||||
width: 24px;
|
||||
height: 20px;
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
filter: grayscale(100%) brightness(0) opacity(100%); /* 仅去色,保留透明度 */
|
||||
}
|
||||
}
|
||||
|
||||
.font-pf {
|
||||
font-family: "pfsc";
|
||||
color: white;
|
||||
}
|
||||
|
||||
.button-global {
|
||||
.font-pf();
|
||||
border: 1px solid white;
|
||||
width: 100px;
|
||||
height: 45px;
|
||||
line-height: 45px;
|
||||
border-radius: 22.5px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.desc-global {
|
||||
.font-pf();
|
||||
margin: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.content1 {
|
||||
width: 100vw;
|
||||
height: 650px;
|
||||
margin-top: 60px;
|
||||
display: block;
|
||||
.img1 {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
width: calc(100% - 20px);
|
||||
height: 650px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.desc {
|
||||
position: relative;
|
||||
left: 0;
|
||||
right: 0;
|
||||
.desc1 {
|
||||
.desc-global();
|
||||
margin-top: -600px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.desc2 {
|
||||
.desc-global();
|
||||
width: 230px;
|
||||
font-size: 36px;
|
||||
line-height: 44px;
|
||||
}
|
||||
}
|
||||
.experience-button {
|
||||
.button-global();
|
||||
position: relative;
|
||||
border: none;
|
||||
top: 325px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
// vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.content2 {
|
||||
width: 100vw;
|
||||
height: fit-content;
|
||||
display: block;
|
||||
margin-top: 50px;
|
||||
text-align: left;
|
||||
padding: 0 10px 0 10px;
|
||||
.desc {
|
||||
.desc1 {
|
||||
.desc-global();
|
||||
padding: 0 5px 0 5px;
|
||||
font-size: 38px;
|
||||
line-height: 44px;
|
||||
text-align: left;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
.api-button {
|
||||
.button-global();
|
||||
padding: 15px 18px 15px 18px;
|
||||
}
|
||||
}
|
||||
.img2 {
|
||||
margin-top: 100px;
|
||||
width: calc(100% - 20px);
|
||||
border-radius: 12px;
|
||||
}
|
||||
.desc2 {
|
||||
.desc-global();
|
||||
margin-top: 50px;
|
||||
text-align: left;
|
||||
width: calc(100% - 20px);
|
||||
font-size: 38px;
|
||||
line-height: 44px;
|
||||
}
|
||||
.desc3 {
|
||||
.desc-global();
|
||||
margin-top: 20px;
|
||||
margin-left: 10px;
|
||||
width: calc(100% - 45px);
|
||||
text-align: left;
|
||||
font-size: 18px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.desc4 {
|
||||
.desc-global();
|
||||
margin-top: 20px;
|
||||
width: calc(100% - 20px);
|
||||
text-align: left;
|
||||
font-size: 12px;
|
||||
}
|
||||
.img3 {
|
||||
margin-left: 10px;
|
||||
width: calc(100% - 30px);
|
||||
height: 12px;
|
||||
}
|
||||
.img4 {
|
||||
margin-left: 10px;
|
||||
height: 15px;
|
||||
top: -10px;
|
||||
}
|
||||
|
||||
.desc5 {
|
||||
.desc4();
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.desc6 {
|
||||
.desc4();
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.desc78 {
|
||||
position: relative;
|
||||
top: -20px;
|
||||
.desc7 {
|
||||
.desc4();
|
||||
margin-top: 0px;
|
||||
font-size: 108px;
|
||||
font-weight: bold;
|
||||
width: 130px;
|
||||
display: inline-block;
|
||||
}
|
||||
.desc8 {
|
||||
.desc4();
|
||||
font-size: 48px;
|
||||
font-weight: bold;
|
||||
width: 100px;
|
||||
text-align: left;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.content3 {
|
||||
margin-top: 50px;
|
||||
width: 100vw;
|
||||
height: fit-content;
|
||||
display: block;
|
||||
text-align: left;
|
||||
padding: 0 10px 0 10px;
|
||||
.img1 {
|
||||
width: calc(100% - 20px);
|
||||
border-radius: 12px;
|
||||
}
|
||||
.desc1 {
|
||||
.desc-global();
|
||||
margin-top: 50px;
|
||||
text-align: left;
|
||||
width: calc(100% - 20px);
|
||||
font-size: 38px;
|
||||
line-height: 44px;
|
||||
}
|
||||
.desc2 {
|
||||
.desc-global();
|
||||
margin-top: 20px;
|
||||
margin-left: 10px;
|
||||
width: calc(100% - 45px);
|
||||
text-align: left;
|
||||
font-size: 18px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.img2 {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
margin-top: 100px;
|
||||
width: calc(100% - 20px);
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.content4 {
|
||||
margin-top: 50px;
|
||||
width: 100vw;
|
||||
height: fit-content;
|
||||
display: block;
|
||||
text-align: left;
|
||||
padding: 0 10px 0 10px;
|
||||
.desc1 {
|
||||
.desc-global();
|
||||
margin-top: 50px;
|
||||
text-align: left;
|
||||
width: calc(100% - 20px);
|
||||
font-size: 38px;
|
||||
line-height: 44px;
|
||||
}
|
||||
.desc2 {
|
||||
.desc-global();
|
||||
margin-top: 20px;
|
||||
margin-left: 10px;
|
||||
width: calc(100% - 45px);
|
||||
text-align: left;
|
||||
font-size: 18px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.img1 {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
margin-top: 50px;
|
||||
width: calc(100% - 30px);
|
||||
border-radius: 12px;
|
||||
}
|
||||
.fit-bottom {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
}
|
||||
}
|
||||
115
src/components/Index/Index.vue
Normal file
@ -0,0 +1,115 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue';
|
||||
|
||||
// import { ref } from 'vue'
|
||||
|
||||
defineProps<{ msg: string }>()
|
||||
|
||||
const isShowBlackTopBar = ref(true)
|
||||
|
||||
const toDesign = () => {
|
||||
window.location.href = "https://xy88.fun/xprint/index.html"
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
window.addEventListener("scroll", () => {
|
||||
const scrollY = window.scrollY;
|
||||
if (scrollY > 5) {
|
||||
isShowBlackTopBar.value = false
|
||||
}
|
||||
else {
|
||||
isShowBlackTopBar.value = true
|
||||
}
|
||||
})
|
||||
})
|
||||
// const count = ref(0)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view>
|
||||
<view class="top-bar-black" ref="topBarBlack" v-show="isShowBlackTopBar">
|
||||
<img lazy-load src="../../assets/image/logo.png" class="logo" />
|
||||
<img lazy-load src="../../assets/image/menu.png" class="menu" v-show="false"/>
|
||||
</view>
|
||||
|
||||
<view class="top-bar-white" ref="topBarWhite" v-show="!isShowBlackTopBar">
|
||||
<img lazy-load src="../../assets/image/logo.png" class="logo" />
|
||||
<img lazy-load src="../../assets/image/menu.png" class="menu" v-show="false"/>
|
||||
</view>
|
||||
|
||||
<view class="content1">
|
||||
<img lazy-load src="../../assets/image/1.jpg" class="img1" />
|
||||
<view class="desc">
|
||||
<view class="desc1">Ai花型视觉设计引擎</view>
|
||||
<view class="desc2">让创意灵感直达喷印车间</view>
|
||||
</view>
|
||||
<view>
|
||||
<img lazy-load src="../../assets/image/experience.png" class="experience-button" @click="toDesign()"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content2">
|
||||
<view class="desc">
|
||||
<view class="desc1">构建从“灵感”到“生产文件交付”的完整数字化闭环。</view>
|
||||
<view class="api-button">
|
||||
了解更多关于企业级API的内容
|
||||
</view>
|
||||
</view>
|
||||
<img lazy-load src="../../assets/image/2.png" class="img2" />
|
||||
<view class="desc2">
|
||||
秒级生成,张张高清,商用无忧
|
||||
</view>
|
||||
<view class="desc3">
|
||||
突破传统设计限制,激发无限花型灵感,30秒内生成高清商业级图(4K分辨·300dpi)。我们的AI引擎基于合规数据集训练,确保每一张产出图像天然规避版权风险,彻底告别图库纠纷与侵权索赔。传统设计师数日工作量,现在只需一句描述,效率提升百倍。
|
||||
</view>
|
||||
<view class="desc4">
|
||||
传统耗时:数小时
|
||||
</view>
|
||||
<img lazy-load src="../../assets/image/rect1.png" class="img3" fit="contain"/>
|
||||
<img lazy-load src="../../assets/image/rect2.png" class="img4" fit="fill"/>
|
||||
<view class="desc5">
|
||||
Anole耗时(秒级生成)
|
||||
</view>
|
||||
<view class="desc6">
|
||||
效率提升
|
||||
</view>
|
||||
<view class="desc78">
|
||||
<view class="desc7">
|
||||
99
|
||||
</view>
|
||||
<view class="desc8">
|
||||
%+
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content3">
|
||||
<img lazy-load src="../../assets/image/3.png" class="img1" />
|
||||
<view class="desc1">
|
||||
所想即所见,所见即所得。
|
||||
</view>
|
||||
<view class="desc2">
|
||||
3D实时可视化操作,全方位查看设计效果,大幅降低沟通成本,提升决策效率。
|
||||
</view>
|
||||
<img lazy-load src="../../assets/image/4.png" class="img2" />
|
||||
</view>
|
||||
<view class="content4">
|
||||
<view class="desc1">
|
||||
“色色”分明,层层拿捏。
|
||||
</view>
|
||||
<view class="desc2">
|
||||
通过印刷逆向校准技术,专业分色算法,自动、精准地完成 CMYK 或专色分离,确保分色文件在Pantone验证、网点检测、套准测试中达到98.6%行业顶尖匹配度,输出可直接用于制版或数码印刷的分色文件,显著降低分色错误风险。
|
||||
</view>
|
||||
<img lazy-load src="../../assets/image/5.png" class="img1" />
|
||||
<view class="desc1">
|
||||
生产,一触即发。
|
||||
</view>
|
||||
<view class="desc2">
|
||||
告别繁琐手动准备,自动将3D设计效果转化为可直接用于打印/印刷(带有出血线、定位Mark、刀模线)的生产文件。
|
||||
</view>
|
||||
<view class="fit-bottom"> </view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
<style src="./Index.less" scoped></style>
|
||||
25
src/main.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { createApp } from 'vue'
|
||||
import './style.css'
|
||||
import App from './App.vue'
|
||||
|
||||
import 'amfe-flexible'
|
||||
import "./rem.js"
|
||||
|
||||
import Vant, { Lazyload } from "vant";
|
||||
import "vant/lib/index.css"; // 引入全部样式
|
||||
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(Vant);
|
||||
|
||||
// Lazyload 指令需要单独进行注册
|
||||
// 注册时可以配置额外的选项
|
||||
app.use(Lazyload, {
|
||||
lazyComponent: true,
|
||||
});
|
||||
|
||||
// 将 v-lazy 指令的值设置为需要懒加载的图片。
|
||||
// <img v-for="img in imageList" v-lazy="img" />
|
||||
|
||||
app.mount('#app')
|
||||
20
src/rem.ts
Normal file
@ -0,0 +1,20 @@
|
||||
// 配置基本大小
|
||||
let baseSize = 16;
|
||||
|
||||
// 设置 rem 函数
|
||||
function setRem() {
|
||||
//当前页面宽度相对于1920px屏幕宽的缩放比例,可根据自己需要修改。
|
||||
let scale = document.documentElement.clientWidth / 375;
|
||||
//设置页面根节点字体大小(“Math.min(scale, 2)” 指最高放大比例为2,可根据实际业务需求调整)
|
||||
document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px'
|
||||
}
|
||||
setRem(); //初始化
|
||||
|
||||
// // 适配 - 重置函数
|
||||
// function resetRem(num: number) {
|
||||
// if (num) baseSize = Number(num);
|
||||
// setRem();
|
||||
// }
|
||||
// window.resetRem = resetRem; // 全局可调用(其他方式也可)
|
||||
|
||||
window.addEventListener("resize", setRem);
|
||||
83
src/style.css
Normal file
@ -0,0 +1,83 @@
|
||||
:root {
|
||||
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
|
||||
color-scheme: light dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background-color: #242424;
|
||||
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
color: #646cff;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
a:hover {
|
||||
color: #535bf2;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
/* display: flex; */
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.2em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
font-family: inherit;
|
||||
background-color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.25s;
|
||||
}
|
||||
button:hover {
|
||||
border-color: #646cff;
|
||||
}
|
||||
button:focus,
|
||||
button:focus-visible {
|
||||
outline: 4px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
#app {
|
||||
width: 100vw;
|
||||
margin: 0 auto;
|
||||
/* padding: 2rem; */
|
||||
text-align: center;
|
||||
background-color: black;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
button {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
1
src/vite-env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
15
tsconfig.app.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
|
||||
}
|
||||
7
tsconfig.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.app.json" },
|
||||
{ "path": "./tsconfig.node.json" }
|
||||
]
|
||||
}
|
||||
25
tsconfig.node.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||
"target": "ES2023",
|
||||
"lib": ["ES2023"],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["vite.config.ts"]
|
||||
}
|
||||
9
vite.config.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import process from "node:process";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
base: process.env.NODE_ENV === "production" ? "/xprint-site/" : "/",
|
||||
})
|
||||