Worked out the footer

This commit is contained in:
Asutosh Palai
2016-06-19 13:28:49 +05:30
parent b6434077c7
commit 05cee14167
4 changed files with 53 additions and 200 deletions

View File

@ -1,20 +1,25 @@
--- ---
- title: Behind the scenes of Prelude'16 - title: Behind the scenes of Prelude'16
id: lTo0HwzFOgU
link: https://www.youtube.com/watch?v=lTo0HwzFOgU link: https://www.youtube.com/watch?v=lTo0HwzFOgU
tag: music tag: music
- title: WORC - Election Reforms - title: WORC - Election Reforms
link: "https://www.youtube.com/watch?v=YHoJ-z9zXlQ" id: YHoJ-z9zXlQ
link: https://www.youtube.com/watch?v=YHoJ-z9zXlQ
tag: politics tag: politics
- title: "IITR: Students protest against expulsion" - title: "IITR: Students protest against expulsion"
id: OYG5_vCIDDg
link: https://www.youtube.com/watch?v=OYG5_vCIDDg link: https://www.youtube.com/watch?v=OYG5_vCIDDg
tag: students tag: students
- title: Behind the Scenes of Jashn'15 - Watch Out! News Agency & Cinematic Section - title: Behind the Scenes of Jashn'15 - Watch Out! News Agency & Cinematic Section
id: uXOoygliTo8
link: https://www.youtube.com/watch?v=uXOoygliTo8 link: https://www.youtube.com/watch?v=uXOoygliTo8
tag: cinematics tag: cinematics
- title: The Making of 'Mantrimandal' and 'Ye Kaisa Swabhiman' - Watch Out! News Agency, IIT Roorkee - title: The Making of 'Mantrimandal' and 'Ye Kaisa Swabhiman' - Watch Out! News Agency, IIT Roorkee
id: 3KtoxJBugdQ
link: https://www.youtube.com/watch?v=3KtoxJBugdQ link: https://www.youtube.com/watch?v=3KtoxJBugdQ
tag: dramatics tag: dramatics

View File

@ -1,10 +1,16 @@
<footer class="pure-g"> <footer class="container-fluid">
<div class="pure-u-2-3"> <div class="center-both">
<nav> <div class="container">
<a href="/team/">Team</a> <div class="row">
<a href="/about/">About Us</a> <p class="col-sm-4 pull-left">&copy; Copyright 2016 &#8212; Watch Out! News Agency</p>
<a href="http://fb.com/WatchOutNewsAgency">Facebook</a> <div class="col-sm-4 pull-right">
</nav> <div class="row">
<p>&copy; Copyright 2016 &#8212; Watch Out! News Agency</p> <a class="col-sm-4" href="/team/">Team</a>
<a class="col-sm-4" href="/about/">About Us</a>
<a class="col-sm-4" href="http://fb.com/WatchOutNewsAgency">Facebook</a>
</div>
</div>
</div>
</div>
</div> </div>
</footer> </footer>

View File

