页面美观性修改

This commit is contained in:
Luthics 2023-06-11 12:02:52 +08:00
parent 5a062c2c50
commit ea48fdfc78
6 changed files with 27 additions and 86 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>排序可视化 by Luthics</title>
</head>
<body>
<div id="app"></div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -1,73 +0,0 @@
/* color palette from <https://github.com/vuejs/theme> */
:root {
--vt-c-white: #ffffff;
--vt-c-white-soft: #f8f8f8;
--vt-c-white-mute: #f2f2f2;
--vt-c-black: #181818;
--vt-c-black-soft: #222222;
--vt-c-black-mute: #282828;
--vt-c-indigo: #2c3e50;
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
--vt-c-text-light-1: var(--vt-c-indigo);
--vt-c-text-light-2: rgba(60, 60, 60, 0.66);
--vt-c-text-dark-1: var(--vt-c-white);
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}
/* semantic color variables for this project */
:root {
--color-background: var(--vt-c-white);
--color-background-soft: var(--vt-c-white-soft);
--color-background-mute: var(--vt-c-white-mute);
--color-border: var(--vt-c-divider-light-2);
--color-border-hover: var(--vt-c-divider-light-1);
--color-heading: var(--vt-c-text-light-1);
--color-text: var(--vt-c-text-light-1);
--section-gap: 160px;
}
@media (prefers-color-scheme: dark) {
:root {
--color-background: var(--vt-c-black);
--color-background-soft: var(--vt-c-black-soft);
--color-background-mute: var(--vt-c-black-mute);
--color-border: var(--vt-c-divider-dark-2);
--color-border-hover: var(--vt-c-divider-dark-1);
--color-heading: var(--vt-c-text-dark-1);
--color-text: var(--vt-c-text-dark-2);
}
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
font-weight: normal;
}
body {
min-height: 100vh;
color: var(--color-text);
background: var(--color-background);
transition: color 0.5s, background-color 0.5s;
line-height: 1.6;
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 15px;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>

Before

Width:  |  Height:  |  Size: 276 B

View File

@ -9,16 +9,21 @@ const handleSelect = (key: string, keyPath: string[]) => {
<template>
<el-menu :default-active="activeIndex" mode="horizontal" :ellipsis="false" @select="handleSelect" router>
<el-menu-item index="/">排序可视化</el-menu-item>
<el-menu-item index="/">
<el-icon>
<HomeFilled />
</el-icon>
首页
</el-menu-item>
<el-menu-item index="bubble">冒泡排序</el-menu-item>
<el-menu-item index="insertion">插入排序</el-menu-item>
<el-menu-item index="selection">选择排序</el-menu-item>
<el-menu-item index="shell">希尔排序</el-menu-item>
<el-menu-item index="quick">快速排序</el-menu-item>
<el-menu-item index="merge">归并排序</el-menu-item>
<el-menu-item index="heap">堆排序</el-menu-item>
<el-menu-item index="tournament">锦标赛排序</el-menu-item>
<el-menu-item index="radix">基数排序</el-menu-item>
<el-menu-item index="shell" disabled>希尔排序</el-menu-item>
<el-menu-item index="quick" disabled>快速排序</el-menu-item>
<el-menu-item index="merge" disabled>归并排序</el-menu-item>
<el-menu-item index="heap" disabled>堆排序</el-menu-item>
<el-menu-item index="tournament" disabled>锦标赛排序</el-menu-item>
<el-menu-item index="radix" disabled>基数排序</el-menu-item>
<div class="flex-grow" />
<el-menu-item>
<el-link href="https://www.luthics.com/">
@ -28,6 +33,4 @@ const handleSelect = (key: string, keyPath: string[]) => {
</el-menu>
</template>
<style scoped>
</style>
<style scoped></style>

View File

@ -4,9 +4,15 @@
<template>
<el-row class="ct">
<el-text class="bt" z-index="999" style="position: absolute;">
<el-text class="bt">
请从导航栏中选择你想查看的项目
</el-text>
<el-text class="bt">
目前仅简单排序可用
</el-text>
<el-text class="dt">
Created by Luthics
</el-text>
</el-row>
</template>
@ -16,10 +22,16 @@
color: black;
}
.dt {
font-size: 2rem;
color: black;
}
.ct {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: rgba(255, 255, 255, 0.5);
/* border: 1px solid #B3C0D1; */
border-radius: 10px;