ModernUO/docs/overrides/home.html
2020-09-13 15:21:28 -07:00

152 lines
3 KiB
HTML

{% extends "main.html" %}
<!-- Render hero under tabs -->
{% block tabs %}
{{ super() }}
<style>
/* Remove spacing, as we cannot hide it completely */
.md-main__inner {
margin: 0;
}
/* Hide main content for now */
.md-content {
display: none;
}
/* Hide table of contents */
@media screen and (min-width: 60em) {
.md-sidebar--secondary {
display: none;
}
}
/* Hide navigation */
@media screen and (min-width: 76.25em) {
.md-sidebar--primary {
display: none;
}
}
.md-main {
background: var(--md-default-fg-color);
}
.md-typeset h1 {
color: var(--md-default-bg-color--light);
}
.tx-container {
background: var(--md-default-fg-color);
padding-top: 1rem;
}
.tx-hero {
display: flex;
align-content: center;
justify-content: center;
flex-direction: column;
min-height: 400px;
margin: 0 0.8rem;
}
.tx-hero div {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.tx-hero__image {
text-align: center;
}
.tx-hero__content {
text-align: center;
}
.tx-hero__content .md-button {
background-color: transparent;
color: var(--md-primary-bg-color--light);
border-color: var(--md-primary-bg-color--light);
}
.tx-hero__content .md-button--primary {
background-color: var(--muo-gold);
color: var(--md-primary-fg-color);
border-color: transparent;
}
.tx-hero__content .md-button:hover {
border-color: transparent;
color: var(--md-primary-fg-color);
background-color: var(--md-primary-bg-color);
}
.tx-hero__content .md-button--primary:hover {
border-color: var(--md-primary-bg-color--light);
}
/*@media screen and (max-width: 60em)*/
/*{*/
/* .tx-hero__image img {*/
/* max-width: 64px;*/
/* }*/
/*}*/
@media screen and (max-width: 60em)
{
.tx-hero__image img {
max-width: 128px;
}
}
@media screen and (min-width: 60em)
{
.tx-hero__image img {
max-width: 200px;
}
}
</style>
<!-- Hero for landing page -->
<section class="tx-container">
<div class="md-grid md-typeset">
<div class="tx-hero">
<div class="tx-hero__image">
<img
src="/branding/logo.svg"
alt=""
draggable="false"
>
</div>
<!-- Hero content -->
<div class="tx-hero__content">
<h1>Ultima Online Server Emulator for the modern era!</h1>
<a
href="{{ page.next_page.url | url }}"
title="{{ page.next_page.title | striptags }}"
class="md-button md-button--primary"
>
Get started
</a>
<a
href="{{ config.repo_url }}"
title="{{ lang.t('source.link.title') }}"
class="md-button"
>
Go to GitHub
</a>
</div>
</div>
</div>
</section>
{% endblock %}
<!-- Content -->
{% block content %}{% endblock %}
<!-- Application footer -->
{% block footer %}
{% include "partials/footer.html" %}
{% endblock %}