New UI improvements + URL interval handler made faster
* Log in button now has mastodon white icon * Home navigation with FediLove icon added
This commit is contained in:
parent
a2233466c2
commit
4e92d49261
|
@ -10,7 +10,7 @@ export default {
|
||||||
<p>
|
<p>
|
||||||
Start your journey to <b>meet your crush</b> !!
|
Start your journey to <b>meet your crush</b> !!
|
||||||
</p>`,
|
</p>`,
|
||||||
logIn: 'Log in using <b>Mastodon</b>',
|
logIn: 'Log in <img id="btn-masto" src="/mastoicon.png"/>',
|
||||||
logInText: 'Log In',
|
logInText: 'Log In',
|
||||||
footer: `
|
footer: `
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
<nav id="main-nav" class="main-nav">
|
<nav id="main-nav" class="main-nav">
|
||||||
<div id="dummy-nav" style="height: 5em;"></div>
|
|
||||||
<ul class="main-nav-ul" style="display: none">
|
<div id="dummy-nav">
|
||||||
|
<div class="banner">
|
||||||
|
<a href="/">
|
||||||
|
<SvgIcon className="not-logged-header-svg" href="#pinafore-logo" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul class="main-nav-ul" style="display: none">
|
||||||
{#each $navPages as navPage (navPage.href)}
|
{#each $navPages as navPage (navPage.href)}
|
||||||
<li class="main-nav-li">
|
<li class="main-nav-li">
|
||||||
<NavItem
|
<NavItem
|
||||||
|
@ -12,7 +20,8 @@
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div id="chat-party-hide" style="display: none !important">
|
<div id="chat-party-hide" style="display: none !important">
|
||||||
<div style="width: 100%;background:#fff">
|
<div style="width: 100%;background:#fff">
|
||||||
<div id="chat-party-global">
|
<div id="chat-party-global">
|
||||||
|
@ -74,6 +83,7 @@
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import NavItem from './NavItem'
|
import NavItem from './NavItem'
|
||||||
|
import SvgIcon from './SvgIcon.html'
|
||||||
import { importNavShortcuts } from '../_utils/asyncModules/importNavShortcuts.js'
|
import { importNavShortcuts } from '../_utils/asyncModules/importNavShortcuts.js'
|
||||||
import { store } from '../_store/store'
|
import { store } from '../_store/store'
|
||||||
|
|
||||||
|
@ -84,7 +94,8 @@
|
||||||
},
|
},
|
||||||
store: () => store,
|
store: () => store,
|
||||||
components: {
|
components: {
|
||||||
NavItem
|
NavItem,
|
||||||
|
SvgIcon
|
||||||
},
|
},
|
||||||
data: () => ({
|
data: () => ({
|
||||||
navShortcuts: undefined
|
navShortcuts: undefined
|
||||||
|
|
|
@ -20,8 +20,8 @@ $nav-a-border: #ffa700;
|
||||||
$nav-a-border-hover: #fff;
|
$nav-a-border-hover: #fff;
|
||||||
$nav-active-bg: lighten($nav-a-selected-bg-hover, 15%);
|
$nav-active-bg: lighten($nav-a-selected-bg-hover, 15%);
|
||||||
$button-primary: #ff1b3b;
|
$button-primary: #ff1b3b;
|
||||||
$button-primary-hover: lighten($button-primary, 25%);
|
$button-primary-hover: lighten($button-primary, 12%);
|
||||||
$button-primary-active: lighten($button-primary, 10%);
|
$button-primary-active: lighten($button-primary, 6%);
|
||||||
$main-border: #ececec;
|
$main-border: #ececec;
|
||||||
$article-bg: #fff;
|
$article-bg: #fff;
|
||||||
$deemphasized-text-color: #939393;
|
$deemphasized-text-color: #939393;
|
||||||
|
@ -38,6 +38,9 @@ $deemphasized-text-color: #939393;
|
||||||
--button-primary-bg: #{$button-primary};
|
--button-primary-bg: #{$button-primary};
|
||||||
--button-primary-bg-hover: #{$button-primary-hover};
|
--button-primary-bg-hover: #{$button-primary-hover};
|
||||||
--button-primary-bg-active: #{$button-primary-active};
|
--button-primary-bg-active: #{$button-primary-active};
|
||||||
|
--scrollbar-face-color: #{$button-primary-active};
|
||||||
|
--scrollbar-face-color-hover: #{$button-primary-active};
|
||||||
|
--scrollbar-face-color-active: #{$button-primary-active};
|
||||||
--main-bg: #{$main-bg-color};
|
--main-bg: #{$main-bg-color};
|
||||||
--nav-bg: #{$nav-bg};
|
--nav-bg: #{$nav-bg};
|
||||||
--nav-text-color: #{$nav-text-color};
|
--nav-text-color: #{$nav-text-color};
|
||||||
|
@ -54,6 +57,8 @@ $deemphasized-text-color: #939393;
|
||||||
--nav-total-height: 3.8em;
|
--nav-total-height: 3.8em;
|
||||||
--main-border: #{$main-border};
|
--main-border: #{$main-border};
|
||||||
--article-bg: #{$article-bg};
|
--article-bg: #{$article-bg};
|
||||||
|
--focus-outline: #{$button-primary-hover};
|
||||||
|
--focus-width: 1px;
|
||||||
--deemphasized-text-color: #{$deemphasized-text-color};
|
--deemphasized-text-color: #{$deemphasized-text-color};
|
||||||
--very-deemphasized-text-color: #{$deemphasized-text-color};
|
--very-deemphasized-text-color: #{$deemphasized-text-color};
|
||||||
}
|
}
|
||||||
|
@ -85,8 +90,35 @@ div.main-content { background: var(--main-bg); }
|
||||||
div.no-script { display: none; }
|
div.no-script { display: none; }
|
||||||
|
|
||||||
body.not-logged-in {
|
body.not-logged-in {
|
||||||
|
nav#main-nav {
|
||||||
|
border-bottom: 4px solid #fbb8b8;
|
||||||
|
|
||||||
|
#dummy-nav {
|
||||||
|
display: flex;
|
||||||
|
height: 4em;
|
||||||
|
|
||||||
|
div.banner {
|
||||||
|
margin: auto 0;
|
||||||
|
padding-left: .5em;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
svg.not-logged-header-svg {
|
||||||
|
width: 2.5em;
|
||||||
|
height: 2.5em;
|
||||||
|
fill: url(#grad1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
div.not-logged-in-home h1 { color: #dd6374 !important; }
|
div.not-logged-in-home h1 { color: #dd6374 !important; }
|
||||||
svg.not-logged-in-home-svg { fill: url(#grad1); }
|
svg.not-logged-in-home-svg { fill: url(#grad1); }
|
||||||
|
a.button.primary > img#btn-masto,
|
||||||
|
button.primary > img#btn-masto {
|
||||||
|
width: 1.2em;
|
||||||
|
margin-left: .2em;
|
||||||
|
position: relative;
|
||||||
|
top: .3em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.not-logged-in.home {
|
body.not-logged-in.home {
|
||||||
|
|
|
@ -602,5 +602,5 @@ setInterval(function() {
|
||||||
__window_url = newurl;
|
__window_url = newurl;
|
||||||
fedilove_customization();
|
fedilove_customization();
|
||||||
}
|
}
|
||||||
}, 250);
|
}, 100);
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue