Skip to content

Commit 05c3290

Browse files
committed
home page updated
1 parent e19f1ec commit 05c3290

File tree

2 files changed

+188
-23
lines changed

2 files changed

+188
-23
lines changed

docs/overrides/home.html

Lines changed: 186 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
{% extends "main.html" %}
1+
<!-- Custom HTML site displayed as the Home chapter -->
22

3-
<!-- Render hero under tabs -->
3+
{% extends "main.html" %}
44
{% block tabs %}
5-
{{ super() }}
5+
{{ super() }}
6+
<style>
67

7-
<!-- Additional styles for landing page -->
8-
<style>
8+
.md-main {
9+
flex-grow: 0
10+
}
11+
12+
.md-main__inner {
13+
display: flex;
14+
height: 100%;
15+
}
916

1017
.tx-container {
1118
padding-top: .0rem;
12-
background: linear-gradient(#58598a, #8a8bad);
19+
background: linear-gradient(to bottom, var(--md-primary-fg-color), rgb(122, 86, 194) 99%,#fff 99%)
1320
}
1421

1522
.tx-hero {
@@ -30,8 +37,8 @@
3037
}
3138

3239
.tx-hero__image{
33-
max-width: auto;
34-
height: auto;
40+
width:17rem;
41+
height:17rem;
3542
order:1;
3643
padding-right: 2.5rem;
3744
}
@@ -54,10 +61,164 @@
5461
color: var(--md-default-bg-color);
5562
border-color: var(--md-accent-fg-color)
5663
}
57-
</style>
5864

59-
<!-- Hero for landing page -->
60-
<section class="tx-container">
65+
.feature-item h2 svg {
66+
height: 30px;
67+
float: left;
68+
margin-right: 10px;
69+
transform: translateY(10%);
70+
}
71+
72+
.top-hr {
73+
margin-top: 42px;
74+
}
75+
76+
.feature-item {
77+
font-family: 'Lato', sans-serif;
78+
font-weight: 300;
79+
box-sizing: border-box;
80+
padding: 0 15px;
81+
word-break: break-word
82+
}
83+
84+
.feature-item h2 {
85+
color: #333;
86+
font-weight: 300;
87+
font-size: 25px;
88+
white-space: nowrap;
89+
overflow: hidden;
90+
text-overflow: ellipsis;
91+
line-height: normal;
92+
margin-top: 20px;
93+
margin-bottom: 10px;
94+
font-family: inherit;
95+
}
96+
97+
.feature-item p {
98+
font-size: 16px;
99+
line-height: 1.8em;
100+
text-rendering: optimizeLegibility;
101+
-webkit-font-smoothing: antialiased;
102+
color: #111;
103+
margin: 0 0 10px;
104+
display: block;
105+
}
106+
107+
@media screen and (max-width:30em) {
108+
.tx-hero h1 {
109+
font-size: 1.4rem
110+
}
111+
}
112+
113+
@media screen and (min-width:60em) {
114+
.md-sidebar--secondary {
115+
display: none
116+
}
117+
118+
.tx-hero {
119+
display: flex;
120+
align-items: center;
121+
justify-content: center;
122+
}
123+
124+
.tx-hero__content {
125+
max-width: 22rem;
126+
margin-top: 3.5rem;
127+
margin-bottom: 3.5rem;
128+
margin-left: 1.0rem;
129+
margin-right: 4.0rem;
130+
align-items: center;
131+
}
132+
}
133+
134+
@media screen and (min-width:76.25em) {
135+
.md-sidebar--primary {
136+
display: none
137+
}
138+
139+
.top-hr {
140+
width: 100%;
141+
display: flex;
142+
max-width: 61rem;
143+
margin-right: auto;
144+
margin-left: auto;
145+
padding: 0 .2rem;
146+
}
147+
148+
.bottom-hr {
149+
margin-top: 10px;
150+
width: 100%;
151+
display: flex;
152+
max-width: 61rem;
153+
margin-right: auto;
154+
margin-left: auto;
155+
padding: 0 .2rem;
156+
}
157+
158+
.feature-item {
159+
flex: 1;
160+
min-width: 0;
161+
}
162+
163+
.feature-item:hover {
164+
background-color: #526cfe47;
165+
border-radius: 3px;
166+
}
167+
}
168+
169+
.hr {
170+
border-bottom: 1px solid #eee;
171+
width: 100%;
172+
margin: 20px 0;
173+
}
174+
175+
.text-center {
176+
text-align: center;
177+
padding-right: 15px;
178+
padding-left: 15px;
179+
margin-right: auto;
180+
margin-left: auto;
181+
margin-top: 15px;
182+
font-family: 'Lato', sans-serif;
183+
font-size: 23px;
184+
font-weight: 300;
185+
padding-bottom: 10px;
186+
}
187+
188+
.logos {
189+
display: flex;
190+
align-items: center;
191+
justify-content: center;
192+
flex-flow: row wrap;
193+
margin: 0 auto;
194+
}
195+
196+
.logos img {
197+
flex: 1 1 auto;
198+
padding: 25px;
199+
max-height: 130px;
200+
vertical-align: middle;
201+
}
202+
203+
.hr-logos {
204+
margin-top: 0;
205+
margin-bottom: 30px;
206+
}
207+
208+
.md-footer-meta__inner {
209+
display: flex;
210+
flex-wrap: wrap;
211+
justify-content: space-between;
212+
margin-top: 1.0rem;
213+
}
214+
215+
.md-footer-social {
216+
padding-top: 20px;
217+
}
218+
</style>
219+
220+
<!-- Main site Entry button descriptions -->
221+
<section class="tx-container">
61222
<div class="md-grid md-typeset">
62223
<div class="tx-hero">
63224
<div class="tx-hero__image">
@@ -69,20 +230,24 @@ <h1> RetroArch </h1>
69230
<a href="{{ page.next_page.url | url }}" title="{{ page.next_page.title | striptags }}" class="md-button md-button--primary">
70231
Get started
71232
</a>
72-
<a href="https://www.retroarch.com/index.php?page=platforms" class="md-button">
73-
Download
74-
</a>
75-
<a href="https://docs.libretro.com/development/libretro-overview/" class="md-button">
76-
Developer
233+
<a href="https://www.retroarch.com/index.php?page=platforms" title="{{ lang.t('source.link.title') }}" class="md-button">
234+
Download
77235
</a>
78236
</div>
79237
</div>
80238
</div>
81239
</section>
82-
{% endblock %}
83240

84-
<!-- Content -->
85-
{% block content %}{% endblock %}
241+
<!-- Main site box descriptions -->
242+
<div class="top-hr">
243+
<div class="feature-item">
244+
<p>Among other things, it enables you to run classic games on a wide range of computers and consoles through its slick graphical interface. Settings are also unified so configuration is done once and for all.
245+
246+
In addition to this, you are able to run original game discs (CDs) from RetroArch.</p>
247+
</div>
248+
</div>
86249

87-
<!-- Application footer -->
88-
{% block footer %}{% endblock %}
250+
251+
{% endblock %}
252+
{% block content %}{% endblock %}
253+
{% block footer %}{% endblock %}

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@ markdown_extensions:
519519
mode: accept
520520
- pymdownx.details
521521
- pymdownx.emoji:
522-
emoji_index: !!python/name:materialx.emoji.twemoji
523-
emoji_generator: !!python/name:materialx.emoji.to_svg
522+
emoji_index: !!python/name:material.extensions.emoji.twemoji
523+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
524524
- pymdownx.highlight
525525
# linenums_style: pymdownx-inline
526526
- pymdownx.inlinehilite

0 commit comments

Comments
 (0)