diff --git a/Codealong/controller.js b/Codealong/controller.js
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/Codealong/controller.js
@@ -0,0 +1 @@
+
diff --git a/Codealong/index.html b/Codealong/index.html
deleted file mode 100644
index 12140c7..0000000
--- a/Codealong/index.html
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
MainContent
-
+
+
+
\ No newline at end of file
diff --git a/prosjekt/modell.js b/prosjekt/modell.js
new file mode 100644
index 0000000..446be07
--- /dev/null
+++ b/prosjekt/modell.js
@@ -0,0 +1,22 @@
+
+
+var model = {
+ app: {
+ pages: ['home','new'],
+ currentPage: "home",
+ },
+ input:{
+ search: '',
+ },
+ data: {
+ books: [],
+ book:{
+ id: 0,
+ title: '',
+ authorFirstName: '',
+ authorLastName: '',
+ file: '',
+ coverImg: '',
+ },
+ }
+}
\ No newline at end of file
diff --git a/prosjekt/style.css b/prosjekt/style.css
new file mode 100644
index 0000000..6d9c907
--- /dev/null
+++ b/prosjekt/style.css
@@ -0,0 +1,43 @@
+
+.app{
+ height: 100vh;
+ display: grid;
+ grid-template-columns: 1fr 4fr;
+ grid-template-rows: 100px 10fr 20px;
+ grid-template-areas:
+ 'header header'
+ 'menu mainView'
+ 'footer footer'; ;
+}
+.header{
+ background-color: rgb(78, 206, 163);
+ color: black;
+ height: auto;
+ grid-area: header;
+ /* justify-content: center; */
+}
+.header li {
+ float: left;
+ display: inline;
+ list-style-type: none;
+}
+.header li:hover {
+ background-color: #b35959;
+ }
+.header li input {
+ float: right;
+}
+.menu{
+ background-color: grey;
+ color: black;
+ grid-area: menu;
+}
+.mainView{
+ background-color: rgb(218, 131, 131);
+ color: black;
+ grid-area: mainView;
+}
+.footer{
+ background-color: black;
+ grid-area: footer;
+}
\ No newline at end of file
diff --git a/prosjekt/view.js b/prosjekt/view.js
new file mode 100644
index 0000000..24cc4de
--- /dev/null
+++ b/prosjekt/view.js
@@ -0,0 +1,45 @@
+const page = model.app.currentPage;
+
+function updateView(){
+ if (page == "home"){
+ viewhome();
+ } else if (page == 'new'){
+ viewNew();
+ }
+}
+function viewhome(){
+ navbar();
+ document.getElementById('mainView').innerHTML = /*html*/ `
+
Hello from Home
+
+ `;
+ // mainHtml.innerHTML += 'Hello'
+
+}
+
+function navbar(){
+ document.getElementById('header').innerHTML = /*html*/ `
+
`;
+}
+function viewNew(){
+ navbar();
+ document.getElementById('mainView').innerHTML = '
Hello from new
'
+}
+function goNew(){
+ model.app.currentPage = 'new';
+ updateView();
+}
+function dialog() {
+ document.getElementById('mainView'),innerHTML += /*html*/ `
+
+ `;
+}
\ No newline at end of file