add t-shirt banner
This commit is contained in:
committed by
Berkeley Martinez
parent
241ca8097d
commit
cd964425f7
@ -18,35 +18,17 @@ block content
|
|||||||
span.text-primary #{daysRunning}  
|
span.text-primary #{daysRunning}  
|
||||||
| days ago.
|
| days ago.
|
||||||
.spacer
|
.spacer
|
||||||
if (user && !user.tshirtVote && user.progressTimestamps.length > 5)
|
if (user && user.progressTimestamps.length > 5)
|
||||||
h3.text-center Vote for the T-shirt design you like the most.
|
#tshirt-notice.col-xs-12.col-md-8.col-md-offset-2.hidden
|
||||||
h4.text-center We'll announce the winning design during our Summit on Saturday at Noon EST on 
|
h2.text-center Get our first-edition t-shirt
|
||||||
a(href='https://twitch.tv/freecodecamp' target='_blank') Twitch.tv
|
img.thumbnail.img-center.img-responsive(src="http://i.imgur.com/o07uuOL.png")
|
||||||
|  and it will become our community's first official t-shirt (in women's and men's sizes).
|
p.text-justify Our community has voted. Get our winning design emblazoned on a durable, American-made American Apparel shirt (available in women's and men's sizes). 
|
||||||
.row
|
a(href="https://teespring.com/free-code-camp-shirt-eu" target="_blank") Also ships from Europe
|
||||||
.col-xs-6
|
| .
|
||||||
a(href="http://i.imgur.com/LlXGa5y.png" data-lightbox="img-enlarge")
|
a.button.btn.btn-block.signup-btn(href="https://teespring.com/get-free-code-camp-t-shirt" target="_blank") Get yours
|
||||||
img.img-responsive(src='http://i.imgur.com/LlXGa5y.png' alt="t-shirt option 1 women's")
|
.button-spacer
|
||||||
.col-xs-6
|
#hideTshirtNoticeButton.button.btn.btn-block.btn-info Hide this
|
||||||
a(href="http://i.imgur.com/aefwnnv.png" data-lightbox="img-enlarge")
|
.spacer
|
||||||
img.img-responsive(src='http://i.imgur.com/aefwnnv.png' alt="t-shirt option 2 women's")
|
|
||||||
.button-spacer
|
|
||||||
.row
|
|
||||||
.col-xs-6
|
|
||||||
a(href="http://i.imgur.com/aYH0aqf.png" data-lightbox="img-enlarge")
|
|
||||||
img.img-responsive(src='http://i.imgur.com/aYH0aqf.png' alt="t-shirt option 1 men's")
|
|
||||||
.col-xs-6
|
|
||||||
a(href="http://i.imgur.com/v9KlV4g.png" data-lightbox="img-enlarge")
|
|
||||||
img.img-responsive(src='http://i.imgur.com/v9KlV4g.png' alt="t-shirt option 2 men's")
|
|
||||||
.button-spacer
|
|
||||||
.row
|
|
||||||
.col-xs-6
|
|
||||||
h3.text-center "Minified JavaScript Logo"
|
|
||||||
a.button.btn.btn-block.btn-primary(href='/vote1') Vote for this Design
|
|
||||||
.col-xs-6
|
|
||||||
h3.text-center "Function Call Logo"
|
|
||||||
a.button.btn.btn-block.btn-primary(href='/vote2') Vote for this design
|
|
||||||
.spacer
|
|
||||||
.row
|
.row
|
||||||
.col-xs-12.col-sm-8.col-sm-offset-2
|
.col-xs-12.col-sm-8.col-sm-offset-2
|
||||||
h3 800 Hours of Practice:
|
h3 800 Hours of Practice:
|
||||||
@ -140,21 +122,15 @@ block content
|
|||||||
script.
|
script.
|
||||||
var username = !{JSON.stringify(user && user.username || '')};
|
var username = !{JSON.stringify(user && user.username || '')};
|
||||||
var lastCompleted = !{JSON.stringify(lastCompleted || false)}
|
var lastCompleted = !{JSON.stringify(lastCompleted || false)}
|
||||||
// #announcementModal.modal(tabindex='-1')
|
$(document).ready(function () {
|
||||||
// .modal-dialog.animated.fadeInUp.fast-animation
|
if (!localStorage || !localStorage.hideTshirtNotice) {
|
||||||
// .modal-content
|
$("#tshirt-notice").removeClass("hidden");
|
||||||
// .modal-header.challenge-list-header Add us to your LinkedIn profile
|
}
|
||||||
// a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
$("#hideTshirtNoticeButton").on("click", function() {
|
||||||
// .modal-body
|
$("#tshirt-notice").addClass('animated fadeOut');
|
||||||
// h3.text-left LinkedIn now recognizes Free Code Camp as a university.
|
setTimeout(function() {
|
||||||
// img.img-responsive.img-center(src='https://www.evernote.com/l/AHTzkHwtg-BHj57bqqDL7WFF8WgrI5V8cxwB/image.png')
|
$("#tshirt-notice").hide();
|
||||||
// h3.text-left It takes less than a minute to add Free Code Camp to your LinkedIn profile.
|
}, 1000);
|
||||||
// a.btn.btn-lg.btn-info.btn-block(name='_csrf', value=_csrf, aria-hidden='true', href='/linkedin', target='_blank') Show me how to do this
|
localStorage.hideTshirtNotice = "true";
|
||||||
// a.btn.btn-lg.btn-primary.btn-block(href='#', data-dismiss='modal', aria-hidden='true') Thanks for the heads-up
|
});
|
||||||
//script.
|
});
|
||||||
// $(document).ready(function () {
|
|
||||||
// if (!localStorage || !localStorage.linkedIn) {
|
|
||||||
// $('#announcementModal').modal('show');
|
|
||||||
// localStorage.linkedIn = "true";
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
Reference in New Issue
Block a user