Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 9 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand All @@ -34,25 +34,16 @@ jobs:
cache: 'pnpm'

- name: Install dependencies
run: |
# sudo apt-get update
# sudo apt-get install -y -qq libvips
pnpm install
run: pnpm install

- name: Lint code for consistent style
run: bundle exec standardrb

- name: Build and run dev container task
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/ruby-ui/web-devcontainer
cacheFrom: ghcr.io/ruby-ui/web-devcontainer
push: always
runCmd: |
bundle exec standardrb
bin/rails test:prepare
bin/rails db:test:prepare
bin/rails test
- name: Run tests
run: |
bin/rails test:prepare
bin/rails db:test:prepare
bin/rails test

docker-build:
if: github.ref == 'refs/heads/main'
Expand Down
8 changes: 3 additions & 5 deletions app/views/pages/home.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ def view_template
end
end



div(class: "overflow-hidden") do
div(class: "container mx-auto max-w-5xl px-4 flex justify-center my-8") do
iframe(width: "100%", height: "720", src: "https://www.youtube.com/embed/OQZam7rug00?si=JmZNzS5u194Q0AWQ", title: "YouTube video player", frameborder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", referrerpolicy: "strict-origin-when-cross-origin", allowfullscreen: true)
end

div(class: "relative z-10 container mx-auto max-w-5xl pt-16 lg:pt-16 py-24 lg:py-32 px-4") do
div(class: "grid grid-cols-6 gap-4") do
render HomeView::Card.new(class: "col-span-6 sm:col-span-3 md:col-span-4", title: "Built for Speed", subtitle: "Dive into a world where your Rails UI development happens at light speed. Phlex is not just fast - it's blazing fast.", color: :secondary) do |card|
Expand All @@ -54,9 +52,9 @@ def view_template
card.content do
div(class: "flex flex-col items-center justify-center text-center space-y-4 h-full") do
p(class: "text-6xl font-semibold") { "7.7x" }
p do
p do
a(href: "https://github.com/palkan/view-layer-benchmarks", class: "underline") { "Faster" }
span {" than traditional Rails ERB"}
span { " than traditional Rails ERB" }
end
end
end
Expand Down