-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1939 from DioxusLabs/jk/examples-overhaul
Add more examples, document examples, add css to most examples
- Loading branch information
Showing
76 changed files
with
1,452 additions
and
954 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
html body { | ||
margin: 0; | ||
padding: 0; | ||
height: 100vh; | ||
font-family: 'Courier New', Courier, monospace; | ||
} | ||
|
||
#app { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
height: 100vh; | ||
background-color: plum; | ||
font-size: 6em; | ||
color: aliceblue; | ||
} | ||
|
||
#title { | ||
font-size: 0.5em; | ||
color: black; | ||
margin-bottom: 0.5em; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
html body { | ||
font-family: Arial, sans-serif; | ||
margin: 20px; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
font-size: 2rem; | ||
height: 100vh; | ||
background-color: #f0f0f0; | ||
} | ||
|
||
#controls { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: 20px; | ||
} | ||
|
||
button { | ||
padding: 5px 10px; | ||
margin: 0 5px; | ||
} | ||
|
||
input { | ||
width: 50px; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
body { | ||
background-color: #f4f4f4; | ||
font-family: 'Open Sans', sans-serif; | ||
font-size: 14px; | ||
line-height: 1.42857143; | ||
color: #333; | ||
margin: 20px; | ||
padding: 20px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.red { | ||
background-color: rgb(202, 60, 60) !important; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
body { | ||
background-color: #f0f0f0; | ||
font-family: Arial, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
height: 100vh; | ||
width: 100vw; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
#receiver { | ||
background: deepskyblue; | ||
height: 30vh; | ||
width: 80vw; | ||
color: white; | ||
padding: 20px; | ||
margin: 20px; | ||
text-align: center; | ||
} | ||
|
||
#log { | ||
background: lightgray; | ||
padding: 20px; | ||
margin: 20px; | ||
overflow-y: scroll; | ||
align-items: start; | ||
text-align: left; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
background-color: #f4f4f4; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
flex-direction: column; | ||
gap: 20px; | ||
} | ||
|
||
#drop-zone { | ||
border: 2px dashed #ccc; | ||
border-radius: 3px; | ||
padding: 20px; | ||
text-align: center; | ||
cursor: pointer; | ||
margin: 20px; | ||
background-color: rgba(225, 124, 225, 0); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 20px; | ||
padding: 20px; | ||
background-color: #f4f4f4; | ||
height: 100vh; | ||
} | ||
|
||
nav { | ||
display: flex; | ||
justify-content: space-around; | ||
} | ||
|
||
.nav-btn { | ||
text-decoration: none; | ||
color: black; | ||
} | ||
|
||
a { | ||
padding: 10px; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
} | ||
|
||
/* button hover effect */ | ||
a:hover { | ||
background-color: #dd6a6a; | ||
} | ||
|
||
#content { | ||
border: 2px dashed #ccc; | ||
padding-top: 20px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
flex-direction: column; | ||
gap: 20px; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#external-links { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
#nav { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 1rem; | ||
background-color: #f4f4f4; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
body { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
} | ||
|
||
button { | ||
margin: 10px; | ||
padding: 10px; | ||
border: none; | ||
border-radius: 5px; | ||
background-color: #f0f0f0; | ||
cursor: pointer; | ||
} | ||
|
||
#pause { | ||
background-color: #ff0000; | ||
} | ||
|
||
#play { | ||
background-color: #00ff00; | ||
} | ||
|
||
|
||
.bounce { | ||
animation: boomBox 0.5s infinite; | ||
} | ||
|
||
@keyframes boomBox { | ||
0% { | ||
transform: scale(1.0); | ||
} | ||
|
||
50% { | ||
transform: scale(2); | ||
} | ||
|
||
100% { | ||
transform: scale(1.0); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#main { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
#roulette-grid { | ||
margin: 10px; | ||
display: grid; | ||
grid-template-columns: repeat(9, 1fr); | ||
grid-gap: 10px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
} | ||
|
||
#roulette-grid>input { | ||
color: white; | ||
font-size: 20px; | ||
width: 50px; | ||
} | ||
|
||
#roulette-grid>input:nth-child(odd) { | ||
background-color: red; | ||
} | ||
|
||
#roulette-grid>input:nth-child(even) { | ||
background-color: black; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#navbar { | ||
display: flex; | ||
justify-content: flex-start; | ||
gap: 1rem; | ||
align-items: center; | ||
} | ||
|
||
#blog-list { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: start; | ||
gap: 1rem; | ||
} |
Oops, something went wrong.