mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
added background to make the welcome text more visible
This commit is contained in:
@@ -1,3 +1,43 @@
|
|||||||
|
@keyframes background-pan {
|
||||||
|
from {
|
||||||
|
background-position: 0% center;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
background-position: -200% center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes scale {
|
||||||
|
from,
|
||||||
|
to {
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes rotate {
|
||||||
|
from {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.magic-text {
|
||||||
|
animation: background-pan 3s linear infinite;
|
||||||
|
background: linear-gradient(to right, #fff, #ffc920, #fff, #fff);
|
||||||
|
background-size: 200%;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.RightBar {
|
.RightBar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
transform: translate(0%, 0%);
|
transform: translate(0%, 0%);
|
||||||
@@ -61,56 +101,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.WelcomeMessage {
|
.WelcomeMessage {
|
||||||
margin-left: 10px;
|
|
||||||
color: white;
|
color: white;
|
||||||
writing-mode: vertical-rl;
|
writing-mode: vertical-rl;
|
||||||
text-orientation: upright;
|
text-orientation: upright;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
padding: 10px 0 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes background-pan {
|
.WelcomeDiv {
|
||||||
from {
|
background-color: rgba(0, 0, 0, 0.585);
|
||||||
background-position: 0% center;
|
text-align: center;
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
background-position: -200% center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes scale {
|
|
||||||
from,
|
|
||||||
to {
|
|
||||||
transform: scale(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
50% {
|
|
||||||
transform: scale(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes rotate {
|
|
||||||
from {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.magic-text {
|
|
||||||
animation: background-pan 3s linear infinite;
|
|
||||||
background: linear-gradient(
|
|
||||||
to right,
|
|
||||||
#fff,
|
|
||||||
#ffc920,
|
|
||||||
#fff,
|
|
||||||
#fff
|
|
||||||
);
|
|
||||||
background-size: 200%;
|
|
||||||
-webkit-background-clip: text;
|
|
||||||
-webkit-text-fill-color: transparent;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
@@ -25,7 +25,10 @@ export default class RightBar extends React.Component {
|
|||||||
<img src={Github} />
|
<img src={Github} />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span className='WelcomeMessage magic-text'>Welcome to Cultivation!</span>
|
<div className="WelcomeDiv">
|
||||||
|
<span className='WelcomeMessage magic-text'>Welcome to Cultivation!</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user