forked from DioxusLabs/docsite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
css tweaks, updated docs, better landing page, and more (DioxusLabs#224)
* feat: tweaks for 05 release * tweak css * fix images * Clean up more things in the docs, more dark mode
- Loading branch information
1 parent
709b257
commit e5293b1
Showing
25 changed files
with
2,059 additions
and
987 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
|
||
> This guide assumes you read the [Web](wasm.md) getting started guide and installed the [Dioxus-cli](https://github.com/DioxusLabs/dioxus/tree/master/packages/cli) | ||
# Getting Started | ||
|
||
## Setup | ||
|
||
Before we get started, make sure you have Rust and Cargo installed. Then create a new project: | ||
|
@@ -19,7 +17,7 @@ Add `dioxus` and `dioxus-fullstack` as dependencies: | |
cargo add [email protected] --features fullstack | ||
``` | ||
|
||
Next, set up features for the server (`server`) and the client (`web`). These features are what allow Dioxus to separate the client and backend from each other. | ||
Next, set up features for the server (`server`) and the client (`web`). These features are what allow Dioxus to separate the client and backend from each other. | ||
|
||
```toml | ||
[features] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,10 @@ | |
<link rel="icon shortcut" type="image/png" href="/{base_path}/static/favicon.png" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@100;400;600&display=swap" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=Arimo:wght@100;400;600&display=swap" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Lexend:wght@100;400&family=M+PLUS+1:[email protected]&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet"> | ||
|
||
|
||
<link rel="stylesheet" type="text/css" href="/{base_path}/static/prism/prism.css" /> | ||
|
||
|
||
|
@@ -64,70 +67,10 @@ | |
|
||
<!-- style stuff --> | ||
<!-- <link data-trunk rel="css" href="/tailwind.css" /> --> | ||
<link rel="stylesheet" href="/{base_path}/tailwind.css" /> | ||
<!-- <script src="https://cdn.tailwindcss.com"></script> --> | ||
<!-- <script> | ||
tailwind.config = { | ||
theme: { | ||
extend: { | ||
colors: { | ||
ghmetal: "#24292f", | ||
ghdarkmetal: "#161b22", | ||
ideblack: "#0e1116", | ||
// ideblack: "#0a0a0a", | ||
// ideblack: "#0E1116", | ||
}, | ||
fontFamily: { | ||
sans: ["Lexend", "sans-serif"], | ||
// sans: ["Inter var", "sans-serif"], | ||
}, | ||
boxShadow: { | ||
"3xl": "0 35px 60px -1ww5px rgba(0, 0, 0, 0.5)", | ||
cutesy: "0px 0px 40px -5px rgba(255, 255, 255, 0.2)", | ||
// cutesy: "0px 0px 30px -10px white", | ||
// cutesy: "0px 0px 30px -10px red", | ||
pop: "0px 0px 30px -10px rgba(0, 0, 0, 0.5)", | ||
}, | ||
}, | ||
}, | ||
// "3xl": "0 35px 60px -1ww5px rgba(0, 0, 0, 0.5)", | ||
// theme: { | ||
// extend: { | ||
// colors: { | ||
// clifford: "#da373d", | ||
// }, | ||
// }, | ||
// }, | ||
}; | ||
</script> --> | ||
<!-- <link rel="stylesheet" href="/{base_path}/tailwind.css" /> | ||
<link rel="stylesheet" href="/{base_path}/main.css" /> | ||
<link rel="stylesheet" href="/{base_path}/githubmarkdown.css" /> --> | ||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" /> | ||
|
||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.1.0/github-markdown.min.css" | ||
/> | ||
|
||
<style> | ||
.markdown-body { | ||
box-sizing: border-box; | ||
min-width: 200px; | ||
max-width: 980px; | ||
margin: 0 5%; | ||
/* padding: 45px; */ | ||
list-style: disc; | ||
} | ||
/* body { | ||
font-family: 'Lexend', sans-serif; | ||
} */ | ||
|
||
@media (max-width: 767px) { | ||
.markdown-body { | ||
/* padding: 15px; */ | ||
} | ||
} | ||
</style> | ||
<script src="/{base_path}/static/darktheme.js"></script> | ||
{style_include} | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.