From 62f8af0284108f0296d48d9c7a65023cc31e9251 Mon Sep 17 00:00:00 2001 From: Vladimir Dementyev Date: Mon, 6 Nov 2023 14:23:10 -0800 Subject: [PATCH] add js code example + upd verbiage to be less rubyish Code toggle is too hack, don't look at the code --- src/images/js-img-narrow.svg | 12 ++++++++++++ src/images/js-img-wide.svg | 12 ++++++++++++ src/modules/blocks/about-slide.scss | 23 +++++++++++++++++++++++ src/partials/slides/about-slide.hbs | 24 +++++++++++++++++++----- 4 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 src/images/js-img-narrow.svg create mode 100644 src/images/js-img-wide.svg diff --git a/src/images/js-img-narrow.svg b/src/images/js-img-narrow.svg new file mode 100644 index 0000000..d8cbd88 --- /dev/null +++ b/src/images/js-img-narrow.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/images/js-img-wide.svg b/src/images/js-img-wide.svg new file mode 100644 index 0000000..5a79729 --- /dev/null +++ b/src/images/js-img-wide.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/modules/blocks/about-slide.scss b/src/modules/blocks/about-slide.scss index 3856c29..f33d281 100644 --- a/src/modules/blocks/about-slide.scss +++ b/src/modules/blocks/about-slide.scss @@ -122,6 +122,29 @@ $className: 'about-slide'; } } + &__tabs { + display: flex; + flex-direction: row; + gap: 10px; + align-items: center; + } + + &__btn { + padding: 0 12px; + box-shadow: none; + } + + &__btn-inactive { + background-color: $accentSecondaryColor !important; + color: black !important; + } + + &__btn-js { + // js logo yellow color + background-color: #f7df1e; + color: black; + } + &__section-image { display: flex; justify-content: center; diff --git a/src/partials/slides/about-slide.hbs b/src/partials/slides/about-slide.hbs index 426cd37..007f173 100644 --- a/src/partials/slides/about-slide.hbs +++ b/src/partials/slides/about-slide.hbs @@ -9,7 +9,7 @@ Better performance, lower costs

- AnyCable brings the real-time performance of a Ruby or Rails app to match Go, Elixir, and Node.js–based solutions. Written in Go, AnyCable scales efficiently with much lower RAM usage and drastically better CPU utilization than the Rails default Action Cable. + Written in Go, AnyCable scales efficiently while keeping RAM and CPU usage low. For Ruby on Rails, AnyCable the difference compared to Action Cable is hard to underestimate both in terms of resources required and quality of service.

@@ -90,10 +90,14 @@

- And it’s still Ruby + + And it’s still + + +

- Write clean and maintainable Ruby code instead of piling up yet another 3rd-party integration. AnyCable plays nice with Rails and Hotwire, so you focus on shipping features without worrying about scaling issues. + Write clean and maintainable code in your favorite language instead of piling up yet another 3rd-party integration. AnyCable plays nice with Rails, Next.js, and Hotwire applications, so you focus on shipping features without worrying about scaling issues.

- AnyCable Pro uses 4X less RAM compared to Action Cable while handling + AnyCable Pro uses 4X less RAM compared to Rails Action Cable while handling 20K connections

@@ -211,9 +215,19 @@
Ruby code demo -
+ +
+ +