Skip to content

Commit

Permalink
调整页面样式
Browse files Browse the repository at this point in the history
  • Loading branch information
hempflower committed Mar 20, 2024
1 parent c0fe3a6 commit ff2e377
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion front-end/assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ body {
.page-enter-from,
.page-leave-to {
opacity: 0;
filter: blur(1rem);
}
2 changes: 1 addition & 1 deletion front-end/components/RSAppBar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="h-14">
<div class="h-14 backdrop-blur-2xl">
<div class="flex justify-between items-center h-full px-4">
<div>
<NuxtLink
Expand Down
2 changes: 1 addition & 1 deletion front-end/components/RSSideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const menuList = ref<
</script>

<template>
<div class="h-full w-20 flex flex-col items-center">
<div class="h-full w-20 flex flex-col items-center backdrop-blur-2xl">
<div class="flex-1 flex flex-col items-center gap-2 mt-4">
<RSSideBarItem
v-for="item in menuList"
Expand Down
4 changes: 2 additions & 2 deletions front-end/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const background = ref(defaultLauncherBackground);

<template>
<div
class="relative bg-cover bg-center"
class="bg-cover bg-center h-screen"
:style="{
backgroundImage: `url(${background})`,
}"
>
<div
class="flex h-screen flex-col bg-bar-light dark:bg-bar-dark bg-opacity-50 dark:bg-opacity-50 backdrop-blur-2xl transition-colors duration-100"
class="flex h-screen z-20 flex-col bg-bar-light dark:bg-bar-dark bg-opacity-50 dark:bg-opacity-50 transition-colors duration-200 ease-in-out"
>
<RSAppBar />
<div class="flex flex-1">
Expand Down
9 changes: 2 additions & 7 deletions front-end/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ useHead({

<template>
<div
class="transition-all duration-300 ease-in-out h-full w-full relative bg-cover bg-fixed bg-center"
class="h-full w-full relative bg-cover bg-fixed bg-center origin-center"
:style="{
backgroundImage: `url(${background})`,
}"
>
<!--Launcher-->
<div class="absolute bottom-4 left-1/2">
111
</div>
</div>
></div>
</template>
3 changes: 3 additions & 0 deletions front-end/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export default {
"page-light": "rgb(239 239 239)",
"page-dark": "rgb(60 60 60)",
},
backgroundImage: {
growing: "linear-gradient(135deg, #00dc82, #36e4da, #0047e1)",
},
textShadow: {
sm: "0 1px 2px var(--tw-shadow-color)",
DEFAULT: "0 2px 4px var(--tw-shadow-color)",
Expand Down

0 comments on commit ff2e377

Please sign in to comment.