diff options
-rw-r--r-- | src/handlers.rs | 10 | ||||
-rw-r--r-- | src/main.rs | 2 | ||||
-rw-r--r-- | src/views.rs | 2 | ||||
-rw-r--r-- | src/views/highered.rs | 6 | ||||
-rw-r--r-- | src/views/pro.rs | 6 | ||||
-rw-r--r-- | templates/highered.html.j2 | 0 | ||||
-rw-r--r-- | templates/pro.html.j2 | 65 |
7 files changed, 91 insertions, 0 deletions
diff --git a/src/handlers.rs b/src/handlers.rs index 43d31fd..8b3ea27 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -2,11 +2,13 @@ use crate::posts::abstractions::repo::PostRepo; use crate::tutors::abstractions::tutor_repo::TutorRepo; use crate::views::about::AboutView; use crate::views::brochure::BrochureTemplate; +use crate::views::highered::HigherEdTemplate; use crate::views::index::IndexTemplate; use crate::views::k12::K12Template; use crate::views::policies::PoliciesTemplate; use crate::views::post::PostView; use crate::views::posts::PostsView; +use crate::views::pro::ProTemplate; use askama::Template; use axum::extract::{Path, State}; use axum::response::Html; @@ -45,3 +47,11 @@ pub async fn post_handler( pub async fn k12_handler() -> Html<String> { Html(K12Template {}.render().unwrap()) } + +pub async fn highered_handler() -> Html<String> { + Html(HigherEdTemplate {}.render().unwrap()) +} + +pub async fn pro_handler() -> Html<String> { + Html(ProTemplate {}.render().unwrap()) +} diff --git a/src/main.rs b/src/main.rs index 57b0256..13e6229 100644 --- a/src/main.rs +++ b/src/main.rs @@ -48,6 +48,8 @@ async fn main() { .route("/brochure", get(handlers::brochure_handler)) .route("/about", get(handlers::about_handler)) .route("/k12", get(handlers::k12_handler)) + .route("/highered", get(handlers::highered_handler)) + .route("/professional", get(handlers::pro_handler)) .with_state(tutors) .nest_service("/assets", ServeDir::new(assets_dir)) .nest_service("/team", ServeDir::new(tutor_dir)) diff --git a/src/views.rs b/src/views.rs index e9f1951..f880818 100644 --- a/src/views.rs +++ b/src/views.rs @@ -1,7 +1,9 @@ pub mod about; pub mod brochure; +pub mod highered; pub mod index; pub mod k12; pub mod policies; pub mod post; pub mod posts; +pub mod pro; diff --git a/src/views/highered.rs b/src/views/highered.rs new file mode 100644 index 0000000..108a76a --- /dev/null +++ b/src/views/highered.rs @@ -0,0 +1,6 @@ +use crate::helpers::*; +use askama::Template; + +#[derive(Template)] +#[template(path = "highered.html.j2")] +pub struct HigherEdTemplate; diff --git a/src/views/pro.rs b/src/views/pro.rs new file mode 100644 index 0000000..eacfd7c --- /dev/null +++ b/src/views/pro.rs @@ -0,0 +1,6 @@ +use crate::helpers::*; +use askama::Template; + +#[derive(Template)] +#[template(path = "pro.html.j2")] +pub struct ProTemplate; diff --git a/templates/highered.html.j2 b/templates/highered.html.j2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/templates/highered.html.j2 diff --git a/templates/pro.html.j2 b/templates/pro.html.j2 new file mode 100644 index 0000000..b5fcdb6 --- /dev/null +++ b/templates/pro.html.j2 @@ -0,0 +1,65 @@ +{% extends "base.html.j2" %} + +{% block main %} + +<section class="banner"> + <h1>Higher Education Services</h1> +</section> + +<section> + <h2>Personalized partnership and support from a higher education expert.</h2> +</section> + +<section id="offerings" class="cards"> + <div class="card full"> + <h3> + Higher Education Service + </h3> + </div> + + <div class="card"> + <p> <a href="#offering-academic-coaching"> Academic Coaching </a> </p> + </div> + + <div class="card"> + <p> <a href="#offering-application-essay-consulting">Application Essay Consulting</a> </p> + </div> + + <div class="card"> + <p><a href="#offering-college-transition">College Transition</a></p> + </div> + + <div class="card"> + <p><a href="#offering-subject-tutoring">Subject Tutoring</a></p> + </div> + + <div class="card"> + <p><a href="#offering-writing-support">Writing Support</a></p> + </div> +</section> + +<section id="offering-academic-coaching"> + <h2>Academic Coaching</h2> + + <p> + Academic Coaching teaches and models the skills students need for success through graduation and beyond. We work + together to create and execute realistic plans to handle the responsibilities of each week. Tailored to each + student's individual needs, Academic Coaching provides students with a partner in navigating both academic and + personal responsibilities with the goal of increasing confidence, autonomy, and self-sufficiency. Topics + covered include but are not limited to + + <ul> + <li>Time and stress management</li> + <li>Task prioritization</li> + <li>Organization</li> + <li>Effective study techniques</li> + <li>Note-taking </li> + <li>Motivation</li> + <li>Procrastination</li> + <li>Self-advocacy </li> + <li>Communication </li> + <li>Understanding instructor expectations</li> + </ul> + + </p> +</section>
\ No newline at end of file |