Skip to content

Commit

Permalink
1.标题样式修改
Browse files Browse the repository at this point in the history
2.回复复制
  • Loading branch information
pwh-pwh committed Jul 25, 2024
1 parent 44b905b commit 25dfcb0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ onMounted(() => {
<div>
<i @click="isShrink = true" class="pi pi-arrow-down-left-and-arrow-up-right-to-center cursor-pointer text-gray-800" style="font-size: 1.5rem"></i>
</div>
<div class="textRedtoBlue text-3xl font-bold cursor-move select-none">
<div class="cool-title text-3xl font-bold cursor-move select-none">
Ai-Gui
</div>
<div>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/MsgItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const avatarImg = computed(() => {
<p class="text-red-800 text-left pl-2 text-xl white-space-normal">
{{ message.content }}
</p>
<i v-if="message.userType === 'assistant'" v-tooltip="'copy text'" class="pi pi-copy text-gray-800 fixed right-0 mr-5" style="font-size: 1rem"></i>
</div>
</div>
</template>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {createApp} from 'vue'
import App from './App.vue'
import PrimeVue from 'primevue/config'
import Aura from '@primevue/themes/aura'
import Tooltip from "primevue/tooltip";
import 'primeflex/primeflex.css';
import './style.css';
import 'primeicons/primeicons.css'
Expand All @@ -13,4 +14,5 @@ app.use(PrimeVue, {
preset: Aura
}
})
app.directive('tooltip', Tooltip)
app.mount('#app')
26 changes: 26 additions & 0 deletions frontend/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,30 @@ body {

.glass {
backdrop-filter: blur(20px);
}

.cool-title {
font-family: 'Arial', sans-serif;
font-size: 4em;
color: #fff;
text-transform: uppercase;
background: linear-gradient(90deg, #ff8a00, #e52e71, #007adf, #00ecbc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: gradient 3s infinite;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.7);
position: relative;
}

.cool-title::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: inherit;
filter: blur(20px);
z-index: -1;
opacity: 0.5;
}

0 comments on commit 25dfcb0

Please sign in to comment.