Implement styling

This commit is contained in:
Elnu 2023-06-02 12:31:13 -07:00
parent 25906df967
commit ccba51e277
7 changed files with 151 additions and 3 deletions

View file

@ -2,8 +2,10 @@
extern crate rocket;
use core::panic;
use rocket::fs::{FileServer, relative};
use rocket_dyn_templates::{context, Template};
use std::fs;
use sass_rocket_fairing::SassFairing;
mod challenge;
use challenge::Challenge;
@ -52,5 +54,7 @@ fn rocket() -> _ {
let config = rocket::Config::figment().merge(("port", 1313));
rocket::custom(config)
.mount("/", routes![get_challenge])
.mount("/css", FileServer::from(relative!("styles/css")))
.attach(Template::fairing())
.attach(SassFairing::default())
}