From 36aaf4cdc8f978920db073aba03b136fc8a7a432 Mon Sep 17 00:00:00 2001 From: fahimkhan Date: Tue, 20 Sep 2016 17:33:40 +0530 Subject: Subject: Added layout Description: Added layput to About and Contact page. --- public/css/customstylesheet.css | 5 + routes/routes.js | 5 + views/about.html | 9 +- views/base.html | 0 views/contact.html | 13 +- views/footer.html | 8 + views/head.html | 21 +++ views/header.html | 24 +++ views/index.html | 69 ++------- views/indexes.html | 313 ++++++++++++++++++++++++++++++++++++++++ 10 files changed, 404 insertions(+), 63 deletions(-) delete mode 100644 views/base.html create mode 100644 views/footer.html create mode 100644 views/head.html create mode 100644 views/header.html create mode 100644 views/indexes.html diff --git a/public/css/customstylesheet.css b/public/css/customstylesheet.css index 26ae4b7..35fe451 100644 --- a/public/css/customstylesheet.css +++ b/public/css/customstylesheet.css @@ -11,4 +11,9 @@ body { .footer{ background: #222222; + position: fixed; + height: 50px; + bottom: 0; + width: 100%; + } diff --git a/routes/routes.js b/routes/routes.js index e20ae07..6889f74 100644 --- a/routes/routes.js +++ b/routes/routes.js @@ -10,6 +10,11 @@ module.exports = function(express,app,fs,os,io,PythonShell,scriptPath){ }); + router.get('/index',function(req,res,next){ + res.render('index',{host:app.get('host'),title:'Ngspice Simulator'}); + + }); + /*About Page*/ router.get('/about',function(req,res,next){ res.render('about',{title:'Ngspice Simulator'}); diff --git a/views/about.html b/views/about.html index c43a799..2ba0e0f 100644 --- a/views/about.html +++ b/views/about.html @@ -1,9 +1,12 @@ - <%= title %> + <% include head.html %> +
+ <% include header.html %> +

About

@@ -13,6 +16,10 @@ The FOSSEE project is part of the National Mission on Education through Information and Communication Technology (ICT), Ministry of Human Resources and Development, Government of India.

+ + \ No newline at end of file diff --git a/views/base.html b/views/base.html deleted file mode 100644 index e69de29..0000000 diff --git a/views/contact.html b/views/contact.html index 946da42..4775e4c 100644 --- a/views/contact.html +++ b/views/contact.html @@ -1,11 +1,18 @@ - <%= title %> + <% include head.html %> -

Welcome to contact Page

- +
+ <% include header.html %> +
+

Contact

+ + + diff --git a/views/footer.html b/views/footer.html new file mode 100644 index 0000000..dae8b59 --- /dev/null +++ b/views/footer.html @@ -0,0 +1,8 @@ +
+ +

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
+

+ + + +
diff --git a/views/head.html b/views/head.html new file mode 100644 index 0000000..04a091c --- /dev/null +++ b/views/head.html @@ -0,0 +1,21 @@ + + +<%= title %> + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/views/header.html b/views/header.html new file mode 100644 index 0000000..7a9f64e --- /dev/null +++ b/views/header.html @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/views/index.html b/views/index.html index 69fc532..185f305 100644 --- a/views/index.html +++ b/views/index.html @@ -1,55 +1,12 @@ - - <%= title %> - - - - - - - - - - - - - - - - - - - + <% include head.html %> - - - +
+ <% include header.html %> +
@@ -116,18 +73,12 @@ v(in) v(out)
- +
+ <% include footer.html %> + +
+ + + + + + + + + + + + + + + + +
+
+

Ngspice

+ SPICE (Simulation Program with Integrated Circuit Emphasis) is a widely used tool for simulating electrical circuits. The original version was developed at the Electronics Research Laboratory of the University of California, Berkeley. Dozens of variations of SPICE exist, with both free and commercial versions available. + + This site allows you to run ngspice simulations from a web browser environment. Whether you are using a Windows, Linux, or Mac computer, a smart phone, or a tablet, you always should be able to run a SPICE simulation. + +
+
+ + +
+

Editor

+

Please write your ngspice netlist in the below editor.

+
+
+ + +

Plots:

+ +
+
+
+ + + +
+ +
+ +
+

Server acknowledgement goes here

+
+ + + + +
+ + + + + + -- cgit