mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix 2 column layout, quote and footer
This commit is contained in:
parent
662a406e85
commit
2a3cd47d0c
4 changed files with 71 additions and 96 deletions
|
|
@ -9,3 +9,4 @@
|
|||
height: 200px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,15 +45,38 @@ html[data-theme="light"] .button--secondary {
|
|||
counter-reset: line-number;
|
||||
}
|
||||
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-direction: row-reverse;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
max-width: none;
|
||||
padding: 2rem;
|
||||
max-width: 100rem;
|
||||
}
|
||||
|
||||
.footer .container {
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
max-width: var(--ifm-container-width);
|
||||
padding: 0 var(--ifm-spacing-horizontal);
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
|
||||
.footer .container .row {
|
||||
display: flex;
|
||||
justify-content: space-evenly;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
align-content: stretch;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
|
||||
.col {
|
||||
display: inline-flex;
|
||||
width: 50%;
|
||||
|
|
@ -63,7 +86,7 @@ html[data-theme="light"] .button--secondary {
|
|||
}
|
||||
|
||||
.hero {
|
||||
height: 500px;
|
||||
background-color: var(--ifm-background-color);
|
||||
}
|
||||
|
||||
.carousel-root {
|
||||
|
|
@ -122,70 +145,7 @@ html[data-theme="light"] .button--secondary {
|
|||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
/* Blockquote inspired by https://codepen.io/jupago/pen/GPxqLX.
|
||||
Copyright (c) 2022 by Juan Pablo (https://codepen.io/jupago/pen/GPxqLX)
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
.blockquote-wrapper {
|
||||
display: flex;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.blockquote {
|
||||
position: relative;
|
||||
max-width: 95%;
|
||||
margin: 4rem auto;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.blockquote h1 {
|
||||
position: relative;
|
||||
font-size: 1.5rem;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
margin: 0;
|
||||
border: solid 2px;
|
||||
border-radius: 10px;
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.blockquote h1:after {
|
||||
content: "";
|
||||
color: var(--ifm-heading-color);
|
||||
position: absolute;
|
||||
border: 2px solid var(--ifm-hero-text-color);
|
||||
border-radius: 0 50px 0 0;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
bottom: -62px;
|
||||
left: 50px;
|
||||
border-bottom: none;
|
||||
border-left: none;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.blockquote h1:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 80px;
|
||||
border: 6px solid var(--ifm-hero-background-color);
|
||||
bottom: -3px;
|
||||
left: 50px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
@media all and (min-width: 600px) {
|
||||
.blockquote h1 {
|
||||
font-size: 1.45rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.blockquote {
|
||||
max-width: 75%;
|
||||
}
|
||||
|
||||
.hero__subtitle {
|
||||
margin-top: 2rem;
|
||||
font-size: 1.65rem;
|
||||
|
|
@ -193,33 +153,49 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||
}
|
||||
|
||||
@media all and (min-width: 1024px) {
|
||||
.blockquote h1 {
|
||||
font-size: 1.45rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.blockquote {
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
.hero__subtitle {
|
||||
margin-top: 2rem;
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.blockquote h4 {
|
||||
blockquote {
|
||||
display: block;
|
||||
width: 80%;
|
||||
max-width: 75rem;
|
||||
position: relative;
|
||||
font-size: 1.3rem;
|
||||
font-weight: 400;
|
||||
line-height: 1.2;
|
||||
padding-top: 15px;
|
||||
z-index: 1;
|
||||
margin: 0 0 0 150px;
|
||||
padding-left: 12px;
|
||||
padding: 0 5px;
|
||||
margin: 0 auto 4rem;
|
||||
}
|
||||
|
||||
blockquote:before, blockquote:after {
|
||||
content: "“";
|
||||
font-size: 70px;
|
||||
font-family: "Georgia", Serif;
|
||||
color: var(--ifm-link-color);;
|
||||
position: absolute;
|
||||
left: -30px;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
blockquote:after {
|
||||
content: "”";
|
||||
right: -30px;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
blockquote h4 {
|
||||
position: absolute;
|
||||
right: -30px;
|
||||
padding-right: 1rem;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
|
||||
.blockquote h4:first-letter {
|
||||
margin-left: -12px;
|
||||
cite {
|
||||
float: right;
|
||||
color: black;
|
||||
font-size: 12px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
@ -75,16 +75,14 @@ function HomepageHeader() {
|
|||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div className="blockquote-wrapper">
|
||||
<div className="blockquote">
|
||||
<h1>
|
||||
Wails v2 turns what used to be tedious and painful into a delightfully simple process.
|
||||
Use the tools you know to create cross-platform desktop apps. Everyone wins!
|
||||
</h1>
|
||||
<h4>— <Link to="https://www.brian.dev/about">Brian Ketelsen</Link><br/><em>Co-author
|
||||
of "Go In Action"</em></h4>
|
||||
</div>
|
||||
</div>
|
||||
<blockquote>
|
||||
<h3>
|
||||
Wails v2 turns what used to be tedious and painful into a delightfully simple process.
|
||||
Use the tools you know to create cross-platform desktop apps. Everyone wins!
|
||||
</h3>
|
||||
<h4>— <Link to="https://www.brian.dev/about">Brian Ketelsen</Link><br/><em>Co-author
|
||||
of "Go In Action"</em></h4>
|
||||
</blockquote>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
text-align: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding: 1rem 0 35px;
|
||||
padding: 1rem 0 5px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 966px) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue