diff --git a/app/view_objects/contributing_partners_page.rb b/app/view_objects/contributing_partners_page.rb
deleted file mode 100644
index 594e762098..0000000000
--- a/app/view_objects/contributing_partners_page.rb
+++ /dev/null
@@ -1,91 +0,0 @@
-class ContributingPartnersPage
- class << self
- def hero
- {
- title: "Contributing partners"
- }
- end
-
- def cards
- [
- {
- title_locale: "pages.contributing-partners.cards.apps_for_good.title",
- link_url: "https://www.appsforgood.org/",
- image_path: "media/images/partners/apps-for-good.svg",
- img_alt_locale: "pages.contributing-partners.cards.apps_for_good.img_alt",
- text_locale: "pages.contributing-partners.cards.apps_for_good.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.barefoot.title",
- link_url: "https://www.barefootcomputing.org/",
- image_path: "media/images/partners/barefoot.svg",
- img_alt_locale: "pages.contributing-partners.cards.barefoot.img_alt",
- text_locale: "pages.contributing-partners.cards.barefoot.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.bebras.title",
- link_url: "https://www.bebras.uk/",
- image_path: "media/images/partners/bebras.png",
- img_alt_locale: "pages.contributing-partners.cards.bebras.img_alt",
- text_locale: "pages.contributing-partners.cards.bebras.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.code_club.title",
- link_url: "https://codeclub.org/en/start-a-code-club",
- image_path: "media/images/partners/code-club.svg",
- img_alt_locale: "pages.contributing-partners.cards.code_club.img_alt",
- text_locale: "pages.contributing-partners.cards.code_club.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.cyberfirst.title",
- link_url: "https://www.ncsc.gov.uk/cyberfirst/overview",
- image_path: "media/images/partners/cyber-first.svg",
- img_alt_locale: "pages.contributing-partners.cards.cyberfirst.img_alt",
- text_locale: "pages.contributing-partners.cards.cyberfirst.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.enthuse.title",
- link_url: "https://www.stem.org.uk/about-us/enthuse-charitable-trust",
- image_path: "media/images/partners/enthuse.png",
- img_alt_locale: "pages.contributing-partners.cards.enthuse.img_alt",
- text_locale: "pages.contributing-partners.cards.enthuse.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.institute_of_coding.title",
- link_url: "https://instituteofcoding.org/",
- image_path: "media/images/partners/institute-of-coding.png",
- img_alt_locale: "pages.contributing-partners.cards.institute_of_coding.img_alt",
- text_locale: "pages.contributing-partners.cards.institute_of_coding.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.microbit.title",
- link_url: "https://microbit.org",
- image_path: "media/images/partners/microbit.svg",
- img_alt_locale: "pages.contributing-partners.cards.microbit.img_alt",
- text_locale: "pages.contributing-partners.cards.microbit.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.rae.title",
- link_url: "https://www.raeng.org.uk/education",
- image_path: "media/images/partners/rae.png",
- img_alt_locale: "pages.contributing-partners.cards.rae.img_alt",
- text_locale: "pages.contributing-partners.cards.rae.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.stem.title",
- link_url: "https://www.stem.org.uk/stem-ambassadors",
- image_path: "media/images/partners/stem.svg",
- img_alt_locale: "pages.contributing-partners.cards.stem.img_alt",
- text_locale: "pages.contributing-partners.cards.stem.text_html"
- },
- {
- title_locale: "pages.contributing-partners.cards.safer_internet.title",
- link_url: "https://www.saferinternet.org.uk/",
- image_path: "media/images/partners/safer-internet.svg",
- img_alt_locale: "pages.contributing-partners.cards.safer_internet.img_alt",
- text_locale: "pages.contributing-partners.cards.safer_internet.text_html"
- }
- ]
- end
- end
-end
diff --git a/app/view_objects/primary_landing_page.rb b/app/view_objects/primary_landing_page.rb
deleted file mode 100644
index e6526abce0..0000000000
--- a/app/view_objects/primary_landing_page.rb
+++ /dev/null
@@ -1,187 +0,0 @@
-class PrimaryLandingPage
- attr_reader :primary_certificate
-
- def initialize(current_user:)
- @current_user = current_user
- @primary_certificate = Programme.primary_certificate
- end
-
- def meta
- {
- title: "Inspiration and support for teaching primary computing",
- description: "Training and enrichment to help you teach and lead the computing curriculum and improve learning across your school.",
- image: "media/images/landing-pages/pri-hero.png",
- image_alt: "Primary Teachers - Teach Computing"
- }
- end
-
- def heading
- "The essential toolkit for primary computing teachers"
- end
-
- def hero_text
- "Training and enrichment to help you teach and lead the computing curriculum and improve learning across your school."
- end
-
- def hero_image
- "media/images/landing-pages/pri-hero.png"
- end
-
- def hero_class
- "lime-green-bg"
- end
-
- def event_tracking_category
- "Primary teachers"
- end
-
- def certificates_text
- "Designed for primary teachers from all backgrounds who want to improve their knowledge and teaching practice."
- end
-
- def secondary?
- false
- end
-
- def primary?
- true
- end
-
- def primary_cert_link_text
- if completed_primary?
- "View certificate"
- elsif enrolled_on_primary?
- "View your progress"
- else
- "Find out more"
- end
- end
-
- def primary_tracking_event
- enrolled_on_primary? ? "Primary view progress" : "Primary find out more"
- end
-
- def testimonials
- nil
- end
-
- def courses_intro
- "Develop your understanding of a specific topic, your pedagogical practice or get help as a beginner."
- end
-
- def courses
- [
- {
- image: "media/images/landing-pages/lp-pri-crs-1.png",
- image_title: "STEM course",
- title: "Introduction to primary computing",
- url: "/courses/CP454/introduction-to-primary-computing-remote",
- description: "Ideal for beginners, this course covers the whole computing curriculum at an introductory level, including programming essentials using Scratch.",
- icon_class: "icon-remote",
- type: "Live remote training",
- duration: "days vary",
- time_commitment: "5 hours",
- event_label: "Course 1"
- },
- {
- image: "media/images/landing-pages/stem_primary_course.png",
- image_title: "STEM course",
- title: "Leading primary computing",
- url: "/courses/CP456/leading-primary-computing-remote",
- description: "Lead computing in your school with confidence, making the most of the resources and teaching staff available.",
- icon_class: "icon-remote",
- type: "Live remote training",
- duration: "days vary",
- time_commitment: "10 hours",
- event_label: "Course 2"
- },
- {
- image: "media/images/landing-pages/5_to_11_year_olds_course.png",
- image_title: "Programming 5 to 11 year olds course",
- title: "Teaching Programming to 5- to 11-year-olds",
- url: "/courses/CO041/teaching-programming-to-5-to-11-year-olds",
- description: "Build your subject knowledge and develop your skills in teaching programming.",
- icon_class: "icon-online",
- type: "Online course",
- time_commitment: "Approximately 8 hours of self-study",
- event_label: "Course 3"
- }
- ]
- end
-
- def resources_text
- 'Our free resources provide everything you need to teach computing at key stage 1 and 2.
- They include curriculum maps, lesson plans, slides, assessments and activities.'
- end
-
- def resources
- [
- {
- title: "Year 2: Programming A – Robot algorithms",
- url: "/curriculum/key-stage-1/programming-a-robot-algorithms",
- description: "Learners will use logical reasoning to predict the outcome of sequences of commands and test their prediction with floor robots. They will then create different algorithms to reach the same outcome.",
- event_label: "Featured unit 1",
- updated_at: "Featured unit"
- },
- {
- title: "Year 5: Programming A – Selection in physical computing",
- url: "/curriculum/key-stage-2/programming-a-selection-in-physical-computing",
- description: "Using Crumbles, learners will control physical components such as LEDs and motors. They will create programs which use selection to respond to inputs and explore program flow.",
- event_label: "Featured unit 2",
- updated_at: "Featured unit"
- }
- ]
- end
-
- def contributing_partners
- {
- class_name: "resource-cards",
- cards_per_row: 3,
- cards: [
- {
- image_url: "pages/primary-teachers/barefoot.svg",
- title: I18n.t("pages.contributing-partners-cards.barefoot.title"),
- text: I18n.t("pages.contributing-partners-cards.barefoot.text"),
- link: {
- link_title: I18n.t("pages.contributing-partners-cards.barefoot.link_title"),
- link_url: "https://www.barefootcomputing.org/",
- tracking_page: event_tracking_category,
- tracking_label: "Barefoot"
- }
- },
- {
- image_url: "pages/primary-teachers/code-club-card.svg",
- title: I18n.t("pages.contributing-partners-cards.code-club.title"),
- text: I18n.t("pages.contributing-partners-cards.code-club.text"),
- link: {
- link_title: I18n.t("pages.contributing-partners-cards.code-club.link_title"),
- link_url: "https://codeclub.org/en/",
- tracking_page: event_tracking_category,
- tracking_label: "Code club"
- }
- },
- {
- image_url: "pages/primary-teachers/stem-card.svg",
- title: I18n.t("pages.contributing-partners-cards.stem-Ambassadors.title"),
- text: I18n.t("pages.contributing-partners-cards.stem-Ambassadors.text"),
- link: {
- link_title: I18n.t("pages.contributing-partners-cards.stem-Ambassadors.link_title"),
- link_url: "https://www.stem.org.uk/stem-ambassadors",
- tracking_page: event_tracking_category,
- tracking_label: "STEM Ambassadors"
- }
- }
- ]
- }
- end
-
- private
-
- def enrolled_on_primary?
- @current_user && @primary_certificate.user_enrolled?(@current_user)
- end
-
- def completed_primary?
- @current_user && @primary_certificate.user_completed?(@current_user)
- end
-end
diff --git a/app/view_objects/secondary_landing_page.rb b/app/view_objects/secondary_landing_page.rb
deleted file mode 100644
index 34a8502a63..0000000000
--- a/app/view_objects/secondary_landing_page.rb
+++ /dev/null
@@ -1,197 +0,0 @@
-class SecondaryLandingPage
- attr_reader :cs_accelerator, :secondary_certificate
-
- def initialize(current_user:)
- @current_user = current_user
- @cs_accelerator = Programme.cs_accelerator
- @secondary_certificate = Programme.secondary_certificate
- end
-
- def meta
- {
- title: "The essential toolkit for secondary computing teachers",
- description: "Training and inspiration that grows your confidence, transforms your teaching and brings your lessons to life.",
- image: "media/images/landing-pages/sec-hero.png",
- image_alt: "Secondary Teachers - Teach Computing"
- }
- end
-
- def heading
- "The essential toolkit for secondary computing teachers"
- end
-
- def hero_text
- "Training and inspiration that grows your confidence and transforms your teaching."
- end
-
- def hero_image
- "media/images/landing-pages/sec-hero.png"
- end
-
- def hero_class
- "lime-green-bg"
- end
-
- def event_tracking_category
- "Secondary teachers"
- end
-
- def certificates_text
- "Improve your subject knowledge and gain confidence with our nationally recognised certificates."
- end
-
- def secondary?
- true
- end
-
- def primary?
- false
- end
-
- def csa_link_text
- if completed_csa?
- "View certificate"
- elsif enrolled_on_csa?
- "View your progress"
- else
- "Find out more"
- end
- end
-
- def csa_tracking_event
- enrolled_on_csa? ? "CSA view progress" : "CSA find out more"
- end
-
- def secondary_cert_link_text
- if completed_secondary?
- "View certificate"
- elsif enrolled_on_secondary?
- "View your progress"
- else
- "Find out more"
- end
- end
-
- def secondary_tracking_event
- enrolled_on_secondary? ? "Secondary view progress" : "Secondary find out more"
- end
-
- def testimonials
- [
- {
- text: '"We\'re teaching kids to use technologies that don\'t exist yet for problems that they don\'t know. It\'s going to be a completely different world when they leave school."',
- image: "media/images/pages/careers-week/helen_brant.jpg",
- name: "Helen Brant",
- link_target: "https://www.teachcomputing.org/blog/music-computing",
- bio: "Music teacher",
- tracking_event: "Testimonial 1"
- },
- {
- text: '"As a result of the programme, I am now a computer science teacher! The programme has given me the confidence to realise the skills that I have."',
- image: "media/images/landing-pages/nigel.png",
- name: "Nigel Ferry",
- link_target: "https://www.teachcomputing.org/blog/from-design-to-digital-technology/",
- bio: "D&T to Computer Science teacher, Gateshead",
- tracking_event: "Testimonial 2"
- },
- {
- text: '"Completing the Computer Science Accelerator has honestly changed my career. It has given me the confidence to do so many new things."',
- image: "media/images/landing-pages/annie.png",
- name: "Annie Cuffe Davies",
- link_target: "https://www.teachcomputing.org/blog/how-cpd-changed-my-career/",
- bio: "ICT and Computing teacher, London",
- tracking_event: "Testimonial 3"
- }
- ]
- end
-
- def courses_intro
- "Begin your computing journey, develop your understanding of a specific topic, or improve your pedagogical practice."
- end
-
- def courses
- [
- {
- image: "media/images/landing-pages/stem_course.png",
- image_title: "Python programming constructs: sequencing, selection & iteration for OCR specification",
- title: "Python programming constructs: sequencing, selection & iteration for OCR specification",
- url: "/courses/CP423A/python-programming-constructs-sequencing-selection-iteration-for-ocr-specification",
- description: "Learn how to write code to input, process and output data, and how to manipulate data stored in variables. Also available for AQA and Pearson specifications.",
- icon_class: "icon-remote",
- type: "Live remote training",
- duration: "Days vary",
- time_commitment: "6 hours",
- event_label: "Course 1"
- },
- {
- image: "media/images/landing-pages/lp-sec-crs-2.png",
- image_title: "Supporting GCSE computer science students at grades 1 to 3",
- title: "Supporting GCSE computer science students at grades 1 to 3",
- url: "/courses/CP478/supporting-gcse-computer-science-students-at-grades-1-3",
- description: "This evidence-based CPD explores how to improve attainment in Computer Science for students working towards grades 1 to 3.",
- icon_class: "icon-remote",
- type: "Live remote training",
- duration: "Days vary",
- time_commitment: "6 hours",
- event_label: "Course 2"
- },
- {
- image: "media/images/landing-pages/studying.png",
- image_title: "Impact of Technology: How To Lead Classroom Discussions",
- title: "Impact of Technology: How To Lead Classroom Discussions",
- url: "/courses/CO215/impact-of-technology-how-to-lead-classroom-discussions",
- description: "Explore the ethical, legal, cultural, and environmental concerns surrounding computer science.",
- icon_class: "icon-online",
- type: "Online course",
- time_commitment: "Approximately 8 hours of self-study",
- event_label: "Course 3"
- }
- ]
- end
-
- def resources_text
- 'Free teaching resources for key stage 3 and 4. Everything you need to
- teach computing including lesson plans, slides, assessments and activities.'
- end
-
- def resources
- [
- {
- title: "GCSE: Data representations",
- url: "/curriculum/key-stage-4/data-representations",
- description: 'This unit has been re-written based on your feedback, to have more scaffolding,
- unique lesson activities and content on data compression. For example the escape room activity in lesson 9,
- the image manipulation activity in lesson 10 and the Huffman coding activities in lesson 17.',
- event_label: "Featured unit 1",
- updated_at: "Updated October 2021"
- },
- {
- title: "Year 7: Networks from semaphores to the Internet",
- url: "/curriculum/key-stage-3/networks-from-semaphores-to-the-internet",
- description: 'This unit begins by defining a network and addressing the
- benefits and importance of computer networks, before covering how data
- is transmitted across networks using protocols.',
- event_label: "Featured unit 2",
- updated_at: "Updated August 2021"
- }
- ]
- end
-
- private
-
- def enrolled_on_csa?
- @current_user && @cs_accelerator.user_enrolled?(@current_user)
- end
-
- def completed_csa?
- @current_user && @cs_accelerator.user_completed?(@current_user)
- end
-
- def enrolled_on_secondary?
- @current_user && @secondary_certificate.user_enrolled?(@current_user)
- end
-
- def completed_secondary?
- @current_user && @secondary_certificate.user_completed?(@current_user)
- end
-end
diff --git a/app/view_objects/supporting_partners_page.rb b/app/view_objects/supporting_partners_page.rb
deleted file mode 100644
index b0e3fe5811..0000000000
--- a/app/view_objects/supporting_partners_page.rb
+++ /dev/null
@@ -1,62 +0,0 @@
-class SupportingPartnersPage
- class << self
- def hero
- {
- class_name: "lime-green-bg",
- title: I18n.t("pages.partnerships.hero.title"),
- text: I18n.t("pages.partnerships.hero.text.html"),
- image: {
- url: "media/images/pages/supporting_partners/supporting_partners.png",
- title: I18n.t("pages.about.hero.image_title")
- }
- }
- end
-
- def cards
- [
- {
- title_locale: "pages.supporting_partners.arm.title",
- link_url: "https://www.arm.com/",
- image_path: "media/images/partners/arm.svg",
- img_alt_locale: "pages.supporting_partners.arm.img_alt",
- text_locale: "pages.supporting_partners.arm.text_html"
- },
- {
- title_locale: "pages.supporting_partners.bt.title",
- link_url: "https://www.bt.com/skillsfortomorrow",
- image_path: "media/images/partners/bt.svg",
- img_alt_locale: "pages.supporting_partners.bt.img_alt",
- text_locale: "pages.supporting_partners.bt.text_html"
- },
- {
- title_locale: "pages.supporting_partners.google.title",
- link_url: "https://edu.google.com/teaching-resources/?modal_active=none&topic=coding-and-computer-science",
- image_path: "media/images/partners/google.svg",
- img_alt_locale: "pages.supporting_partners.google.img_alt",
- text_locale: "pages.supporting_partners.google.text_html"
- },
- {
- title_locale: "pages.supporting_partners.ibm.title",
- link_url: "https://www.ibm.org/",
- image_path: "media/images/partners/ibm.svg",
- img_alt_locale: "pages.supporting_partners.ibm.img_alt",
- text_locale: "pages.supporting_partners.ibm.text_html"
- },
- {
- title_locale: "pages.supporting_partners.nationwide.title",
- link_url: "https://www.nationwide-jobs.co.uk/",
- image_path: "media/images/partners/nationwide.svg",
- img_alt_locale: "pages.supporting_partners.nationwide.img_alt",
- text_locale: "pages.supporting_partners.nationwide.text_html"
- },
- {
- title_locale: "pages.supporting_partners.rolls_royce.title",
- link_url: "https://www.stem.org.uk/rolls-royce-schools-prize-science-technology",
- image_path: "media/images/partners/rolls-royce.svg",
- img_alt_locale: "pages.supporting_partners.rolls_royce.img_alt",
- text_locale: "pages.supporting_partners.rolls_royce.text_html"
- }
- ]
- end
- end
-end
diff --git a/app/views/landing_pages/_bursary-aside.html.erb b/app/views/landing_pages/_bursary-aside.html.erb
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/app/views/landing_pages/_certificates.html.erb b/app/views/landing_pages/_certificates.html.erb
deleted file mode 100644
index cf81c4a35d..0000000000
--- a/app/views/landing_pages/_certificates.html.erb
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
-
-
-
Certificates
-
- <%= @landing_page.certificates_text %>
-
-
-
- <% if @landing_page.secondary? %>
-
-
-
- Our certificate is designed to help you develop or refresh your computer science subject knowledge.
-
-
- <%= link_to @landing_page.csa_link_text, cs_accelerator_path,
- class: 'button govuk-button lp-certs--button',
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: @landing_page.csa_tracking_event }
- %>
-
-
-
-
-
-
-
- This certificate will help you to put your subject knowledge into classroom practice that raises student attainment.
-
-
-
- <%= link_to @landing_page.secondary_cert_link_text, secondary_path,
- class: 'button govuk-button lp-certs--button',
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: @landing_page.secondary_tracking_event }
- %>
-
-
- <% else %>
-
-
-
- Our nationally recognised qualification will support you to demonstrate your commitment to developing your own practice and to computing as a school subject.
-
-
- <%= link_to @landing_page.primary_cert_link_text, cms_page_path("primary_certificate"),
- class: 'button govuk-button lp-certs--button',
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: @landing_page.primary_tracking_event }
- %>
-
-
- <% end %>
-
-
-
- <%= render 'landing_pages/champions-aside' if @landing_page.secondary? %>
-
-
-
-
-
diff --git a/app/views/landing_pages/_champions-aside.html.erb b/app/views/landing_pages/_champions-aside.html.erb
deleted file mode 100644
index d63dac9021..0000000000
--- a/app/views/landing_pages/_champions-aside.html.erb
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- Subject Expert support
-
-
- Our Computing Hubs provide support and mentoring to help you complete the Subject knowledge certificate
-
-
- <%= link_to 'Contact your local hub', '/hubs',
- class: 'ncce-link',
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: 'Email CS Champions' }
- %>
-
-
diff --git a/app/views/landing_pages/_courses.html.erb b/app/views/landing_pages/_courses.html.erb
deleted file mode 100644
index 482988e984..0000000000
--- a/app/views/landing_pages/_courses.html.erb
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
Courses
- <%= link_to 'Browse our courses', courses_path,
- class: 'button govuk-button' ,
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: 'Browse courses' }
- %>
-
-
-
-
-
-
- <% @landing_page.courses.each do |course| %>
-
-
-
- <%= image_pack_tag course[:image], alt: image_title(course), class: 'lp-courses--image' %>
-
- Featured
-
-
-
-
-
- <%= link_to course[:title], course[:url], class: 'ncce-link', data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: course[:event_label] } %>
-
-
-
- <%= course[:description].html_safe %>
-
-
-
- <%= course[:type] %>
-
-
-
- <% if course[:duration].present? %>
-
- <%= course[:duration] %>
-
- <% end %>
- <%= content_tag :span, class: ['govuk-body-s', 'icon-clock', 'lp-courses--time', { 'govuk-!-margin-left-0': course[:duration].blank? }] do %>
- <%= course[:time_commitment] %>
- <% end %>
-
-
- <% end %>
-
-
-
-
-
diff --git a/app/views/landing_pages/_dedicated_pages.html.erb b/app/views/landing_pages/_dedicated_pages.html.erb
deleted file mode 100644
index 2c334e10d6..0000000000
--- a/app/views/landing_pages/_dedicated_pages.html.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
We also have dedicated pages for:
- <% if @landing_page.secondary? %>
- <%= link_to 'Secondary senior leaders', '/secondary-senior-leaders',
- class: 'govuk-button button button--inverted dedicated-pages--button',
- data: { event_action: 'click', event_category: @landing_page.event_tracking_category, event_label: 'Senior leaders' }
- %>
- <%= link_to 'Secondary early careers ', '/secondary-early-careers',
- class: 'govuk-button button button--inverted dedicated-pages--button',
- data: { event_action: 'click', event_category: @landing_page.event_tracking_category, event_label: 'Early careers' }
- %>
- <% else %>
- <%= link_to 'Primary senior leaders', '/primary-senior-leaders',
- class: 'govuk-button button button--inverted dedicated-pages--button',
- data: { event_action: 'click', event_category: @landing_page.event_tracking_category, event_label: 'Senior leaders' }
- %>
- <%= link_to 'Primary early careers', '/primary-early-careers',
- class: 'govuk-button button button--small button--inverted dedicated-pages--button',
- data: { event_action: 'click', event_category: @landing_page.event_tracking_category, event_label: 'Early careers' }
- %>
- <% end %>
-
-
-
-
diff --git a/app/views/landing_pages/_resources.html.erb b/app/views/landing_pages/_resources.html.erb
deleted file mode 100644
index 8cd2addd85..0000000000
--- a/app/views/landing_pages/_resources.html.erb
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
Resources
-
- <%= @landing_page.resources_text %>
-
- <%= link_to 'Browse teaching resources', curriculum_key_stages_path,
- class: 'button govuk-button',
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: 'Browse resources' }
- %>
-
-
-
-
- <% @landing_page.resources.each do |resource| %>
-
-
-
-
- <%= resource[:updated_at] %>
-
-
-
-
- <%= link_to resource[:title], resource[:url], class: 'ncce-link ncce-link--heading lp-resources--heading govuk-link--no-underline',
- data: {
- event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: resource[:event_label]
- } %>
-
-
- <%= resource[:description] %>
-
-
- <% end %>
-
-
-
-
-
diff --git a/app/views/landing_pages/_support.html.erb b/app/views/landing_pages/_support.html.erb
deleted file mode 100644
index 234d14a1b1..0000000000
--- a/app/views/landing_pages/_support.html.erb
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
-
-
-
We're here to help
-
- Your local network of expert computing support.
-
-
-
-
-
-
-
-
-
-
- Computing Hubs
-
-
- Providing local training and support for teachers across England,
- our Computing Hubs are led by schools and colleges with an
- exceptional track record in teaching computing.
-
-
- <%= link_to 'Meet your local hub', '/hubs',
- class: 'button govuk-button govuk-!-margin-bottom-0',
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: 'Local hub' }
- %>
-
-
-
-
- Communities of Practice
-
-
- These local networks of computing teachers are forums to share
- expertise, resources and best practice. Run by Computing at School (CAS).
-
-
- <%= link_to 'Join a community', 'https://community.computingatschool.org.uk/communities',
- class: 'button govuk-button govuk-!-margin-bottom-0',
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: 'CAS' }
- %>
-
-
-
-
- Subject Matter Experts (SMEs)
-
-
- Our computing specialists offer fully-funded consultancy and
- guidance to schools and colleges who meet
- <%= link_to 'our eligibility criteria', '/bursary#subject',
- class: 'ncce-link axe-skip-a11y-test govuk-link--no-underline',
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: 'SME eligibility' }
- %>.
- They’ll work with you to develop a tailor-made action plan.
-
-
- <%= link_to 'Contact your local SME',
- t('hubs.index.sme_section_link_url'),
- class: 'button govuk-button govuk-!-margin-bottom-0',
- data: { event_action: 'click',
- event_category: @landing_page.event_tracking_category,
- event_label: 'SME contact' }
- %>
-
-
-
-
-
-
-
diff --git a/app/views/landing_pages/_testimonials.html.erb b/app/views/landing_pages/_testimonials.html.erb
deleted file mode 100644
index 8a23eb39de..0000000000
--- a/app/views/landing_pages/_testimonials.html.erb
+++ /dev/null
@@ -1,7 +0,0 @@
-<% if @landing_page.testimonials.present? %>
- <%= render TestimonialsComponent.new(
- testimonials: @landing_page.testimonials,
- event_tracking_category: @landing_page.event_tracking_category,
- testimonials_per_row: 2,
- ) %>
-<% end %>
diff --git a/app/views/landing_pages/show.html.erb b/app/views/landing_pages/show.html.erb
deleted file mode 100644
index bc4704b908..0000000000
--- a/app/views/landing_pages/show.html.erb
+++ /dev/null
@@ -1,21 +0,0 @@
-<% meta_tag :title, @landing_page.meta[:title] %>
-<% meta_tag :description, @landing_page.meta[:description] %>
-<% meta_tag :url, request.original_url %>
-<% meta_tag :image, asset_pack_path(@landing_page.meta[:image]) %>
-<% meta_tag :image_alt, @landing_page.meta[:image_alt] %>
-<%= render HeroMediaComponent.new(
- title: @landing_page.heading,
- text: @landing_page.hero_text,
- class_name: @landing_page.hero_class,
- image: {
- url: @landing_page.hero_image,
- title: @landing_page.heading,
- }
-) %>
-<%= render partial: 'landing_pages/dedicated_pages' %>
-<%= render partial: 'landing_pages/certificates' %>
-<%= render partial: 'landing_pages/testimonials' %>
-<%= render partial: 'landing_pages/courses' %>
-<%= render partial: 'landing_pages/resources' %>
-<%= render IsaacCardComponent.new(tracking_category: @landing_page.event_tracking_category) if @landing_page.secondary? %>
-<%= render partial: 'landing_pages/support' %>
diff --git a/app/views/pages/careers-week.html.erb b/app/views/pages/careers-week.html.erb
deleted file mode 100644
index dead9667e7..0000000000
--- a/app/views/pages/careers-week.html.erb
+++ /dev/null
@@ -1,115 +0,0 @@
-<% meta_tag :title, 'Careers in computing' %>
-<% meta_tag :description, 'With the demand for digital skills growing, there has never been a more important time to prepare young people for their future' %>
-<% meta_tag :url, request.original_url %>
-<% meta_tag :image, asset_pack_path('media/images/pages/careers-week/hero.jpg') %>
-<% meta_tag :image_alt, 'Careers in computing' %>
-
-
-
-
-
-
Careers in computing
-
With the demand for digital skills growing, there has never been a more important time to prepare young people for their future.
-
-
- <%= image_pack_tag 'media/images/pages/careers-week/hero.jpg', alt: '' %>
-
-
-
-
-
-
-
-
-
-
Gain inspiration from our hand-picked selection of resources and stories, to support your students to better understand how digital skills will benefit a wide range of future career choices and contribute to Gatsby benchmarks 4 and 5.
-
Useful resources
-
- - access a selection of <%= link_to 'resources, videos and job profiles', 'https://www.stem.org.uk/stem-careers/computing', class: 'ncce-link' %> on the STEM Learning website to help you to link your computing curriculum to careers.
- - explore how volunteer <%= link_to 'STEM Ambassadors', 'https://teachcomputing.org/courses/CP446/enriching-secondary-computing-with-stem-ambassadors', class: 'ncce-link' %> can support your secondary students to learn about careers linked to computing and digital skills.
- - develop the skills needed to hold relevant and exciting discussions in the classroom with our <%= link_to 'Impact of technology: how to lead classroom discussions course', 'https://teachcomputing.org/courses/CO215/impact-of-technology-how-to-lead-classroom-discussions', class: 'ncce-link' %>.
- - find ideas for linking to the wider curriculum in the <%= link_to 'STEM careers guide for teachers', 'https://www.stem.org.uk/resources/elibrary/resource/482786/teachers-guide-linking-careers-stem-curriculum', class: 'ncce-link' %>.
-
-
-
-
-
-
-
-
-
Meet our professionals
-
Read about the experiences of these professionals working in non-traditional roles and industries which rely on computing skills and show your students how essential it is to have a foundational knowledge of the subject, regardless of the career path you decide to follow.
-
-
-
-
-<%= render TestimonialsComponent.new(
- testimonials: [
- {
- text: "“I loved studying computer science. It’s so exciting, and being in the tech field means that I am constantly surrounded by optimism and growth. You have complete control over what you want to create and build.”",
- image: "media/images/pages/careers-week/nabilah.jpg",
- name: "Nabilah Joarder",
- link_target: "https://isaaccomputerscience.org/pages/cs_journeys_nabilah",
- bio: "Graduate Software Developer",
- tracking_event: nil,
- },
- {
- text: "“I would love women to realise that they know so much more than they think they do. An engineer is not just someone who can take apart a clock and put it back together, or a man who builds bridges and roads. If you follow your interests and have confidence in your abilities, you will be an excellent engineer.”",
- image: "media/images/pages/careers-week/daisy.jpg",
- name: "Daisy Tyrer",
- link_target: "https://isaaccomputerscience.org/pages/cs_journeys_daisy",
- bio: "Energy Consultant at Element Energy",
- tracking_event: nil,
- },
- {
- text: "“I can’t think of any other job that would present me with the opportunity to be involved in the delivery of technologies, ranging from airfield telecommunications and aircraft airbridges, to the latest generation security screening equipment.”",
- image: "media/images/pages/careers-week/rb.jpg",
- name: "Mark Bardsley",
- link_target: "https://www.teachcomputing.org/blog/flying-high",
- bio: "Transformation Programme IT Executive at Manchester Airport Group",
- tracking_event: nil
- },
- {
- text: "“The thing I love is when you read stories about how Alexa has helped people. The leader of a charity for blind people said how much Alexa has helped him, because its users are now able to access RNIB-verified information via voice commands.”",
- image: "media/images/pages/careers-week/beth.jpg",
- name: "Beth Holmes",
- link_target: "https://www.teachcomputing.org/blog/alexa-can-you-tell-me-more-about-digital-careers",
- bio: "Knowledge Engineer at Amazon",
- tracking_event: nil,
- },
- {
- text: "“I feel incredibly fortunate to be in a role that allows my interests as a scientist to be used to support the care of cancer patients. Knowing my research has the potential to further improve the outcomes of patients is such a strong driving force.”",
- image: "media/images/pages/careers-week/marcus.jpg",
- name: "Marcus Tyyger",
- link_target: "https://www.teachcomputing.org/blog/using-coding-to-help-advance-healthcare",
- bio: "Clinical Scientist - Medical Physics (Radiotherapy) at NHS",
- tracking_event: nil,
- },
- {
- text: "“I think computer science is super interesting and can help tackle all sorts of real-world problems. There are still so many open research questions and computer science is definitely a valuable skill in academia!”",
- image: "media/images/pages/careers-week/risa.jpg",
- name: "Risa Ueno",
- link_target: "https://www.teachcomputing.org/blog/using-computational-thinking-to-tackle-real-world-problems",
- bio: "PhD student at British Antarctic Survey",
- tracking_event: nil,
- },
- {
- text: "“For me, the most interesting thing is understanding behaviours - I enjoy and learn more when we go above and beyond current technology and think more about everyday habits and general consumer behaviour.”",
- image: "media/images/pages/careers-week/swetha.jpg",
- name: "Swetha Sethu-Jones",
- link_target: "https://www.teachcomputing.org/blog/researching-the-right-career",
- bio: "Senior UX Researcher at Just Eat",
- tracking_event: nil,
- },
- {
- text: "“It’s been great to apply what I’ve been taught at university to real-life scenarios instead of those you read about in a textbook and see how they can be used to make a difference in practice.”",
- image: "media/images/pages/careers-week/sam.jpg",
- name: "Sam Parker",
- link_target: "https://www.teachcomputing.org/blog/flying-start",
- bio: "Technology Degree Apprenticeship and student at PwC",
- tracking_event: nil
- }
- ],
- event_tracking_category: "",
- testimonials_per_row: 3,
-) %>
diff --git a/app/views/pages/contributing-partners.html.erb b/app/views/pages/contributing-partners.html.erb
deleted file mode 100644
index 2b673da79e..0000000000
--- a/app/views/pages/contributing-partners.html.erb
+++ /dev/null
@@ -1,16 +0,0 @@
-<% meta_tag :title, 'Meet our contributing partners, and find out how you and your students can benefit from their complementary programmes.' %>
-
-<%= render HeroComponent.new(**(ContributingPartnersPage.hero)) %>
-
-
-
-
-
-
- <%= t('.intro') %>
-
-
-
- <%= render ImageLinkCardsComponent.new(cards: ContributingPartnersPage.cards) %>
-
-
diff --git a/app/views/pages/supporting-partners.html.erb b/app/views/pages/supporting-partners.html.erb
deleted file mode 100644
index 7e95206d80..0000000000
--- a/app/views/pages/supporting-partners.html.erb
+++ /dev/null
@@ -1,108 +0,0 @@
-<% meta_tag :title, 'Meet our supporting partners.' %>
-<% meta_tag :description, 'The NCCE relies on financial contributions from businesses to help equip young people with digital skills for the future. Find out how you can help us.' %>
-
-<%= render HeroMediaComponent.new(**SupportingPartnersPage.hero) %>
-
-
-
-
-
-
- The demand for computing expertise is growing - with an estimated 1.2 million more people with specialist digital skills needed by 2022.
- We are calling on businesses to join us in equipping young people with the necessary skills for the future.
- Together we can bridge the gap in computing education and digital capability.
-
-
How can you help?
-
- The NCCE programme relies on financial contributions from our supporting partners to achieve our mission. Funding is used for:
-
-
- -
-
- <%= link_to 'Funding and subsidies', '/funding', class: 'ncce-link' %>: help cover the costs for teachers to attend training courses and to achieve certifications. Professional development in turn helps improve the quality of teaching for learners.
-
-
- -
- Special projects: we are always looking to expand our offering so it is a comprehensive source of support and resources for teachers.
- Our <%= link_to 'Curriculum resources', curriculum_key_stages_path, class: 'ncce-link' %> is just one of the special projects we were able to deliver through additional funding.
-
-
-
-
-
- Get in touch to find out more about how you can help us continue this crucial work.
-
-
- <%= mail_to 'info@teachcomputing.org', 'Email us', class: 'govuk-button button ', 'data-event-action' => 'click', 'data-event-category' => 'Supporting partners', 'data-event-label' => 'Email' %>
-
-
-
-
-
-
-
-
-
-
-
Thank you to our existing partners
-
- We are very grateful to our Supporting Partners who have made the Teach Computing Curriculum and the funding for our courses possible.
-
-
- <%= render ImageLinkCardsComponent.new(cards: SupportingPartnersPage.cards) %>
-
-
-
-
-
-
-
-
-
Other ways you can support us
-
Volunteer
-
- Encourage your employees to volunteer for computing education initiatives in schools and clubs, specifically:
-
-
-
-
-
-
- <%= link_to 'https://www.barefootcomputing.org/barefoot-volunteers', class: 'govuk-header__link--logo' do %>
- <%= image_pack_tag 'media/images/partners/barefoot_square.svg', alt: 'Barefoot programme logo' %>
- <% end %>
-
-
-
- <%= link_to 'https://codeclub.org/en/volunteer', class: 'govuk-header__link--logo' do %>
- <%= image_pack_tag 'media/images/partners/code_club_square.svg', alt: 'Code Club logo' %>
- <% end %>
-
-
- <%= link_to 'https://www.stem.org.uk/stem-ambassadors', class: 'govuk-header__link--logo' do %>
- <%= image_pack_tag 'media/images/partners/stem_square.svg', alt: 'STEM logo' %>
- <% end %>
-
-
- <%= link_to 'https://isaaccomputerscience.org/events', class: 'govuk-header__link--logo' do %>
- <%= image_pack_tag 'media/images/partners/isaac_square.svg', alt: 'Isaac computer science logo' %>
- <% end %>
-
-
-
-
-
-
Advocacy and awareness
-
- Speak up for the importance and value of a world-class computing education
- for every child. You can also help raise awareness of the NCCE and
- TeachComputing.org amongst teachers you know. Follow us on
- <%= link_to 'Twitter', 'https://twitter.com/WeAreComputing', class: 'ncce-link' %>,
- <%= link_to 'Facebook', 'https://facebook.com/WeAreComputing', class: 'ncce-link' %> and
- <%= link_to 'LinkedIn', 'https://www.linkedin.com/company/national-centre-for-computing-education', class: 'ncce-link' %>
- to keep up to date with our progress and latest news.
-
-
-
-
-
diff --git a/config/sitemap.rb b/config/sitemap.rb
index 5369f2aec2..f7ae6c8405 100644
--- a/config/sitemap.rb
+++ b/config/sitemap.rb
@@ -19,7 +19,6 @@
add "/about", changefreq: "monthly"
add "/accessibility-statement", changefreq: "monthly"
add "/blog", changefreq: "daily"
- add "/careers-week", changefreq: "monthly"
add "/careers-support", changefreq: "monthly"
add "/certification", changefreq: "monthly"
add "/contact", changefreq: "monthly"
diff --git a/spec/view_objects/primary_landing_page_spec.rb b/spec/view_objects/primary_landing_page_spec.rb
deleted file mode 100644
index 83470ab226..0000000000
--- a/spec/view_objects/primary_landing_page_spec.rb
+++ /dev/null
@@ -1,157 +0,0 @@
-require "rails_helper"
-
-RSpec.describe PrimaryLandingPage do
- let!(:primary_cert) { instance_double(Programmes::PrimaryCertificate) }
- let(:user) { create(:user) }
-
- let(:landing_page) { described_class.new(current_user: user) }
-
- before do
- allow(Programme).to receive(:primary_certificate) { primary_cert }
- end
-
- it "exposes primary certificate" do
- expect(landing_page.primary_certificate).to eq(primary_cert)
- end
-
- describe "#meta" do
- it "returns correctly shaped data" do
- keys = %i[title description image image_alt]
-
- expect(landing_page.meta.keys).to eq(keys)
- end
- end
-
- describe "#heading" do
- it "returns text" do
- expect(landing_page.heading).to eq("The essential toolkit for primary computing teachers")
- end
- end
-
- describe "#hero_text" do
- it "returns text" do
- expect(landing_page.hero_text)
- .to eq("Training and enrichment to help you teach and lead the computing curriculum and improve learning across your school.")
- end
- end
-
- describe "#hero_image" do
- it "returns image path" do
- expect(landing_page.hero_image).to eq("media/images/landing-pages/pri-hero.png")
- end
- end
-
- describe "#hero_class" do
- it "returns lime-green-bg" do
- expect(landing_page.hero_class).to eq("lime-green-bg")
- end
- end
-
- describe "#event_tracking_category" do
- it "returns lime-green-bg" do
- expect(landing_page.event_tracking_category).to eq("Primary teachers")
- end
- end
-
- describe "#certificates_text" do
- it "returns text" do
- expect(landing_page.certificates_text).to match(/Designed for primary teachers/)
- end
- end
-
- describe "#secondary?" do
- it "returns false" do
- expect(landing_page.secondary?).to eq(false)
- end
- end
-
- describe "#primary?" do
- it "returns true" do
- expect(landing_page.primary?).to eq(true)
- end
- end
-
- describe "#primary_cert_link_text" do
- context "when user enrolled on primary certificate" do
- it "returns correct text" do
- allow(primary_cert).to receive(:user_completed?)
- allow(primary_cert).to receive(:user_enrolled?).and_return(true)
- expect(landing_page.primary_cert_link_text).to eq("View your progress")
- end
- end
-
- context "when user completes primary certificate" do
- it "returns correct text" do
- allow(primary_cert).to receive(:user_enrolled?)
- allow(primary_cert).to receive(:user_completed?).and_return(true)
- expect(landing_page.primary_cert_link_text).to eq("View certificate")
- end
- end
-
- context "when user not enrolled on primary certificate" do
- it "returns correct text" do
- allow(primary_cert).to receive(:user_completed?)
- allow(primary_cert).to receive(:user_enrolled?).and_return(false)
- expect(landing_page.primary_cert_link_text).to eq("Find out more")
- end
- end
- end
-
- describe "#primary_tracking_event" do
- context "when user enrolled on primary" do
- it "returns correct text" do
- allow(primary_cert).to receive(:user_enrolled?).and_return(true)
- expect(landing_page.primary_tracking_event).to eq("Primary view progress")
- end
- end
-
- context "when user not enrolled on primary" do
- it "returns correct text" do
- allow(primary_cert).to receive(:user_enrolled?).and_return(false)
- expect(landing_page.primary_tracking_event).to eq("Primary find out more")
- end
- end
- end
-
- describe "#testimonials" do
- it "returns nil" do
- expect(landing_page.testimonials).to eq(nil)
- end
- end
-
- describe "#courses_intro" do
- it "returns text" do
- expect(landing_page.courses_intro).to match(/Develop your understanding/)
- end
- end
-
- describe "#courses" do
- it "returns 3 courses" do
- expect(landing_page.courses.length).to eq(3)
- end
-
- it "returns correctly shaped data" do
- keys = %i[image image_title title url description icon_class type duration time_commitment event_label]
-
- expect(landing_page.courses.map(&:keys)).to eq([keys, keys, keys.reject { |k| k == :duration }])
- end
- end
-
- describe "#resources_text" do
- it "returns text" do
- expect(landing_page.resources_text).to match(/Our free resources/)
- end
- end
-
- describe "#resources" do
- it "returns 2 resources" do
- expect(landing_page.resources.length).to eq(2)
- end
-
- it "returns correctly shaped data" do
- keys = %i[title url description event_label updated_at]
-
- expect(landing_page.resources.map(&:keys)).to eq(Array.new(2, keys))
- end
- end
-end
diff --git a/spec/view_objects/secondary_landing_page_spec.rb b/spec/view_objects/secondary_landing_page_spec.rb
deleted file mode 100644
index daa0fec6af..0000000000
--- a/spec/view_objects/secondary_landing_page_spec.rb
+++ /dev/null
@@ -1,211 +0,0 @@
-require "rails_helper"
-
-RSpec.describe SecondaryLandingPage do
- let!(:csa) { instance_double(Programmes::CSAccelerator) }
- let!(:secondary_cert) { instance_double(Programmes::SecondaryCertificate) }
- let(:user) { create(:user) }
-
- let(:landing_page) { described_class.new(current_user: user) }
-
- before do
- allow(Programme).to receive(:cs_accelerator) { csa }
- allow(Programme).to receive(:secondary_certificate) { secondary_cert }
- end
-
- it "exposes csa" do
- expect(landing_page.cs_accelerator).to eq(csa)
- end
-
- it "exposes secondary certificate" do
- expect(landing_page.secondary_certificate).to eq(secondary_cert)
- end
-
- describe "#meta" do
- it "returns correctly shaped data" do
- keys = %i[title description image image_alt]
-
- expect(landing_page.meta.keys).to eq(keys)
- end
- end
-
- describe "#heading" do
- it "returns text" do
- expect(landing_page.heading).to eq("The essential toolkit for secondary computing teachers")
- end
- end
-
- describe "#hero_text" do
- it "returns text" do
- expect(landing_page.hero_text)
- .to eq("Training and inspiration that grows your confidence and transforms your teaching.")
- end
- end
-
- describe "#hero_image" do
- it "returns image path" do
- expect(landing_page.hero_image).to eq("media/images/landing-pages/sec-hero.png")
- end
- end
-
- describe "#hero_class" do
- it "returns lime-green-bg" do
- expect(landing_page.hero_class).to eq("lime-green-bg")
- end
- end
-
- describe "#event_tracking_category" do
- it "returns lime-green-bg" do
- expect(landing_page.event_tracking_category).to eq("Secondary teachers")
- end
- end
-
- describe "#certificates_text" do
- it "returns text" do
- expect(landing_page.certificates_text).to match(/Improve your subject knowledge/)
- end
- end
-
- describe "#secondary?" do
- it "returns true" do
- expect(landing_page.secondary?).to eq(true)
- end
- end
-
- describe "#primary?" do
- it "returns false" do
- expect(landing_page.primary?).to eq(false)
- end
- end
-
- describe "#csa_link_text" do
- context "when user enrolled on csa" do
- it "returns correct text" do
- allow(csa).to receive(:user_completed?)
- allow(csa).to receive(:user_enrolled?).and_return(true)
- expect(landing_page.csa_link_text).to eq("View your progress")
- end
- end
-
- context "when user completes csa" do
- it "returns correct text" do
- allow(csa).to receive(:user_enrolled?)
- allow(csa).to receive(:user_completed?).and_return(true)
- expect(landing_page.csa_link_text).to eq("View certificate")
- end
- end
-
- context "when user not enrolled on csa" do
- it "returns correct text" do
- allow(csa).to receive(:user_completed?)
- allow(csa).to receive(:user_enrolled?).and_return(false)
- expect(landing_page.csa_link_text).to eq("Find out more")
- end
- end
- end
-
- describe "#csa_tracking_event" do
- context "when user enrolled on csa" do
- it "returns correct text" do
- allow(csa).to receive(:user_enrolled?).and_return(true)
- expect(landing_page.csa_tracking_event).to eq("CSA view progress")
- end
- end
-
- context "when user not enrolled on csa" do
- it "returns correct text" do
- allow(csa).to receive(:user_enrolled?).and_return(false)
- expect(landing_page.csa_tracking_event).to eq("CSA find out more")
- end
- end
- end
-
- describe "#secondary_cert_link_text" do
- context "when user enrolled on secondary certificate" do
- it "returns correct text" do
- allow(secondary_cert).to receive(:user_completed?)
- allow(secondary_cert).to receive(:user_enrolled?).and_return(true)
- expect(landing_page.secondary_cert_link_text).to eq("View your progress")
- end
- end
-
- context "when user completes secondary cert" do
- it "returns correct text" do
- allow(secondary_cert).to receive(:user_enrolled?)
- allow(secondary_cert).to receive(:user_completed?).and_return(true)
- expect(landing_page.secondary_cert_link_text).to eq("View certificate")
- end
- end
-
- context "when user not enrolled on secondary certificate" do
- it "returns correct text" do
- allow(secondary_cert).to receive(:user_completed?)
- allow(secondary_cert).to receive(:user_enrolled?).and_return(false)
- expect(landing_page.secondary_cert_link_text).to eq("Find out more")
- end
- end
- end
-
- describe "#secondary_tracking_event" do
- context "when user enrolled on secondary" do
- it "returns correct text" do
- allow(secondary_cert).to receive(:user_enrolled?).and_return(true)
- expect(landing_page.secondary_tracking_event).to eq("Secondary view progress")
- end
- end
-
- context "when user not enrolled on secondary" do
- it "returns correct text" do
- allow(secondary_cert).to receive(:user_enrolled?).and_return(false)
- expect(landing_page.secondary_tracking_event).to eq("Secondary find out more")
- end
- end
- end
-
- describe "#testimonials" do
- it "returns 3 testimonials" do
- expect(landing_page.testimonials.length).to eq(3)
- end
-
- it "returns correctly shaped data" do
- keys = %i[text image name link_target bio tracking_event]
-
- expect(landing_page.testimonials.map(&:keys)).to eq(Array.new(3, keys))
- end
- end
-
- describe "#courses_intro" do
- it "returns text" do
- expect(landing_page.courses_intro).to match(/Begin your computing journey/)
- end
- end
-
- describe "#courses" do
- it "returns 3 courses" do
- expect(landing_page.courses.length).to eq(3)
- end
-
- it "returns correctly shaped data" do
- keys = %i[image image_title title url description icon_class type duration time_commitment event_label]
-
- expect(landing_page.courses.map(&:keys)).to eq([keys, keys, keys.reject { |k| k == :duration }])
- end
- end
-
- describe "#resources_text" do
- it "returns text" do
- expect(landing_page.resources_text).to match(/Free teaching resources/)
- end
- end
-
- describe "#resources" do
- it "returns 2 resources" do
- expect(landing_page.resources.length).to eq(2)
- end
-
- it "returns correctly shaped data" do
- keys = %i[title url description event_label updated_at]
-
- expect(landing_page.resources.map(&:keys)).to eq(Array.new(2, keys))
- end
- end
-end
diff --git a/spec/views/landing_pages/show.html_spec.rb b/spec/views/landing_pages/show.html_spec.rb
deleted file mode 100644
index 65cfb9bd61..0000000000
--- a/spec/views/landing_pages/show.html_spec.rb
+++ /dev/null
@@ -1,59 +0,0 @@
-require "rails_helper"
-
-RSpec.describe("landing_pages/show", type: :view) do
- context "secondary" do
- before do
- @landing_page = SecondaryLandingPage.new(current_user: nil)
- render
- end
-
- it "has a title" do
- expect(rendered).to have_css(".govuk-heading-l", text: "The essential toolkit for secondary computing teachers")
- end
-
- it "renders certificates" do
- expect(rendered).to have_css(".govuk-heading-l", text: "Certificates")
- end
-
- it "renders courses" do
- expect(rendered).to have_css(".govuk-heading-l", text: "Courses")
- end
-
- it "renders resources" do
- expect(rendered).to have_css(".govuk-heading-l", text: "Resources")
- end
-
- it "renders support section" do
- expect(rendered).to have_css(".govuk-heading-l", text: "We're here to help")
- end
- end
-
- context "primary" do
- let!(:programme) { create(:primary_certificate) }
-
- before do
- @landing_page = PrimaryLandingPage.new(current_user: nil)
- render
- end
-
- it "has a title" do
- expect(rendered).to have_css(".govuk-heading-l", text: "The essential toolkit for primary computing teachers")
- end
-
- it "renders certificates" do
- expect(rendered).to have_css(".govuk-heading-l", text: "Certificates")
- end
-
- it "renders courses" do
- expect(rendered).to have_css(".govuk-heading-l", text: "Courses")
- end
-
- it "renders resources" do
- expect(rendered).to have_css(".govuk-heading-l", text: "Resources")
- end
-
- it "renders support section" do
- expect(rendered).to have_css(".govuk-heading-l", text: "We're here to help")
- end
- end
-end
diff --git a/spec/views/pages/careers-week.html_spec.rb b/spec/views/pages/careers-week.html_spec.rb
deleted file mode 100644
index a225c93d3d..0000000000
--- a/spec/views/pages/careers-week.html_spec.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-require "rails_helper"
-
-RSpec.describe("pages/careers-week", type: :view) do
- it "has a title" do
- render
- expect(rendered).to have_css(".govuk-heading-l", text: "Careers in computing")
- end
-
- it "has eight testimonials" do
- render
- expect(rendered).to have_css(".testimonial", count: 8)
- end
-end
diff --git a/spec/views/pages/contributing-partners.html_spec.rb b/spec/views/pages/contributing-partners.html_spec.rb
deleted file mode 100644
index 10ca60684c..0000000000
--- a/spec/views/pages/contributing-partners.html_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require "rails_helper"
-
-RSpec.describe("pages/contributing-partners", type: :view) do
- before do
- render
- end
-
- it "has a main paragraph" do
- expect(rendered).to have_css(".govuk-body-l", count: 1)
- end
-
- it "has 11 cards" do
- expect(rendered).to have_css(".image-link-card-component", count: 11)
- end
-end
diff --git a/spec/views/pages/supporting-partners.html_spec.rb b/spec/views/pages/supporting-partners.html_spec.rb
deleted file mode 100644
index 346985d45b..0000000000
--- a/spec/views/pages/supporting-partners.html_spec.rb
+++ /dev/null
@@ -1,39 +0,0 @@
-require "rails_helper"
-
-RSpec.describe("pages/supporting-partners", type: :view) do
- before do
- render
- end
-
- context "when supporting partners hero component show:" do
- it "has a title" do
- expect(rendered).to have_css(".govuk-heading-l", text: "Supporting partners")
- end
-
- it "has sub section text" do
- expect(rendered).to have_css(".govuk-body-l", text: "Power up the digital generation: deliver digital skills for the future.")
- end
-
- it "has an image" do
- expect(rendered).to have_css(".hero-media-component__media")
- end
- end
-
- it "has a sub title" do
- expect(rendered).to have_css(".govuk-heading-l", text: "Thank you to our existing partners")
- end
-
- it "has external links for each of the supporting_partner cards" do
- current_supporting_partners_logo_links = [
- "https://www.arm.com/",
- "https://www.bt.com/skillsfortomorrow",
- "https://edu.google.com/teaching-resources/?modal_active=none&topic=coding-and-computer-science",
- "https://www.nationwide-jobs.co.uk/",
- "https://www.stem.org.uk/rolls-royce-schools-prize-science-technology"
- ]
-
- current_supporting_partners_logo_links.each do |link|
- expect(rendered).to have_link(href: link)
- end
- end
-end