Add link to account dashboard to all pages

This commit is contained in:
Râu Cao 2024-03-29 11:24:03 +04:00
parent 4b52a12943
commit f175f2d0e3
Signed by: raucao
GPG Key ID: 37036C356E56CC51
11 changed files with 105 additions and 24 deletions

View File

@ -35,7 +35,7 @@
links: links:
- section: Links - section: Links
items: items:
- title: Account dashboard (beta version) - title: Account dashboard
url: https://accounts.kosmos.org url: https://accounts.kosmos.org
- title: Services - title: Services
url: "/services" url: "/services"

View File

@ -57,8 +57,9 @@ header h1 {
} }
header h2 { header h2 {
font-weight: 300; font-size: 1rem;
font-size: 1.4rem; font-weight: normal;
color: #888888;
} }
main { main {
@ -72,6 +73,33 @@ main p {
margin-bottom: 1em; margin-bottom: 1em;
} }
footer {
height: 100%;
max-width: 90%;
margin: 7vh auto;
text-align: center;
}
footer a {
font-size: 0.9rem;
font-weight: bold;
display: inline-block;
background-color: #444;
color: white;
text-decoration: none;
padding: 0.5em 2em;
border-radius: 0.5em;
border: 3px solid white;
}
footer a:hover {
background-color: #555;
}
footer a:active {
border: 3px solid #ccc;
}
.hidden { .hidden {
display: none !important; display: none !important;
} }
@ -82,10 +110,15 @@ main p {
} }
header h1 { header h1 {
font-size: 8vw; font-size: 10vw;
margin-bottom: 1rem;
}
header h2 {
font-weight: 300;
font-size: 1rem;
} }
footer { footer {
margin-bottom: 4rem;
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
<!doctype html><html lang=en><head><meta name=generator content="Hugo 0.121.2"><meta charset=utf-8><title>Kosmos</title> <!doctype html><html lang=en><head><meta name=generator content="Hugo 0.123.1"><meta charset=utf-8><title>Kosmos</title>
<meta content="width=device-width,minimum-scale=1,maximum-scale=1" name=viewport><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link href=/css/style.css rel=stylesheet></head><body><div id=wrapper><header><h1>Kosmos</h1><h2>Let a million servers bloom</h2></header><main><p>We are an open co-operative of people, who are developing a free, <meta content='width=device-width,minimum-scale=1,maximum-scale=1' name=viewport><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link href=/css/style.css rel=stylesheet></head><body><div id=wrapper><header><h1>Kosmos</h1><h2>Let a million servers bloom</h2></header><main><p>We are an open co-operative of people, who are developing a free,
open-source, and user-centric alternative to centralized group chat open-source, and user-centric alternative to centralized group chat
platforms, based on widely used protocols and standards. platforms, based on widely used protocols and standards.
<a href=/projects>Learn more about our projects</a>.</p><p>We also offer <a href=/services>hosted services</a> for a variety of <a href=/projects>Learn more about our projects</a>.</p><p>We also offer <a href=/services>hosted services</a> for a variety of
@ -12,4 +12,4 @@ For announcements and other news, you can follow us on the
<a href=https://kosmos.social/@kosmos rel=me>fediverse</a> <a href=https://kosmos.social/@kosmos rel=me>fediverse</a>
(recommended) or on (recommended) or on
<a href=https://twitter.com/KosmosHQ rel=me>Twitter</a>.</p><p class=hidden>For status and incident updates regarding Kosmos infrastructure, please follow <a href=https://twitter.com/KosmosHQ rel=me>Twitter</a>.</p><p class=hidden>For status and incident updates regarding Kosmos infrastructure, please follow
<a href=https://kosmos.social/@ops rel=me>ops@kosmos.social</a>.</p></main><footer></footer></div></body></html> <a href=https://kosmos.social/@ops rel=me>ops@kosmos.social</a>.</p></main><footer><p><a href=https://accounts.kosmos.org class="block font-bold"><span>Log in to your account</span></a></p></footer></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,6 +41,11 @@
</p> </p>
</main> </main>
<footer> <footer>
<p>
<a href="https://accounts.kosmos.org" class="block font-bold">
<span class="">Log in to your account</span>
</a>
</p>
</footer> </footer>
</div> </div>
</body> </body>

View File

@ -22,6 +22,11 @@
</nav> </nav>
<nav class="hidden md:block md:grow-0 md:shrink-0"> <nav class="hidden md:block md:grow-0 md:shrink-0">
<ul class="ml-16 flex items-baseline space-x-6"> <ul class="ml-16 flex items-baseline space-x-6">
<li>
<a href="https://accounts.kosmos.org" class="font-bold">
<span class="px-2">Log in</span>
</a>
</li>
<li> <li>
<a href="https://kosmos.social/@kosmos" target="_blank" title="Follow us on the Fediverse"> <a href="https://kosmos.social/@kosmos" target="_blank" title="Follow us on the Fediverse">
<svg class="inline-block align-top mr-1 w-auto h-5" viewBox="0 0 216.4144 232.00976" version="1.1"><path d="M107.86523 0C78.203984.2425 49.672422 3.4535937 33.044922 11.089844c0 0-32.97656262 14.752031-32.97656262 65.082031 0 11.525-.224375 25.306175.140625 39.919925 1.19750002 49.22 9.02375002 97.72843 54.53124962 109.77343 20.9825 5.55375 38.99711 6.71547 53.505856 5.91797 26.31125-1.45875 41.08203-9.38867 41.08203-9.38867l-.86914-19.08984s-18.80171 5.92758-39.91796 5.20508c-20.921254-.7175-43.006879-2.25516-46.390629-27.94141-.3125-2.25625-.46875-4.66938-.46875-7.20313 0 0 20.536953 5.0204 46.564449 6.21289 15.915.73001 30.8393-.93343 45.99805-2.74218 29.07-3.47125 54.38125-21.3818 57.5625-37.74805 5.0125-25.78125 4.59961-62.916015 4.59961-62.916015 0-50.33-32.97461-65.082031-32.97461-65.082031C166.80539 3.4535938 138.255.2425 108.59375 0h-.72852zM74.296875 39.326172c12.355 0 21.710234 4.749297 27.896485 14.248047l6.01367 10.080078 6.01563-10.080078c6.185-9.49875 15.54023-14.248047 27.89648-14.248047 10.6775 0 19.28156 3.753672 25.85156 11.076172 6.36875 7.3225 9.53907 17.218828 9.53907 29.673828v60.941408h-24.14454V81.869141c0-12.46875-5.24453-18.798829-15.73828-18.798829-11.6025 0-17.41797 7.508516-17.41797 22.353516v32.375002H96.207031V85.423828c0-14.845-5.815468-22.353515-17.417969-22.353516-10.49375 0-15.740234 6.330079-15.740234 18.798829v59.148439H38.904297V80.076172c0-12.455 3.171016-22.351328 9.541015-29.673828 6.568751-7.3225 15.172813-11.076172 25.851563-11.076172z" fill="#000"/></svg></svg> <svg class="inline-block align-top mr-1 w-auto h-5" viewBox="0 0 216.4144 232.00976" version="1.1"><path d="M107.86523 0C78.203984.2425 49.672422 3.4535937 33.044922 11.089844c0 0-32.97656262 14.752031-32.97656262 65.082031 0 11.525-.224375 25.306175.140625 39.919925 1.19750002 49.22 9.02375002 97.72843 54.53124962 109.77343 20.9825 5.55375 38.99711 6.71547 53.505856 5.91797 26.31125-1.45875 41.08203-9.38867 41.08203-9.38867l-.86914-19.08984s-18.80171 5.92758-39.91796 5.20508c-20.921254-.7175-43.006879-2.25516-46.390629-27.94141-.3125-2.25625-.46875-4.66938-.46875-7.20313 0 0 20.536953 5.0204 46.564449 6.21289 15.915.73001 30.8393-.93343 45.99805-2.74218 29.07-3.47125 54.38125-21.3818 57.5625-37.74805 5.0125-25.78125 4.59961-62.916015 4.59961-62.916015 0-50.33-32.97461-65.082031-32.97461-65.082031C166.80539 3.4535938 138.255.2425 108.59375 0h-.72852zM74.296875 39.326172c12.355 0 21.710234 4.749297 27.896485 14.248047l6.01367 10.080078 6.01563-10.080078c6.185-9.49875 15.54023-14.248047 27.89648-14.248047 10.6775 0 19.28156 3.753672 25.85156 11.076172 6.36875 7.3225 9.53907 17.218828 9.53907 29.673828v60.941408h-24.14454V81.869141c0-12.46875-5.24453-18.798829-15.73828-18.798829-11.6025 0-17.41797 7.508516-17.41797 22.353516v32.375002H96.207031V85.423828c0-14.845-5.815468-22.353515-17.417969-22.353516-10.49375 0-15.740234 6.330079-15.740234 18.798829v59.148439H38.904297V80.076172c0-12.455 3.171016-22.351328 9.541015-29.673828 6.568751-7.3225 15.172813-11.076172 25.851563-11.076172z" fill="#000"/></svg></svg>
@ -76,6 +81,11 @@
</a> </a>
</li> </li>
{{ end }} {{ end }}
<li>
<a href="https://accounts.kosmos.org" class="block font-bold">
<span class="">Log in</span>
</a>
</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -57,8 +57,9 @@ header h1 {
} }
header h2 { header h2 {
font-weight: 300; font-size: 1rem;
font-size: 1.4rem; font-weight: normal;
color: #888888;
} }
main { main {
@ -72,6 +73,33 @@ main p {
margin-bottom: 1em; margin-bottom: 1em;
} }
footer {
height: 100%;
max-width: 90%;
margin: 7vh auto;
text-align: center;
}
footer a {
font-size: 0.9rem;
font-weight: bold;
display: inline-block;
background-color: #444;
color: white;
text-decoration: none;
padding: 0.5em 2em;
border-radius: 0.5em;
border: 3px solid white;
}
footer a:hover {
background-color: #555;
}
footer a:active {
border: 3px solid #ccc;
}
.hidden { .hidden {
display: none !important; display: none !important;
} }
@ -82,10 +110,15 @@ main p {
} }
header h1 { header h1 {
font-size: 8vw; font-size: 10vw;
margin-bottom: 1rem;
}
header h2 {
font-weight: 300;
font-size: 1rem;
} }
footer { footer {
margin-bottom: 4rem;
} }
} }