Class: Railspress::Admin::PrototypesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/railspress/admin/prototypes_controller.rb

Instance Method Summary collapse

Instance Method Details

#image_sectionObject

Prototype views for iterating on UI/UX Access at: /admin/prototypes/:name

These views use real CSS and Stimulus controllers but work with mock data for fast iteration.



10
11
12
13
14
15
16
17
# File 'app/controllers/railspress/admin/prototypes_controller.rb', line 10

def image_section
  # Mock data for prototyping
  @mock_image_url = "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&q=80"
  @mock_filename = "mountain-landscape.jpg"
  @mock_filesize = "1.2 MB"
  @mock_focal_point = { x: 0.35, y: 0.45 }
  @contexts = Railspress.image_contexts.presence || default_contexts
end