Added a name plate for me

This commit is contained in:
BOTAlex 2024-03-31 06:41:56 +02:00
parent 3d54793847
commit 7134f79809
2 changed files with 66 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<script lang="ts">
import { onMount } from "svelte";
import { Vector2 } from "./../Utils/Vector2";
import TopNameTextPlate from "./TopNameTextPlate.svelte";
//import { throttle } from "./../Utils/Throttle";
// Params
@ -85,7 +86,9 @@
<svelte:window on:mousemove={onMouseMoved} />
<div class="StartPageContainer">
<div class="TopOverlay"/>
<div class="TopOverlay">
<TopNameTextPlate/>
</div>
<div
class="StartPageAnimated"
@ -136,6 +139,9 @@
}
.SkillsText{
font-family: 'CozetteVector';
text-align: start;
font-size: x-large;
display: flex;
justify-content: center;
@ -152,6 +158,8 @@
z-index: 1;
width: 100%;
height: 100%;
padding: 0;
}
.rotate45 {

View File

@ -0,0 +1,57 @@
<script lang="ts">
import HorizonalStack from './../../../comps/Utils/HorizonalStack.svelte'
</script>
<div class="container">
<div style="flex-grow: 1;" />
<div class="TextContainer">
<span class="NamePlateText" >
Zhentao Wei
<br/>
<p class="NickNameText">Alex</p>
</span>
</div>
<div style="flex-grow: 2;" />
</div>
<style>
.container{
width: 100%;
height: 100%;
align-items: center;
vertical-align: middle;
display: flex;
}
.TextContainer{
align-items: center;
vertical-align: middle;
display: flex;
/* background-color: aliceblue; */
background-color: rgba(45, 45, 45, 0.645);
padding: 0.75rem 1rem;
border-radius: 20px;
backdrop-filter: blur(1px);
}
.NamePlateText{
/* font-family: 'CozetteVector'; */
text-align: left;
font-size: 5rem;
color: rgb(225, 225, 225);
border-left: 0.5rem solid rgb(88, 198, 82);
padding-left: 1rem;
}
.NickNameText{
font-size: 2rem;
margin: 0;
margin-top: -1rem;
color: rgb(99, 99, 99);
}
</style>