diff --git a/app/models/content_module.rb b/app/models/content_module.rb index ac15863..89ad6ed 100644 --- a/app/models/content_module.rb +++ b/app/models/content_module.rb @@ -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 diff --git a/app/models/video_course.rb b/app/models/video_course.rb index 0a803df..60b655b 100644 --- a/app/models/video_course.rb +++ b/app/models/video_course.rb @@ -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 diff --git a/app/server/views/styles/abstracts/colors.scss b/app/server/views/styles/abstracts/colors.scss index 051d358..babcf84 100644 --- a/app/server/views/styles/abstracts/colors.scss +++ b/app/server/views/styles/abstracts/colors.scss @@ -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 */ diff --git a/app/server/views/styles/components/modular.scss b/app/server/views/styles/components/modular.scss index 48d809b..1e54bc2 100644 --- a/app/server/views/styles/components/modular.scss +++ b/app/server/views/styles/components/modular.scss @@ -175,6 +175,7 @@ display: flex; justify-content: center; align-items: center; + min-width: 56px; width: 56px; height: 56px; margin-right: 24px; diff --git a/app/server/views/styles/components/slide.scss b/app/server/views/styles/components/slide.scss index 2a94d1d..c4c54d3 100644 --- a/app/server/views/styles/components/slide.scss +++ b/app/server/views/styles/components/slide.scss @@ -229,6 +229,11 @@ $slide-ratio: 1.8; @extend .slide-domain; background-color: #AC9FAB; } + + &--ai { + @extend .slide-domain; + background-color: #E6978A; + } } }