Skip to content

Commit

Permalink
add home.css
Browse files Browse the repository at this point in the history
add header.jsp
add home-left.jsp
  • Loading branch information
leelance committed Jul 5, 2014
1 parent 44d282e commit 44c961b
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 67 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@ local.properties

# Locally stored "Eclipse launch configurations"
*.launch
/spring-boot-samples
66 changes: 0 additions & 66 deletions spring-boot-samples/.gitignore
Original file line number Diff line number Diff line change
@@ -1,67 +1 @@
*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/**

# Package Files #
*.jar
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
*.pydevproject
.metadata
.gradle
bin/**
tmp/**
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/**
.loadpath

# External tool builders
.externalToolBuilders/**

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

# sbteclipse plugin
.target

# TeXlipse plugin
.texlipse
# eclipse specific git ignore
*.pydevproject
.project
.metadata
.metadata/**
bin/**
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/**
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch
.DS_Store
.log
/target
80 changes: 80 additions & 0 deletions spring-boot-samples/src/main/resources/static/css/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
@CHARSET "UTF-8";
body {
padding-top: 50px;
}

.nav-span{
display: block;
padding-bottom: 15px;
padding-top: 15px;
line-height: 20px;
color: #fff;
}

/*
* Global add-ons
*/

.sub-header {
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}

/*
* Top navigation
* Hide default border to remove 1px line.
*/
.navbar-fixed-top {
border: 0;
}

/*
* Sidebar
*/

/* Hide for mobile, show later */
.sidebar {
display: none;
}
@media (min-width: 768px) {
.sidebar {
position: fixed;
top: 35px;
bottom: 0;
left: 0;
z-index: 1000;
display: block;
padding: 20px;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
background-color: #f5f5f5;
border-right: 1px solid #eee;
}
}

/* Sidebar navigation */
.nav-sidebar {
margin-right: -21px; /* 20px padding + 1px border */
margin-bottom: 20px;
margin-left: -20px;
}
.nav-sidebar > li > a {
padding-right: 20px;
padding-left: 20px;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
color: #fff;
background-color: #428bca;
}

.main {
padding: 10px;
}
@media (min-width: 768px) {
.main {
padding-right: 40px;
padding-left: 40px;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Project name</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><span class="nav-span">欢迎, ${cur_user.email}</span></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<ul class="nav nav-sidebar">
<li class="active"><a href="#">Overview</a></li>
<li><a href="#">Reports</a></li>
<li><a href="#">Analytics</a></li>
<li><a href="#">Export</a></li>
</ul>

0 comments on commit 44c961b

Please sign in to comment.