Live Coding the Ruby for Good Website [Part 1]
Today I tackle the mystery of the missing mobile menu and explain some SCSS/Sass along the way! Visit the live site now at https://rubyforgood.org.
Find video chapters, links, and resources below...
Video Chapters:
00:00:00 Here we go!
00:01:44 The Issue: Nav bar missing on mobile. Whoops! Where'd that go?
00:03:35 The Website: A quick overview of the rubyforgood.org site repo.
00:06:55 CSS vs. SCSS: What's the diff?
00:16:39 Sass & Bootstrap: I give a high-level overview of Sass syntax while walking through the documentation (RTFD!) and bring it around to how Bootstrap incorporates the complexities of Sass into its styling framework. ...Now back to the task at hand!
00:28:24 Hunch 1: I think I broke something when I changed the `responsive.css` to `responsive.scss`.
00:49:50 Hunch 2: The `responsive.scss` file wasn't being read this whole time because I didn't have `gem "jekyll-sass-converter"` installed.
00:56:47 Oscar's Plan: Inspect the navbar and see what you learn. It turns out, a lot! I found the entire menu wrapped in a `mobile-menu` class that was being called by an outdated JavaScript plugin MeanMenu.
01:22:05 Out with the Old!: I decide to rip out MeanMenu (from the navbar at least—it's only a matter of time before I'm rid of you for good!) and use Bootstrap's built-in `navbar` component instead to build a new menu.
01:28:05 I KNOW WHAT I'M DOING NOW!!! ...for the most part.
Links & Resources:
The Ruby for Good website repo: https://github.com/rubyforgood/rubyforgood.org
Difference between CSS and SCSS: https://www.javatpoint.com/css-vs-scss
Sass documentation: https://sass-lang.com/documentation
SassC Ruby gem: https://github.com/sass/sassc-ruby
Bootstrap navbar component documentation: https://getbootstrap.com/docs/5.1/components/navbar/ (This is the latest version. The docs I used on the stream were from v4.)
Jekyll assets documentation: https://jekyllrb.com/docs/assets/
Jekyll Sass Converter gem: https://github.com/jekyll/jekyll-sass-converter
GitHub Pages dependency versions: https://pages.github.com/versions/
MeanMenu documentation: https://github.com/meanthemes/meanMenu
The Ruby for Good website: https://rubyforgood.org
Watch me stream live at https://www.twitch.tv/meg_gutshall. Streams announced on my Twitter feed at https://twitter.com/meg_gutshall.
#RubyForGood #Ruby4Good #ruby #Jekyll #Bootstrap
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Live Coding the Ruby for Good Website [Part 1]», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.