simplify the camper news UX
This commit is contained in:
@ -1,40 +1,43 @@
|
||||
.col-xs-12
|
||||
.visible-xs.visible-sm
|
||||
.btn-group.input-group.btn-group-justified(data-toggle='buttons')
|
||||
label.btn.btn-primary.btn-big(class="#{ page === 'hot' ? 'active' : '' }")
|
||||
input#option1(href='/stories/hot', type='radio', name='options')
|
||||
i.ion-ios-pulse-strong
|
||||
label.btn.btn-primary.btn-big(class="#{ page === 'recent' ? 'active' : '' }")
|
||||
input#option2(href='/stories/recent', type='radio', name='options')
|
||||
i.ion-ios-clock
|
||||
label.btn.btn-primary.btn-big(class="#{ page === 'submit' ? 'active' : page === 'storySubmission' ? 'active' : '' }")
|
||||
input#option3(href='/stories/submit', type='radio', name='options')
|
||||
i.ion-plus-circled
|
||||
label.btn.btn-primary.btn-big(class="#{ page === 'search' ? 'active' : '' }")
|
||||
input#option4(href='/stories/search', type='radio', name='options')
|
||||
i.ion-search
|
||||
.visible-md.visible-lg
|
||||
.btn-group.input-group.btn-group-justified(data-toggle='buttons')
|
||||
label.btn.btn-primary.btn-big(class="#{ page === 'hot' ? 'active' : '' }")
|
||||
input#option1(href='/stories/hot', type='radio', name='options')
|
||||
i.ion-ios-pulse-strong  
|
||||
| Hot
|
||||
label.btn.btn-primary.btn-big(class="#{ page === 'recent' ? 'active' : '' }")
|
||||
input#option2(href='/stories/recent', type='radio', name='options')
|
||||
i.ion-ios-clock  
|
||||
| New
|
||||
label.btn.btn-primary.btn-big(class="#{ page === 'submit' ? 'active' : page === 'storySubmission' ? 'active' : '' }")
|
||||
input#option3(href='/stories/submit', type='radio', name='options')
|
||||
i.ion-plus-circled  
|
||||
| Submit
|
||||
label.btn.btn-primary.btn-big(class="#{ page === 'search' ? 'active' : '' }")
|
||||
input#option4(href='/stories/search', type='radio', name='options')
|
||||
i.ion-search  
|
||||
| Search
|
||||
|
||||
a.btn.btn-primary.btn-big.btn-block(href='/stories/submit' class="#{ page === 'hot' ? '' : 'hidden' }") Submit a Code-related Link
|
||||
a.btn.btn-success.btn-big.btn-block(href='/stories/hot' class="#{ (page === 'show' || page === 'submit' || page === 'storySubmission') ? '' : 'hidden' }") Show all Links
|
||||
//.visible-xs.visible-sm
|
||||
// .btn-group.input-group.btn-group-justified(data-toggle='buttons')
|
||||
// label.btn.btn-primary.btn-big(class="#{ page === 'hot' ? 'active' : '' }")
|
||||
// input#option1(href='/stories/hot', type='radio', name='options')
|
||||
// i.ion-ios-pulse-strong
|
||||
// label.btn.btn-primary.btn-big(class="#{ page === 'recent' ? 'active' : '' }")
|
||||
// input#option2(href='/stories/recent', type='radio', name='options')
|
||||
// i.ion-ios-clock
|
||||
// label.btn.btn-primary.btn-big(class="#{ page === 'submit' ? 'active' : page === 'storySubmission' ? 'active' : '' }")
|
||||
// input#option3(href='/stories/submit', type='radio', name='options')
|
||||
// i.ion-plus-circled
|
||||
// label.btn.btn-primary.btn-big(class="#{ page === 'search' ? 'active' : '' }")
|
||||
// input#option4(href='/stories/search', type='radio', name='options')
|
||||
// i.ion-search
|
||||
//.visible-md.visible-lg
|
||||
// .btn-group.input-group.btn-group-justified(data-toggle='buttons')
|
||||
// label.btn.btn-primary.btn-big(class="#{ page === 'hot' ? 'active' : '' }")
|
||||
// input#option1(href='/stories/hot', type='radio', name='options')
|
||||
// i.ion-ios-pulse-strong  
|
||||
// | Hot
|
||||
// label.btn.btn-primary.btn-big(class="#{ page === 'recent' ? 'active' : '' }")
|
||||
// input#option2(href='/stories/recent', type='radio', name='options')
|
||||
// i.ion-ios-clock  
|
||||
// | New
|
||||
// label.btn.btn-primary.btn-big(class="#{ page === 'submit' ? 'active' : page === 'storySubmission' ? 'active' : '' }")
|
||||
// input#option3(href='/stories/submit', type='radio', name='options')
|
||||
// i.ion-plus-circled  
|
||||
// | Submit
|
||||
// label.btn.btn-primary.btn-big(class="#{ page === 'search' ? 'active' : '' }")
|
||||
// input#option4(href='/stories/search', type='radio', name='options')
|
||||
// i.ion-search  
|
||||
// | Search
|
||||
|
||||
script.
|
||||
$('label').on('click', function() {
|
||||
window.location = ($(this).children('input').attr('href'));
|
||||
});
|
||||
|
||||
.spacer
|
||||
.spacer
|
||||
|
Reference in New Issue
Block a user