PhoneScreenArtboardComponent
InfoGeneratePackages
This code snippet defines a Ruby class named `ArtboardSize2Component` which inherits from `ApplicationComponent`. The class implements a method named `template` that generates an HTML `div` element with the class `artboard phone-2`. The content of the `div` element is the string `375×667`, representing a resolution or size. This class is likely part of a web application that dynamically generates user interface components, specifically for creating an artboard with the specified dimensions for a phone screen within a larger web application or design system.
# frozen_string_literal: true
class ArtboardSize2Component < ApplicationComponent
def template
div(class: "artboard phone-2") { "375×667" }
end
end
Try a prompt