Skip to content

Commit

Permalink
update new logo and better content displays
Browse files Browse the repository at this point in the history
  • Loading branch information
guofoo committed May 18, 2024
1 parent 35c0be2 commit f8481c1
Show file tree
Hide file tree
Showing 20 changed files with 345 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ highlight_code = false
[extra]
# Put all your custom variables here
juice_logo_name = "ROBIUS"
juice_logo_path = "robius-logo-only.png"
juice_logo_path = "robius-logo-200.png"
juice_extra_menu = [
{ title = "Blog", link = "/blog/"},
{ title = "Github", link = "https://github.com/project-robius"}
Expand Down
23 changes: 21 additions & 2 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,27 @@ sort_by = "weight"

{{ youtube(id="jPq7w7qJrjs") }}

For more info, check out:
### For more info, check out:

* [Project Robius (Github)](https://github.com/project-robius)
* [The Robius Book](https://project-robius.github.io/book/)
* [a Robius PowerPoint slide deck (18MB)](https://github.com/project-robius/files/raw/041e980ec1d14bf325f1fb2ba743f8ed142a70cb/Robius%20-%20A%20Vision%20for%20Multi-platform%20App%20Development%20in%20Rust.pptx), [PDF version (15MB)](https://github.com/project-robius/files/blob/041e980ec1d14bf325f1fb2ba743f8ed142a70cb/Robius%20-%20A%20Vision%20for%20Multi-platform%20App%20Development%20in%20Rust.pdf)
* Presentations about Robius:
* Project Robius's first status update & demo ([RustNL 2024](https://2024.rustnl.org/speakers/#kevin))
* Videos: *coming soon!*
* Slides:
[PowerPoint (19MB)](https://github.com/project-robius/files/raw/3ac0a9d2e9f3c78ea51b4875abe02d288fa3685f/RustNL%202024%20and%20GOSIM%20Europe%202024/Robius%20Talk%20RustNL%20May%208,%202024.pptx),
[PDF version (16MB)](https://github.com/project-robius/files/blob/3ac0a9d2e9f3c78ea51b4875abe02d288fa3685f/RustNL%202024%20and%20GOSIM%20Europe%202024/Robrix%20Talk%20GOSIM%20Europe%20May%206%2C%202024.pdf)
* Robrix: a Matrix chat client and more ([GOSIM Europe 2024](https://europe2024.gosim.org/schedule#fediverse))
* Videos: *coming soon!*
* Slides:
[PowerPoint (22MB)](https://github.com/project-robius/files/raw/3ac0a9d2e9f3c78ea51b4875abe02d288fa3685f/RustNL%202024%20and%20GOSIM%20Europe%202024/Robrix%20Talk%20GOSIM%20Europe%20May%206,%202024.pptx),
[PDF version (16MB)](https://github.com/project-robius/files/blob/3ac0a9d2e9f3c78ea51b4875abe02d288fa3685f/RustNL%202024%20and%20GOSIM%20Europe%202024/Robrix%20Talk%20GOSIM%20Europe%20May%206%2C%202024.pdf)
* Introducing our vision for Project Robius ([GOSIM 2023](https://workshop2023.gosim.org/schedule#mobile))
* Videos:
[YouTube link](https://youtu.be/8JfOXfmwotQ?si=kLogqnaApYPNuSq8&t=6802),
[Bilibili link](https://www.bilibili.com/video/BV1AN4y1Z7vs/)
* Slides:
[PowerPoint (18MB)](https://github.com/project-robius/files/raw/041e980ec1d14bf325f1fb2ba743f8ed142a70cb/Robius%20-%20A%20Vision%20for%20Multi-platform%20App%20Development%20in%20Rust.pptx),
[PDF version (15MB)](https://github.com/project-robius/files/blob/041e980ec1d14bf325f1fb2ba743f8ed142a70cb/Robius%20-%20A%20Vision%20for%20Multi-platform%20App%20Development%20in%20Rust.pdf)

### Curious about Performance? check out the [Blog](/blog)
4 changes: 4 additions & 0 deletions content/blog/2023-11-13-performance-benchmarking.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title = "Performance Benchmarking"
description = "Scrolling Tests with WeChat & TaoBao Apps"
[extra]
author = "Edward Tan"
website = "https://edwardtan.com"
twitter = "guofoo"
mastodon = "https://mastodon.social/@guofoo"
github = "guofoo"
+++

The last time we did a performance benchmark test, it was a few months ago. At that time we used only one simple application, an image manipulation program. During the GOSIM Workshop in September, I had mentioned that we would be doing more performance benchmarking tests and we have done just that.
Expand Down
4 changes: 4 additions & 0 deletions content/blog/2023-11-17-performance-benchmarking-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title = "Performance Benchmarking - Part 2"
description = "Scrolling Tests with WeChat & TaoBao Apps Updated"
[extra]
author = "Edward Tan"
website = "https://edwardtan.com"
twitter = "guofoo"
mastodon = "https://mastodon.social/@guofoo"
github = "guofoo"
+++

Several days ago we did a [performance benchmark](/blog/performance-benchmarking) test between sample apps written in Android "native" vs. Makepad. Afterwards, we were given access to another version of the sample TaoBao app with more functionality, including more animation/video content in the scroll list, and the ability to turn toggle some of the special effects.
Expand Down
4 changes: 4 additions & 0 deletions content/blog/2024-01-29-performance-improvements-with-sdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title = "Performance Improvements with SDF"
description = "Preliminary Results for Latest Makepad with Updated SDF Generation Algorithm"
[extra]
author = "Edward Tan"
website = "https://edwardtan.com"
twitter = "guofoo"
mastodon = "https://mastodon.social/@guofoo"
github = "guofoo"
+++

Recently, the [Makepad](https://github.com/makepad/makepad) framework updated its font handling with SDF generation algorithms. We decided to test out the WeChat and TaoBao apps built using this latest iteration of the framework to see if there are any changes to performance. The tests are same as before: fast scrolling of the main content screen back and forth within a 10 second window.
Expand Down
Binary file modified content/favicon.ico
Binary file not shown.
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/juice.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified public/robius-logo-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions sass/_markdown.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
.content {
padding: 0 40px;
display: flex;
flex-direction: column;
overflow-x: auto;
}

.content pre {
overflow-x: auto;
padding: 1.25em 1.5em;
white-space: pre;
word-wrap: normal;
background-color: var(--code-background-color);
color: var(--code-color);
font-size: .875em;
font-family: monospace;
}

.content code {
background-color: var(--code-background-color);
color: var(--code-color);
font-size: .875em;
font-weight: normal;
padding: 0.25em 0.5em;
font-family: monospace;
}

.content pre code {
padding: 0;
}

.content a {
color: var(--primary-link-color);

&:hover {
text-decoration: underline;
}
}

.content blockquote {
border-left: #e2dede 8px solid;
margin: 0;
background-color: #f2f1f0;
padding: 0 20px;
}
39 changes: 39 additions & 0 deletions sass/_text.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.heading-text {
font-family: var(--header-font-family);
font-size: 32px;
font-weight: 600;
padding: 10px 0 25px 0;
color: var(--primary-text-color);
}

h1, .title-text {
font-family: var(--header-font-family);
font-size: 25px;
font-weight: 500;
color: var(--primary-text-color);
border-left: var(--primary-color) 8px solid;
padding-left: 10px;
}

h2, .subtitle-text {
font-family: var(--header-font-family);
font-size: 20px;
font-weight: 500;
color: var(--primary-text-color);
}

.text {
font-family: var(--text-font-family);
font-size: 18px;
font-weight: 400;
line-height: 26px;
letter-spacing: 0.2px;
color: var(--primary-text-color);
}

.subtext {
font-family: var(--text-font-family);
font-size: 16px;
font-weight: 400;
letter-spacing: 0.1px;
}
13 changes: 13 additions & 0 deletions sass/_ultility.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.text-center {
text-align: center;
}

.pos-absolute {
right: 0;
left: 0;
position: absolute;
}

.box-shadow {
box-shadow: 0 2px 10px 2px var(--shadow-color);
}
194 changes: 194 additions & 0 deletions sass/juice.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
@import "_ultility.scss";
@import "_text.scss";
@import "_markdown.scss";

body {
padding: 0;
margin: 0;
box-sizing: border-box;
background-color: var(--secondary-color);
display: flex;
flex-direction: column;
min-height: 100vh;
}

a {
text-decoration: none;
}

ul {
margin-top: 0.5rem;
}

ul > li {
padding: 0.3rem 0;
}

p > img {
width: 100%;
height: auto;
}

header {
background-color: var(--primary-color);
color: var(--primary-text-color);
padding: 20px 50px;
display: flex;
align-items: center;
justify-content: space-between;
}

.logo {
font-family: "Alfa Slab One", serif;
font-size: 32px;
color: var(--primary-text-color);
display: flex;
align-items: center;
margin: 0 40px;

img {
width: 60px;
margin: 0 25px;
}
}

.nav-item {
margin: 0 10px;
text-decoration: none;
font-size: 20px;
font-weight: bold;

&:hover {
color: var(--primary-text-color-over);
text-decoration: underline;
}
}

.hero {
display: flex;
align-items: center;
justify-content: space-evenly;
height: 100vh;
background-color: var(--primary-color);
overflow-x: hidden;
padding: 0 40px;

.explore-more {
position: absolute;
bottom: 20px;
cursor: pointer;
}
}

main {
display: flex;
padding: 50px 100px;
flex-grow: 1;

.toc {
max-width: 260px;
min-width: 240px;
}

.toc-item {
padding: 10px 20px;
color: #424242;
}

.toc-item a, .toc-item-child a {
color: var(--secondary-text-color);

&:hover {
cursor: pointer;
text-decoration: underline;
}
}

.toc-item a.active, .toc-item-child a.active {
color: var(--toc-highlight-text-color);
}

.toc-item-child {
padding: 0 30px 5px;
color: #424242;
}

}

.toc-sticky {
border-radius: 3px;
border-top: 5px solid var(--primary-color);
background-color: var(--toc-background-color);
position: sticky;
position: -webkit-sticky;
position: -moz-sticky;
position: -ms-sticky;
position: -o-sticky;
top: 10px;
padding: 10px 0 20px;
max-height: 100vh;
overflow: auto;
}

footer {
padding: 50px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #202020;
color: #fcfcfc;

a {
color: #fcfcfc;
text-decoration: underline;
}
}

@media screen and (min-width: 1280px) {
.content {
max-width: 60%;
min-width: 800px;
}
}

@media screen and (max-width: 768px) {
header {
padding: 10px 30px;
flex-direction: column;
align-items: center;
justify-content: center;
}

.logo {
font-size: 28px;
margin: 10px;

img {
width: 45px;
margin: 0 10px 0 0;
}
}

.nav-item {
margin: 0 5px;
font-size: 14px;
}

.hero {
padding: 40px 30px;
}

main {
padding: 30px;
}

.content {
padding: 0;
}

.explore-more, .toc {
display: none;
}

}
Binary file added static/robius-logo-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/robius-logo-680.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/robius-logo-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion templates/_macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<a href="{{ section.permalink | safe }}">
<div class="logo">
<img src="{{ get_url(path=config.extra.juice_logo_path) }}" alt="logo">
{{ config.extra.juice_logo_name }}
<div class="heading-text" style="font-size: 50px; margin-top: 10px">
{{ config.extra.juice_logo_name }}
</div>
</div>
</a>

Expand Down
Loading

0 comments on commit f8481c1

Please sign in to comment.