Skip to content

Commit

Permalink
Merge pull request #293 from razeware/WEB-7288
Browse files Browse the repository at this point in the history
WEB-7288: Add AI domain to robles
  • Loading branch information
jellodiil authored Oct 23, 2024
2 parents 4c77604 + d365817 commit cb4e7af
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/content_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ContentModule
validates :lessons, length: { minimum: 1 }, allow_blank: false, lessons: true
validates_each :domains do |record, attr, value|
value.each do |domain|
record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth].include?(domain)
record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth ai].include?(domain)
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/models/video_course.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class VideoCourse
validates :parts, length: { minimum: 1 }, allow_blank: false, parts: true
validates_each :domains do |record, attr, value|
value.each do |domain|
record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth].include?(domain)
record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth ai].include?(domain)
end
end

Expand Down
4 changes: 2 additions & 2 deletions app/server/views/styles/abstracts/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ $red-lipstick: #962224;

$pink-doll: #F26FAA; /* Light Server-Side Swift Colour */
$pink-peony: #A53B6B; /* Dark Server-Side Swift Colour */
$pink-peach: #E6978A;
$pink-incense: #99584D;
$pink-peach: #E6978A; /* Light AI Colour */
$pink-incense: #99584D; /* Dark AI Colour */

/* Orange */

Expand Down
5 changes: 5 additions & 0 deletions app/server/views/styles/components/slide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ $slide-ratio: 1.8;
@extend .slide-domain;
background-color: #AC9FAB;
}

&--ai {
@extend .slide-domain;
background-color: #E6978A;
}
}
}

Expand Down

0 comments on commit cb4e7af

Please sign in to comment.