✨ feat: add style
This commit is contained in:
parent
12195af6b0
commit
90d19c852f
src
22
src/App.vue
22
src/App.vue
@ -3,19 +3,23 @@ import StarTrails from './components/StarTrails.vue'
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<StarTrails />
|
<div absolute wh-full left-0 top-0>
|
||||||
<!-- <div f-c-c absolute h-100vh w-full left-0 top-0>
|
<!-- 渐变 -->
|
||||||
<div text-18 text-white>
|
<div to-black-500 absolute h-80vh w-full class="bottom-[-30vh]" left-0 from-black bg-gradient-to-t />
|
||||||
小孙同学
|
<!-- 星轨 -->
|
||||||
</div>
|
<StarTrails />
|
||||||
</div> -->
|
<!-- 拖底 -->
|
||||||
<div bg-black f-c-c h-100vh>
|
<div bg-black h-45vh />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div bg-black bg-transparent f-c-c absolute h-100vh w-full top-0>
|
||||||
<div text-white>
|
<div text-white>
|
||||||
正在开发中...
|
<div>
|
||||||
|
正在开发中...
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -4,7 +4,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: pingfang sc, helvetica, arial, sans-serif;
|
font-family:
|
||||||
|
pingfang sc,
|
||||||
|
helvetica,
|
||||||
|
arial,
|
||||||
|
sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
@ -91,7 +91,7 @@ onMounted(() => {
|
|||||||
drawStar()
|
drawStar()
|
||||||
|
|
||||||
// 根据比例调整圆心
|
// 根据比例调整圆心
|
||||||
if (showWidth < showHeight * 1.5)
|
if (showWidth < showHeight)
|
||||||
showContext.translate(showWidth, showHeight)
|
showContext.translate(showWidth, showHeight)
|
||||||
else
|
else
|
||||||
showContext.translate(showWidth, 0)
|
showContext.translate(showWidth, 0)
|
||||||
@ -116,7 +116,7 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div h-100vh>
|
<div h-130vh>
|
||||||
<canvas id="trails" wh-full />
|
<canvas id="trails" wh-full />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user