mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 03:40:45 +08:00
Docs/better homepage (#1591)
* Better carousel width * Learn more button * Learn more button * Fix button/width * Update introduction * Fix outline colour * remove custom css * remove default css
This commit is contained in:
parent
1247c8aa28
commit
14a4a05fc5
@ -23,6 +23,9 @@
|
|||||||
"homepage.ButtonText": {
|
"homepage.ButtonText": {
|
||||||
"message": "Get Started"
|
"message": "Get Started"
|
||||||
},
|
},
|
||||||
|
"homepage.LearnMoreButtonText": {
|
||||||
|
"message": "Learn More"
|
||||||
|
},
|
||||||
"theme.ErrorPageContent.title": {
|
"theme.ErrorPageContent.title": {
|
||||||
"message": "This page crashed.",
|
"message": "This page crashed.",
|
||||||
"description": "The title of the fallback page when the page crashed"
|
"description": "The title of the fallback page when the page crashed"
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
"homepage.ButtonText": {
|
"homepage.ButtonText": {
|
||||||
"message": "快速入门"
|
"message": "快速入门"
|
||||||
},
|
},
|
||||||
|
"homepage.LearnMoreButtonText": {
|
||||||
|
"message": "学到更多"
|
||||||
|
},
|
||||||
"theme.ErrorPageContent.title": {
|
"theme.ErrorPageContent.title": {
|
||||||
"message": "页面已崩溃。",
|
"message": "页面已崩溃。",
|
||||||
"description": "The title of the fallback page when the page crashed"
|
"description": "The title of the fallback page when the page crashed"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
filter: alpha(opacity=40);
|
filter: alpha(opacity=40);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
top: 20px;
|
top: 0px;
|
||||||
background: none;
|
background: none;
|
||||||
border: 0;
|
border: 0;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
@ -303,9 +303,9 @@
|
|||||||
|
|
||||||
@media (min-width: 960px) {
|
@media (min-width: 960px) {
|
||||||
.carousel-root {
|
.carousel-root {
|
||||||
padding: 15px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
.carousel .slider-wrapper {
|
.carousel .slider-wrapper {
|
||||||
width: 50%;
|
width: 75%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,19 +4,6 @@
|
|||||||
* work well for content-centric websites.
|
* work well for content-centric websites.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* You can override the default Infima variables here. */
|
|
||||||
:root {
|
|
||||||
--ifm-color-primary: #25c2a0;
|
|
||||||
--ifm-color-primary-dark: rgb(33, 175, 144);
|
|
||||||
--ifm-color-primary-darker: rgb(31, 165, 136);
|
|
||||||
--ifm-color-primary-darkest: rgb(26, 136, 112);
|
|
||||||
--ifm-color-primary-light: rgb(70, 203, 174);
|
|
||||||
--ifm-color-primary-lighter: rgb(102, 212, 189);
|
|
||||||
--ifm-color-primary-lightest: rgb(146, 224, 208);
|
|
||||||
--ifm-code-font-size: 95%;
|
|
||||||
--ifm-container-width-xl: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.docusaurus-highlight-code-line {
|
.docusaurus-highlight-code-line {
|
||||||
background-color: rgba(0, 0, 0, 0.1);
|
background-color: rgba(0, 0, 0, 0.1);
|
||||||
display: block;
|
display: block;
|
||||||
@ -39,7 +26,8 @@ html[data-theme="dark"] .docusaurus-highlight-code-line {
|
|||||||
--ifm-color-primary-lightest: rgb(146, 224, 208);
|
--ifm-color-primary-lightest: rgb(146, 224, 208);
|
||||||
--ifm-code-font-size: 95%;
|
--ifm-code-font-size: 95%;
|
||||||
--ifm-button-color: white;
|
--ifm-button-color: white;
|
||||||
--ifm-container-width-xl: 100%;
|
--ifm-container-width-xl: 50%;
|
||||||
|
--ifm-font-color-base-inverse: #df0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.docusaurus-highlight-code-line {
|
.docusaurus-highlight-code-line {
|
||||||
@ -55,6 +43,23 @@ html[data-theme="dark"] .docusaurus-highlight-code-line {
|
|||||||
|
|
||||||
.container {
|
.container {
|
||||||
padding-left: 2%;
|
padding-left: 2%;
|
||||||
|
max-width: 1400px;
|
||||||
|
width: 85%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 576px) {
|
||||||
|
.container {
|
||||||
|
padding-left: 2%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media screen and (max-width: 966px) {
|
||||||
|
.container {
|
||||||
|
padding-left: 2%;
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.prism-code.language-js .token-line::before,
|
.prism-code.language-js .token-line::before,
|
||||||
|
@ -53,19 +53,16 @@ function HomepageHeader() {
|
|||||||
</div>
|
</div>
|
||||||
</Carousel>
|
</Carousel>
|
||||||
|
|
||||||
{/*<ThemedImage*/}
|
|
||||||
{/* alt="Wails Logo"*/}
|
|
||||||
{/* width="30%"*/}
|
|
||||||
{/* sources={{*/}
|
|
||||||
{/* light: useBaseUrl('/img/logo-light.svg'),*/}
|
|
||||||
{/* dark: useBaseUrl('/img/logo-dark.svg'),*/}
|
|
||||||
{/* }}*/}
|
|
||||||
{/*/>*/}
|
|
||||||
|
|
||||||
<p className="hero__subtitle">
|
<p className="hero__subtitle">
|
||||||
{translate({id: "homepage.Tagline"})}
|
{translate({id: "homepage.Tagline"})}
|
||||||
</p>
|
</p>
|
||||||
<div className={styles.buttons}>
|
<div className={styles.buttons}>
|
||||||
|
<Link
|
||||||
|
className="button button--outline button--lg"
|
||||||
|
to="/docs/introduction"
|
||||||
|
>
|
||||||
|
{translate({id: "homepage.LearnMoreButtonText"})}
|
||||||
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
className="button button--primary button--lg"
|
className="button button--primary button--lg"
|
||||||
to="/docs/gettingstarted/installation"
|
to="/docs/gettingstarted/installation"
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
padding-bottom: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 966px) {
|
@media screen and (max-width: 966px) {
|
||||||
@ -17,6 +18,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
|
column-gap: 2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -11,13 +11,13 @@ Wails is a project that enables you to write desktop apps using Go and web techn
|
|||||||
Consider it a lightweight and fast Electron alternative for Go. You can easily build applications with the flexibility
|
Consider it a lightweight and fast Electron alternative for Go. You can easily build applications with the flexibility
|
||||||
and power of Go, combined with a rich, modern frontend.
|
and power of Go, combined with a rich, modern frontend.
|
||||||
|
|
||||||
Wails doesn't hold back with the eye candy either! This is [xbar](https://xbarapp.com) - a desktop application for MacOS
|
Wails doesn't hold back with the eye candy either! This is [varly](https://varlyapp.com) - a desktop application for
|
||||||
written using Wails. It has menus, supports light and dark desktop themes, and the main window uses translucency that
|
MacOS & Windows written using Wails. Not only does it look great, it uses native menus and translucency - everything
|
||||||
gives it that 'frosty' effect of a native app.
|
you'd expect from a modern native app.
|
||||||
|
|
||||||
<p class="text--center">
|
<p class="text--center">
|
||||||
<a href="https://xbarapp.com">
|
<a href="https://varly.app/">
|
||||||
<img src="/img/xbar-app-preview-2.png" width="75%" />
|
<img src="/img/varly.png" width="75%"/>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -11,13 +11,13 @@ Wails is a project that enables you to write desktop apps using Go and web techn
|
|||||||
Consider it a lightweight and fast Electron alternative for Go. You can easily build applications with the flexibility
|
Consider it a lightweight and fast Electron alternative for Go. You can easily build applications with the flexibility
|
||||||
and power of Go, combined with a rich, modern frontend.
|
and power of Go, combined with a rich, modern frontend.
|
||||||
|
|
||||||
Wails doesn't hold back with the eye candy either! This is [xbar](https://xbarapp.com) - a desktop application for MacOS
|
Wails doesn't hold back with the eye candy either! This is [varly](https://varlyapp.com) - a desktop application for
|
||||||
written using Wails. It has menus, supports light and dark desktop themes, and the main window uses translucency that
|
MacOS & Windows written using Wails. Not only does it look great, it uses native menus and translucency - everything
|
||||||
gives it that 'frosty' effect of a native app.
|
you'd expect from a modern native app.
|
||||||
|
|
||||||
<p class="text--center">
|
<p class="text--center">
|
||||||
<a href="https://xbarapp.com">
|
<a href="https://varly.app/">
|
||||||
<img src="/img/xbar-app-preview-2.png" width="75%"/>
|
<img src="/img/varly.png" width="75%"/>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user