diff --git a/src/views/course-create.ejs b/src/views/course-create.ejs index cd5387b..10c67bd 100644 --- a/src/views/course-create.ejs +++ b/src/views/course-create.ejs @@ -1,16 +1,6 @@ - - - - - - - - - Create Course - - +<%- include('partials/header.ejs', {title:"Create Course", style: "course-create"}) %>
@@ -236,6 +226,4 @@ }); }); - - - \ No newline at end of file +<%- include('partials/footer.ejs') %> \ No newline at end of file diff --git a/src/views/course.ejs b/src/views/course.ejs index e872cd5..a392eb8 100644 --- a/src/views/course.ejs +++ b/src/views/course.ejs @@ -1,12 +1,6 @@ - - - - - - - Courses - - + + <%- include('partials/header.ejs', {title:"Courses", style: "course"}) %> +

Courses

@@ -34,5 +28,4 @@
- - + <%- include('partials/footer.ejs') %> \ No newline at end of file diff --git a/src/views/login.ejs b/src/views/login.ejs index 9317e44..fc3b040 100644 --- a/src/views/login.ejs +++ b/src/views/login.ejs @@ -1,37 +1,28 @@ - - - - - - - Login - - - +<%- include('partials/footer.ejs') %> \ No newline at end of file diff --git a/src/views/partials/footer.ejs b/src/views/partials/footer.ejs new file mode 100644 index 0000000..691287b --- /dev/null +++ b/src/views/partials/footer.ejs @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/src/views/partials/header.ejs b/src/views/partials/header.ejs new file mode 100644 index 0000000..625f1bb --- /dev/null +++ b/src/views/partials/header.ejs @@ -0,0 +1,12 @@ + + + + + + + + + + <%- title %> + + \ No newline at end of file diff --git a/src/views/profile.ejs b/src/views/profile.ejs index dcd1347..f1479a9 100644 --- a/src/views/profile.ejs +++ b/src/views/profile.ejs @@ -1,13 +1,5 @@ - - - - - - User Profile - - - +<%- include('partials/header.ejs', {title:"Profile", style: "profile"}) %>

Welcome, <%= user.username %>!

@@ -128,5 +120,4 @@ <% } %>
- - +<%- include('partials/footer.ejs') %> diff --git a/src/views/register.ejs b/src/views/register.ejs index 996f366..d432329 100644 --- a/src/views/register.ejs +++ b/src/views/register.ejs @@ -1,12 +1,4 @@ - - - - - - - Registration - - +<%- include('partials/header.ejs', {title:"Register", style: "register"}) %>

Registration

@@ -45,5 +37,4 @@

Already have an account? Login here

- - +<%- include('partials/footer.ejs') %>