@ -16,7 +16,7 @@ $featured-articles-title-color: #373737;
$article-cover-img-width: 355px; $article-cover-img-width: 355px;
$article-cover-img-height: 190px; $article-cover-img-height: 190px;
$carousel-bg-color: #333; $carousel-bg-color: #333;
$carousel-height: 500px; $carousel-height: 625px;
// =============== /VARS ===============// // =============== /VARS ===============//
@ -197,6 +197,7 @@ body {
width: $new-article-img-width; width: $new-article-img-width;
height: $new-article-img-height; height: $new-article-img-height;
border-radius: 1%; border-radius: 1%;
box-shadow: 0 0 15px;
} }
.details { .details {
@ -213,7 +214,7 @@ body {
text-transform: uppercase; text-transform: uppercase;
font-family: AvenirNext; font-family: AvenirNext;
font-size: 14px; font-size: 14px;
color: $new-article-title-color; color: $new-article-tag-color;
} }
} }
} }
@ -279,14 +280,19 @@ body {
/* Carousel base class */ /* Carousel base class */
.carousel { .carousel {
height: 500px; height: $carousel-height;
margin-bottom: -60px;
} }
.carousel-caption { .carousel-caption {
z-index: 10; z-index: 10;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
h1 {
font-weight: bold;
line-height: 0.98;
text-align: center;
color: #ffffff;
}
} }
/* Declare heights because of positioning of img element */ /* Declare heights because of positioning of img element */
@ -294,13 +300,19 @@ body {
height: $carousel-height;; height: $carousel-height;;
background-color: $carousel-bg-color; background-color: $carousel-bg-color;
} }
.carousel-inner > .item > img { .carousel-inner{
position: absolute;
top: 0;
left: 0;
min-width: 100%;
height: 500px;
.video-container {
height: 90%;
}
> .item > img {
position: absolute;
top: 0;
left: 0;
min-width: 100%;
height: 500px;
}
} }
// ============ /CAROUSEL ============= // // ============ /CAROUSEL ============= //
@ -365,171 +377,8 @@ blockquote {
padding-left: 10px; padding-left: 10px;
font-style: italic; font-style: italic;
} }
.pagination {
text-align: center;
font-style: italic;
img {
position: relative;
top: 12px;
opacity: 0.7;
cursor: pointer;
@include transition(all, 0.2s, ease-in);
&:hover {
opacity: 1;
@include transition(all, 0.2s, ease-in);
}
&.disabled {
opacity: 0.5;
&:hover {
opacity: 0.5;
}
}
}
}
// ============== /COMPONENETS ============== // // ============== /COMPONENETS ============== //
// ============== CONTENT ============== //
.cover-oold {
background: white;
margin: auto;
display: block;
position: relative;
margin-bottom: 30px;
z-index: 10;
@include shadow();
img {
width: 100%;
display: block;
opacity: 0.8;
@include transition(all, 0.2s, ease-in);
&:hover {
opacity: 1;
@include transition(all, 0.2s, ease-in);
}
&.hidden {
visibility: hidden;
height: 10em;
}
}
.tag {
width: 100px;
position: absolute;
top: 0px;
right: 0px;
z-index: 1;
}
a:hover {
border: none;
color: #000;
}
.details {
position: absolute;
bottom: 0;
width: 100%;
background: rgba(255,255,255,0.8);
padding: 20px 20px;
@include box-sizing();
h2 {
font-weight: 500;
margin: 0 0 5px 0;
}
p {
margin: 0;
}
}
}
.article-old {
border: 1px solid #ccc;
background: white;
padding-bottom: 10px;
color: #6D6D6D;
@include shadow();
@include box-sizing();
&:hover {
color: #333;
img.article-cover {
opacity: 1;
}
}
a:hover {
border: none;
color: #000;
}
.details {
padding: 5px 10px;
h3 {
margin: 0 0 10px 0;
color: #363845;
}
blockquote, p {
margin: 0;
border: none;
}
}
img.article-cover {
border-bottom: 1px solid #ccc;
width: 100%;
opacity: 0.8;
@include transition(all, 0.2s, ease-in);
}
.tag {
width: 100px;
position: absolute;
top: 0px;
z-index: 1;
}
&.faceoff {
border-top: 2px solid #E67E22;
}
&.bigstory {
border-top: 2px solid #4390DF;
}
&.coverstory {
border-top: 2px solid #FF5050;
}
&.techila {
border-top: 2px solid #9B59B6;
}
&.phekingnews {
border-top: 2px solid #F1C40F;
}
&.editorial {
border-top: 2px solid #2ECC71;
}
&.news {
border-top: 2px solid #1ABC9C;
}
&.almostfamous {
border-top: 2px solid #34495E;
}
}
// ============== CONTENT ============== //
// ============== POST ============== // // ============== POST ============== //
.post { .post {
@ -557,22 +406,11 @@ blockquote {
// ============== FOOTER ============== // // ============== FOOTER ============== //
footer { footer {
background: white; position: relative;
background: #1c1c1c;
div{ height: 65px;
display: block; font-weight: normal;
margin: auto; color: #ffffff;
}
nav {
margin: 1em 0;
float: right;
a {
margin: 0px 10px;
padding: 2px 0px;
}
}
} }
// ============== /FOOTER ============== // // ============== /FOOTER ============== //

View File

@ -16,7 +16,7 @@ title: "Home"
</div> </div>
<div class="details text-center "> <div class="details text-center ">
<h3 class="title">{{ post.title | truncatewords: 4}}</h3> <h3 class="title">{{ post.title | truncatewords: 4}}</h3>
<p class="tag">{{ post.subcategory }}</p> <p class="tag">{{ post.tag }}</p>
</div> </div>
</a> </a>
</div> </div>
@ -73,6 +73,11 @@ title: "Home"
{% for video in site.data.youtube %} {% for video in site.data.youtube %}
<div class="item {% if forloop.first %}active{% endif %}"> <div class="item {% if forloop.first %}active{% endif %}">
<div class="container"> <div class="container">
<div class="video-container center-both">
<div class="embed-responsive embed-responsive-16by9">
<iframe src="https://www.youtube.com/embed/{{ video.id }}" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div class="carousel-caption"> <div class="carousel-caption">
<h1>{{ video.title }}</h1> <h1>{{ video.title }}</h1>
</div> </div>
@ -96,4 +101,3 @@ title: "Home"
class="sr-only">Next</span> class="sr-only">Next</span>
</a> </a>
</div><!-- /.carousel --> </div><!-- /.carousel -->