This commit is contained in:
@@ -5,6 +5,8 @@ $themes: (
|
|||||||
background: #141414,
|
background: #141414,
|
||||||
background-line: #202324,
|
background-line: #202324,
|
||||||
background-fore: #10141f,
|
background-fore: #10141f,
|
||||||
|
hover: #21262d,
|
||||||
|
selected: #4a4a4b,
|
||||||
border-color: #819796,
|
border-color: #819796,
|
||||||
border: #202324,
|
border: #202324,
|
||||||
text: #ebede9,
|
text: #ebede9,
|
||||||
@@ -16,6 +18,8 @@ $themes: (
|
|||||||
background-fore: #ffffff,
|
background-fore: #ffffff,
|
||||||
border-color: #e0e0e0,
|
border-color: #e0e0e0,
|
||||||
border: #f0f0f0,
|
border: #f0f0f0,
|
||||||
|
hover: #e9e9e9,
|
||||||
|
selected: #d4d4d4,
|
||||||
text: #1e1e1e,
|
text: #1e1e1e,
|
||||||
container-shadow: #5f6774
|
container-shadow: #5f6774
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,9 +6,12 @@ import SiteOptions from './site_options/SiteOptions.vue';
|
|||||||
<template>
|
<template>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="header-container">
|
||||||
|
<h1>ARANROIG.COM</h1>
|
||||||
|
<HeaderLinks></HeaderLinks>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<HeaderLinks></HeaderLinks>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<SiteOptions></SiteOptions>
|
<SiteOptions></SiteOptions>
|
||||||
@@ -26,15 +29,7 @@ import SiteOptions from './site_options/SiteOptions.vue';
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header-container {
|
.header-container {
|
||||||
position: relative;
|
position:relative;
|
||||||
margin-left: 15px;
|
margin-bottom: 20px;
|
||||||
margin-right: 15px;
|
|
||||||
background: var(--color-background-fore);
|
|
||||||
padding: 8px 12px;
|
|
||||||
font-size: 1em;
|
|
||||||
color: white;
|
|
||||||
border: 1px solid var(--color-border-color);
|
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 8px -8px 0px 0px var(--color-container-shadow);
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -2,16 +2,49 @@
|
|||||||
import HeaderLinks from './HeaderLinks.vue';
|
import HeaderLinks from './HeaderLinks.vue';
|
||||||
import SiteOptions from './site_options/SiteOptions.vue';
|
import SiteOptions from './site_options/SiteOptions.vue';
|
||||||
|
|
||||||
|
import { accent } from '~/composables/theme'
|
||||||
|
const spritePath = computed(() => {
|
||||||
|
return `/sprites/${accent.value}/${accent.value}.gif`
|
||||||
|
});
|
||||||
|
const hasAnimated = useState('title-animated', () => false)
|
||||||
|
|
||||||
|
const fullText = "ARANROIG.COM";
|
||||||
|
const displayedText = ref("");
|
||||||
|
|
||||||
|
let index = 0
|
||||||
|
let interval = null
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
if (hasAnimated.value) {
|
||||||
|
displayedText.value = fullText
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
interval = setInterval(() => {
|
||||||
|
if (index < fullText.length) {
|
||||||
|
displayedText.value += fullText[index]
|
||||||
|
index++
|
||||||
|
} else {
|
||||||
|
clearInterval(interval)
|
||||||
|
hasAnimated.value = true;
|
||||||
|
}
|
||||||
|
}, 35) // velocidad de escritura
|
||||||
|
})
|
||||||
|
|
||||||
|
onBeforeUnmount(() => {
|
||||||
|
clearInterval(interval)
|
||||||
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
|
<h1 class="title">{{ displayedText }}</h1>
|
||||||
|
<HeaderLinks></HeaderLinks>
|
||||||
</div>
|
</div>
|
||||||
<div class="undertable">
|
<div class="undertable">
|
||||||
<h1>ARANROIG.COM</h1>
|
<Sprite :path="spritePath" bottom="-141px" left="-75px" width="1300"></Sprite>
|
||||||
<HeaderLinks></HeaderLinks>
|
|
||||||
<Sprite path="/sprites/katlum/katlum.gif" top="-267px" left="-80px" width="1300"></Sprite>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<SiteOptions></SiteOptions>
|
<SiteOptions></SiteOptions>
|
||||||
@@ -33,10 +66,38 @@ import SiteOptions from './site_options/SiteOptions.vue';
|
|||||||
|
|
||||||
.undertable {
|
.undertable {
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 45px;
|
left: -200px;
|
||||||
margin-top: 300px;
|
margin-top: 450px;
|
||||||
margin-left: -360px;
|
margin-left: -370px;
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.web-links {
|
||||||
|
position: relative;
|
||||||
|
z-index: 200;
|
||||||
|
padding: 10px 20px;
|
||||||
|
margin-bottom: -10px;
|
||||||
|
left: -30px;
|
||||||
|
background-color: var(--color-background);
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title::after {
|
||||||
|
content: "_";
|
||||||
|
animation: blink 3s infinite;
|
||||||
|
animation-timing-function: steps(1, end);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
0%, 50%, 100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
25%, 75% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -50,8 +50,8 @@ const changeLocale = (lang) => {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.menu-button {
|
.menu-button {
|
||||||
background: #161b22;
|
background: var(--color-background-fore);
|
||||||
color: white;
|
color: var(--color-text);
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
border: 1px solid #30363d;
|
border: 1px solid #30363d;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
@@ -69,7 +69,7 @@ z-index: 10;
|
|||||||
top: 50px;
|
top: 50px;
|
||||||
right: 110px;
|
right: 110px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
background: #161b22;
|
background: var(--color-background-fore);
|
||||||
border: 1px solid #30363d;
|
border: 1px solid #30363d;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
@@ -79,14 +79,18 @@ z-index: 10;
|
|||||||
/* Items */
|
/* Items */
|
||||||
.menu-item {
|
.menu-item {
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
color: #c9d1d9;
|
color: var(--color-text);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background: #30363d;
|
background: var(--color-selected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-item:hover {
|
||||||
|
background: var(--color-hover);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -64,10 +64,10 @@ onUnmounted(() => {
|
|||||||
<div class="circle katlum"></div>
|
<div class="circle katlum"></div>
|
||||||
{{ $t('themes.accents.katlum') }}
|
{{ $t('themes.accents.katlum') }}
|
||||||
</div>
|
</div>
|
||||||
<!--
|
|
||||||
<div :class="{'menu-item': true, 'active': accent === 'solus' }" @click="setAccent('solus')">
|
<div :class="{'menu-item': true, 'active': accent === 'solus' }" @click="setAccent('solus')">
|
||||||
<div class="circle solus"></div>Solus
|
<div class="circle solus"></div>Solus
|
||||||
</div>
|
</div>
|
||||||
|
<!--
|
||||||
<div :class="{'menu-item': true, 'active': accent === 'silang' }" @click="setAccent('silang')">
|
<div :class="{'menu-item': true, 'active': accent === 'silang' }" @click="setAccent('silang')">
|
||||||
<div class="circle silang"></div>Silang
|
<div class="circle silang"></div>Silang
|
||||||
</div>
|
</div>
|
||||||
@@ -136,8 +136,8 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
/* Button */
|
/* Button */
|
||||||
.menu-button {
|
.menu-button {
|
||||||
background: #161b22;
|
background: var(--color-background-fore);
|
||||||
color: white;
|
color: var(--color-text);
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
border: 1px solid #30363d;
|
border: 1px solid #30363d;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
@@ -154,7 +154,7 @@ z-index: 10;
|
|||||||
right: 0;
|
right: 0;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
width: 320px;
|
width: 320px;
|
||||||
background: #161b22;
|
background: var(--color-background-fore);
|
||||||
border: 1px solid #30363d;
|
border: 1px solid #30363d;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
@@ -169,7 +169,7 @@ z-index: 10;
|
|||||||
/* Items */
|
/* Items */
|
||||||
.menu-item {
|
.menu-item {
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
color: #c9d1d9;
|
color: var(--color-text);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
@@ -178,13 +178,13 @@ z-index: 10;
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background: #30363d;
|
background: var(--color-selected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-header {
|
.menu-header {
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
color: #c9d1d9;
|
color: var(--color-text);
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -193,7 +193,7 @@ z-index: 10;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu-item:hover {
|
.menu-item:hover {
|
||||||
background: #21262d;
|
background: var(--color-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Divider */
|
/* Divider */
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 156 KiB |
BIN
frontend/public/sprites/solus/solus.gif
Normal file
BIN
frontend/public/sprites/solus/solus.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 316 KiB |
Reference in New Issue
Block a user