feat: add style

This commit is contained in:
guoqi.sun 2024-02-11 05:06:59 +08:00
parent 12195af6b0
commit 90d19c852f
3 changed files with 20 additions and 12 deletions
src
App.vue
assets/css
components

View File

@ -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>

View File

@ -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;

View File

@ -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>