summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJayaram Pai2014-03-15 12:07:33 +0530
committerJayaram Pai2014-03-15 12:07:33 +0530
commitec49231eb8ea0bb64788b07cdb600c59762e4422 (patch)
treeb56b4b2c5c310c42267bd28ead4f50929826a1f2 /static
parent8eb49e53e03bc17958386984f64b08f092598739 (diff)
downloadFOSSEE-Forum-ec49231eb8ea0bb64788b07cdb600c59762e4422.tar.gz
FOSSEE-Forum-ec49231eb8ea0bb64788b07cdb600c59762e4422.tar.bz2
FOSSEE-Forum-ec49231eb8ea0bb64788b07cdb600c59762e4422.zip
added cfd workshop notification
Diffstat (limited to 'static')
-rw-r--r--static/website/css/nice-bar.css40
-rw-r--r--static/website/js/nice-bar.js6
-rw-r--r--static/website/templates/base.html9
-rw-r--r--static/website/templates/index.html2
4 files changed, 57 insertions, 0 deletions
diff --git a/static/website/css/nice-bar.css b/static/website/css/nice-bar.css
new file mode 100644
index 0000000..6159b09
--- /dev/null
+++ b/static/website/css/nice-bar.css
@@ -0,0 +1,40 @@
+.nice-bar {
+ display: none;
+ width: 100%;
+ background: #70a865;
+ border-bottom: 3px solid #27ae60;
+ font-size: 0.85em;
+}
+.nice-bar .nice-text {
+ width: 960px;
+ margin: 0 auto;
+ padding: 12px 0;
+ color: #ffffff;
+ font-weight: bold;
+}
+.nice-bar .nice-button {
+ padding: 2px 5px;
+ background: #111111;
+ color: #ffffff;
+ margin: 0 0 0 10px;
+
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ -o-border-radius: 3px;
+ border-radius: 3px;
+}
+.nice-bar .nice-close {
+ float: right;
+ padding: 1px 7px 2px 7px;
+ background: #111111;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ -o-border-radius: 3px;
+ border-radius: 3px;
+}
+.nice-bar .nice-close:hover {
+ cursor: pointer;
+}
+.nice-bar span.ext{
+ display: none;
+}
diff --git a/static/website/js/nice-bar.js b/static/website/js/nice-bar.js
new file mode 100644
index 0000000..b27ba2b
--- /dev/null
+++ b/static/website/js/nice-bar.js
@@ -0,0 +1,6 @@
+$(document).ready(function() {
+ $(".nice-bar").slideDown();
+ $(".nice-close").click(function() {
+ $(".nice-bar").slideUp();
+ });
+});
diff --git a/static/website/templates/base.html b/static/website/templates/base.html
index 49c5f18..26e24c4 100644
--- a/static/website/templates/base.html
+++ b/static/website/templates/base.html
@@ -4,8 +4,17 @@
<title>Spoken-Tutorial Forums</title>
<link rel="stylesheet" href="{% static 'website/css/bootstrap.min.css' %}" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="{% static 'website/css/main.css' %}" type="text/css" media="screen" charset="utf-8" />
+ <link rel="stylesheet" href="{% static 'website/css/nice-bar.css' %}" type="text/css" media="screen" charset="utf-8" />
</head>
<body>
+ <div class="nice-bar">
+ <p class="nice-text">
+ One day CFD workshop on 22<sup>nd</sup> March 2014.
+ <a class="nice-button" href="http://cfd.fossee.in/workshop">View more</a> details about the workshop.
+ <a class="nice-button" href="http://cfdworkshop.doattend.com">Click here</a> for registration.
+ <span class="nice-close">x</span>
+ </p>
+ </div>
<div id="page-wrapper">
<div id="header-wrapper">
<div id="header-inner">
diff --git a/static/website/templates/index.html b/static/website/templates/index.html
index d543b2b..5046c13 100644
--- a/static/website/templates/index.html
+++ b/static/website/templates/index.html
@@ -1,4 +1,5 @@
{% extends 'website/templates/base.html' %}
+{% load static %}
{% block content %}
{% load count_tags %}
<h4><u>Recent Questions</u></h4>
@@ -101,4 +102,5 @@
<script>
$('span').tooltip();
</script>
+<script src="{% static 'website/js/nice-bar.js' %}"></script>
{% endblock %}