|
21 | 21 |
|
22 | 22 | <!-- Render hero under tabs --> |
23 | 23 | {% block tabs %} |
24 | | - {{ super() }} |
25 | | - |
26 | | - <!-- Additional styles for landing page --> |
27 | | - <style> |
28 | | - |
29 | | - /* Application header should be static for the landing page */ |
30 | | - .md-header { |
31 | | - position: initial; |
32 | | - } |
33 | | - |
34 | | - .tx-container { |
35 | | - background: linear-gradient(to bottom,var(--md-primary-fg-color),#75164f 99%); |
| 24 | +{{ super() }} |
| 25 | + |
| 26 | +<!-- Additional styles for landing page --> |
| 27 | +<style> |
| 28 | + /* Application header should be static for the landing page */ |
| 29 | + .md-header { |
| 30 | + position: initial; |
| 31 | + } |
| 32 | + |
| 33 | + .tx-container { |
| 34 | + background: linear-gradient(to bottom, var(--md-primary-fg-color), #75164f 99%); |
| 35 | + } |
| 36 | + |
| 37 | + .tx-hero { |
| 38 | + display: flex; |
| 39 | + flex-wrap: wrap; |
| 40 | + } |
| 41 | + |
| 42 | + .tx-hero h2 { |
| 43 | + margin-top: 0; |
| 44 | + color: white; |
| 45 | + font-size: 1.5em; |
| 46 | + } |
| 47 | + |
| 48 | + .tx-hero__image video { |
| 49 | + width: 100%; |
| 50 | + height: auto; |
| 51 | + min-height: 100px; |
| 52 | + box-shadow: 0 20px 20px rgba(0, 0, 0, .2); |
| 53 | + } |
| 54 | + |
| 55 | + .tx-hero__quote { |
| 56 | + margin: 2em 0 !important; |
| 57 | + font-size: .8em !important; |
| 58 | + } |
| 59 | + |
| 60 | + .tx-hero__content { |
| 61 | + flex: 0 0 100%; |
| 62 | + padding: 18px; |
| 63 | + align-self: center; |
| 64 | + } |
| 65 | + |
| 66 | + .tx-hero__tagline { |
| 67 | + margin: 0; |
| 68 | + color: var(--md-footer-fg-color--lighter); |
| 69 | + font-weight: 700; |
| 70 | + } |
| 71 | + |
| 72 | + .tx-hero__warning { |
| 73 | + margin-top: 0.75em !important; |
| 74 | + color: var(--md-footer-fg-color--lighter); |
| 75 | + font-size: small; |
| 76 | + } |
| 77 | + |
| 78 | + .tx-hero__image { |
| 79 | + padding: 2vh 18px; |
| 80 | + } |
| 81 | + |
| 82 | + .tx-hero .md-button { |
| 83 | + padding: .425em 1.6em; |
| 84 | + } |
| 85 | + |
| 86 | + .tx-hero .md-button:hover, |
| 87 | + .tx-hero .md-button:focus { |
| 88 | + color: var(--md-default-fg-color); |
| 89 | + } |
| 90 | + |
| 91 | + .tx-hero .md-button--primary { |
| 92 | + color: var(--md-default-fg-color); |
| 93 | + } |
| 94 | + |
| 95 | + /* Hide table of contents */ |
| 96 | + @media screen and (min-width: 60em) { |
| 97 | + .md-sidebar--secondary { |
| 98 | + display: none; |
36 | 99 | } |
37 | 100 |
|
38 | | - .tx-hero { |
39 | | - display: flex; |
40 | | - flex-wrap: wrap; |
| 101 | + .tx-hero__content { |
| 102 | + flex: 0 0 45%; |
41 | 103 | } |
42 | 104 |
|
43 | | - .tx-hero h1 { |
44 | | - margin-bottom: 12px; |
45 | | - color: white; |
46 | | - font-weight: 800; |
47 | | - font-size: 40px; |
| 105 | + .tx-hero__image { |
| 106 | + order: 1; |
| 107 | + flex: 0 0 55%; |
| 108 | + padding: 100px 18px 50px 50px; |
48 | 109 | } |
49 | 110 |
|
50 | 111 | .tx-hero h2 { |
51 | | - margin-top: 0; |
52 | | - color: white; |
53 | | - font-size: 1.1em; |
54 | | - } |
55 | | - |
56 | | - .tx-hero__image video { |
57 | | - width: 100%; |
58 | | - height: auto; |
59 | | - min-height: 100px; |
60 | | - box-shadow: 0 20px 20px rgba(0, 0, 0, .2); |
| 112 | + margin-bottom: 1em; |
| 113 | + font-size: 2.5em; |
61 | 114 | } |
62 | 115 |
|
63 | 116 | .tx-hero__quote { |
64 | | - margin: 2em 0 !important; |
65 | | - font-size: .8em !important; |
66 | | - } |
67 | | - |
68 | | - .tx-hero__content { |
69 | | - flex: 0 0 100%; |
70 | | - padding: 18px; |
71 | | - } |
72 | | - |
73 | | - .tx-hero__tagline { |
74 | | - margin: 0; |
75 | | - color: var(--md-footer-fg-color--lighter); |
76 | | - font-weight: 700; |
77 | | - } |
78 | | - |
79 | | - .tx-hero__warning { |
80 | | - margin-top: 0.75em !important; |
81 | | - color: var(--md-footer-fg-color--lighter); |
82 | | - font-size: small; |
83 | | - } |
84 | | - |
85 | | - .tx-hero__image { |
86 | | - padding: 2vh 18px; |
| 117 | + margin: 2.5em 0 !important; |
| 118 | + font-size: 1em !important; |
87 | 119 | } |
88 | 120 |
|
89 | 121 | .tx-hero .md-button { |
90 | | - padding: .425em 1.6em; |
91 | | - } |
92 | | - |
93 | | - .tx-hero .md-button:hover, |
94 | | - .tx-hero .md-button:focus { |
95 | | - color: var(--md-default-fg-color); |
| 122 | + padding: .625em 2em; |
96 | 123 | } |
| 124 | + } |
97 | 125 |
|
98 | | - .tx-hero .md-button--primary { |
99 | | - color: var(--md-default-fg-color); |
| 126 | + /* Hide navigation */ |
| 127 | + @media screen and (min-width: 76.25em) { |
| 128 | + .md-sidebar--primary { |
| 129 | + display: none; |
100 | 130 | } |
| 131 | + } |
101 | 132 |
|
102 | | - /* Hide table of contents */ |
103 | | - @media screen and (min-width: 60em) { |
104 | | - .md-sidebar--secondary { |
105 | | - display: none; |
106 | | - } |
107 | | - |
108 | | - .tx-hero__content { |
109 | | - flex: 0 0 45%; |
110 | | - } |
111 | | - |
112 | | - .tx-hero__image { |
113 | | - order: 1; |
114 | | - flex: 0 0 55%; |
115 | | - padding: 100px 18px 50px 50px; |
116 | | - } |
117 | | - |
118 | | - .tx-hero h1 { |
119 | | - margin-top: 70px; |
120 | | - margin-bottom: 1rem; |
121 | | - font-weight: 800; |
122 | | - font-size: 70px; |
123 | | - } |
124 | | - |
125 | | - .tx-hero h2 { |
126 | | - margin-bottom: 1em; |
127 | | - font-size: 1.5625em; |
128 | | - } |
129 | | - |
130 | | - .tx-hero__quote { |
131 | | - margin: 2.5em 0 !important; |
132 | | - font-size: 1em !important; |
133 | | - } |
134 | | - |
135 | | - .tx-hero .md-button { |
136 | | - padding: .625em 2em; |
137 | | - } |
138 | | - } |
| 133 | + = |
| 134 | +</style> |
139 | 135 |
|
140 | | - /* Hide navigation */ |
141 | | - @media screen and (min-width: 76.25em) { |
142 | | - .md-sidebar--primary { |
143 | | - display: none; |
144 | | - } |
145 | | - } |
146 | | -= |
147 | | - </style> |
| 136 | +<!-- Hero for landing page --> |
| 137 | +<section class="tx-container"> |
| 138 | + <div class="md-grid md-typeset"> |
| 139 | + <div class="tx-hero"> |
148 | 140 |
|
149 | | - <!-- Hero for landing page --> |
150 | | - <section class="tx-container"> |
151 | | - <div class="md-grid md-typeset"> |
152 | | - <div class="tx-hero"> |
153 | | - |
154 | | - <!-- Hero image --> |
155 | | - <div class="tx-hero__image"> |
156 | | - <video poster="assets/images/studio.png">Your browser does not support the video tag.</video> |
157 | | - </div> |
| 141 | + <!-- Hero image --> |
| 142 | + <div class="tx-hero__image"> |
| 143 | + <video poster="assets/images/studio.png">Your browser does not support the video tag.</video> |
| 144 | + </div> |
158 | 145 |
|
159 | | - <!-- Hero content --> |
160 | | - <div class="tx-hero__content"> |
161 | | - <h1>Studio</h1> |
162 | | - <p class="tx-hero__tagline">Free - Open Source - Cross Platform</p> |
163 | | - <h2>{{ config.site_description }}</h2> |
164 | | - |
165 | | - <a |
166 | | - href="{{ page.next_page.url | url }}" |
167 | | - title="{{ page.next_page.title | striptags }}" |
168 | | - class="md-button md-button--primary" |
169 | | - > |
170 | | - Download |
171 | | - </a> |
172 | | - <a |
173 | | - href="https://demo.repath.studio/" |
174 | | - target="_blank" |
175 | | - title="{{ lang.t('source.link.title') }}" |
176 | | - class="md-button" |
177 | | - > |
178 | | - Online Demo |
179 | | - </a> |
180 | | - <div class="tx-hero__warning"> |
181 | | - Some features are not available on the online demo. |
182 | | - </div> |
| 146 | + <!-- Hero content --> |
| 147 | + <div class="tx-hero__content"> |
| 148 | + <p class="tx-hero__tagline">Free - Open Source - Cross Platform</p> |
| 149 | + <h2>{{ config.site_description }}</h2> |
| 150 | + |
| 151 | + <a href="{{ page.next_page.url | url }}" title="{{ page.next_page.title | striptags }}" |
| 152 | + class="md-button md-button--primary"> |
| 153 | + Download |
| 154 | + </a> |
| 155 | + <a href="https://demo.repath.studio/" target="_blank" title="{{ lang.t('source.link.title') }}" |
| 156 | + class="md-button"> |
| 157 | + Online Demo |
| 158 | + </a> |
| 159 | + <div class="tx-hero__warning"> |
| 160 | + Some features are not available on the online demo. |
183 | 161 | </div> |
184 | | - |
185 | 162 | </div> |
186 | | - </div> |
187 | | - </section> |
| 163 | + |
| 164 | + </div> |
| 165 | + </div> |
| 166 | +</section> |
188 | 167 |
|
189 | 168 | {% endblock %} |
190 | 169 |
|
191 | 170 | <!-- Content --> |
192 | 171 | {% block content %} |
193 | | - {{ page.content }} |
| 172 | +{{ page.content }} |
194 | 173 | {% endblock %} |
195 | 174 |
|
196 | 175 | <!-- Application footer --> |
|
0 commit comments