Merge branch 'master' of github.com:kyledrake/neocities-web

This commit is contained in:
Kyle Drake 2013-09-25 14:31:09 -07:00
commit 6b424a2e88
9 changed files with 110 additions and 59 deletions

View file

@ -15,12 +15,12 @@ GEM
columnize (0.3.6) columnize (0.3.6)
connection_pool (1.1.0) connection_pool (1.1.0)
crack (0.3.2) crack (0.3.2)
debugger (1.6.0) debugger (1.6.1)
columnize (>= 0.3.1) columnize (>= 0.3.1)
debugger-linecache (~> 1.2.0) debugger-linecache (~> 1.2.0)
debugger-ruby_core_source (~> 1.2.1) debugger-ruby_core_source (~> 1.2.3)
debugger-linecache (1.2.0) debugger-linecache (1.2.0)
debugger-ruby_core_source (1.2.2) debugger-ruby_core_source (1.2.3)
fabrication (2.7.1) fabrication (2.7.1)
faker (1.1.2) faker (1.1.2)
i18n (~> 0.5) i18n (~> 0.5)

View file

@ -18,7 +18,7 @@ body{background:#CCDF9B}
// while allowing for larger sections to expand the whole page for BG purposes // while allowing for larger sections to expand the whole page for BG purposes
.content{ .content{
margin:0 auto; margin:0 auto;
max-width:1000px; max-width:1200px;
padding:$spacing*5; padding:$spacing*5;
& > :last-child{ & > :last-child{

View file

@ -4,33 +4,58 @@
.website-Gallery{ .website-Gallery{
list-style:none; list-style:none;
margin:0 auto; padding:10px 0;
padding:0;
width:90%;
li{ li{
@extend .col-25; @extend .col-25;
float:left; float:left;
margin-bottom:$spacing*2; margin-bottom:$spacing*2;
@media (max-device-width:480px), screen and (max-width:800px){width:50%} @media (max-device-width:480px), screen and (max-width:800px){
width:50%
}
} }
a{ a{
padding:0 $spacing*2; padding:0 $spacing*2;
display:block; display:block;
} }
&.int-Gall{
li{
border:1px solid #ccc;
margin:0 .5% 12px;
width:24%;
@media (max-device-width:480px), screen and (max-width:800px){
width:49%
}
a{
padding:8px;
}
}
}
} }
.neo-SS{ .neo-SS, .neo-Screen-Shot{
background:#fff; background:#fff;
@include box-shadow($bs-4); @include box-shadow($bs-4);
display:block; display:block;
height:auto!important; height:auto!important;
padding:$spacing*2; padding:$spacing*2;
position:relative;
width:100%; width:100%;
} }
.hp-Gallery img{ .img-Holder{
-moz-background-size:cover!important;
-webkit-background-size:cover!important;
background-size:cover!important;
display:block;
}
.hp-Gallery img, .neo-Screen-Shot img{
width:100% width:100%
} }

View file

@ -935,7 +935,7 @@ body {
.content, .footer-Content { .content, .footer-Content {
margin: 0 auto; margin: 0 auto;
max-width: 1000px; max-width: 1200px;
padding: 20px; } padding: 20px; }
.content > :last-child, .footer-Content > :last-child { .content > :last-child, .footer-Content > :last-child {
margin-bottom: 0; } margin-bottom: 0; }
@ -1385,9 +1385,7 @@ a {
.website-Gallery { .website-Gallery {
list-style: none; list-style: none;
margin: 0 auto; padding: 10px 0; }
padding: 0;
width: 90%; }
.website-Gallery li { .website-Gallery li {
float: left; float: left;
margin-bottom: 8px; } margin-bottom: 8px; }
@ -1397,8 +1395,17 @@ a {
.website-Gallery a { .website-Gallery a {
padding: 0 8px; padding: 0 8px;
display: block; } display: block; }
.website-Gallery.int-Gall li {
border: 1px solid #ccc;
margin: 0 .5% 12px;
width: 24%; }
@media (max-device-width: 480px), screen and (max-width: 800px) {
.website-Gallery.int-Gall li {
width: 49%; } }
.website-Gallery.int-Gall li a {
padding: 8px; }
.neo-SS { .neo-SS, .neo-Screen-Shot {
background: #fff; background: #fff;
-moz-box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.2);
@ -1406,7 +1413,14 @@ a {
display: block; display: block;
height: auto !important; height: auto !important;
padding: 8px; padding: 8px;
position: relative;
width: 100%; } width: 100%; }
.hp-Gallery img { .img-Holder {
-moz-background-size: cover !important;
-webkit-background-size: cover !important;
background-size: cover !important;
display: block; }
.hp-Gallery img, .neo-Screen-Shot img {
width: 100%; } width: 100%; }

File diff suppressed because one or more lines are too long

View file

@ -26,4 +26,11 @@ select, textarea, input[type="text"], input[type="password"], input[type="dateti
.page{background:#F6F0E6} .page{background:#F6F0E6}
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
line-height:inherit; height:auto!important} line-height:inherit; height:auto!important}
.scroll-Admin{
background:rgba(255,255,255,.4);
border:1px solid #ccc;
max-height:400px;
overflow:auto;
}

BIN
public/img/placeholder.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 991 B

View file

@ -1,37 +1,40 @@
.row .content-Base
.span12 .row.content
h1 SECRET NSA BACKDOOR REPORTING ZONE .col
h1.beta SECRET NSA BACKDOOR REPORTING ZONE
.row
.span6 .row.content
.col.col-50
h2 Ban User
h3 Ban User
form action="/admin/banhammer" method="POST"
input name="csrf_token" type="hidden" value="#{csrf_token}" form action="/admin/banhammer" method="POST"
p Site Name: input name="csrf_token" type="hidden" value="#{csrf_token}"
input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off" p Site Name:
br input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off"
input.btn.btn-danger type="submit" value="Ban" br
.span6 input.btn.btn-danger type="submit" value="Ban"
h2 Banned Terrorists .col.col-50
- @banned_sites.each do |banned_site| h2 Banned Terrorists
= banned_site.username .scroll-Admin
br - @banned_sites.each do |banned_site|
= banned_site.username
br
.row
.span6
h2 Mark NSFW .row.content
.col.col-50
form action="/admin/mark_nsfw" method="POST" h3 Mark NSFW
input name="csrf_token" type="hidden" value="#{csrf_token}"
p Site name: form action="/admin/mark_nsfw" method="POST"
input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off" input name="csrf_token" type="hidden" value="#{csrf_token}"
br p Site name:
input.btn.btn-danger type="submit" value="Mark NSFW" input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off"
.span6 br
h2 NSFW Sites input.btn.btn-danger type="submit" value="Mark NSFW"
- @nsfw_sites.each do |nsfw_site| .col.col-50
= nsfw_site.username h2 NSFW Sites
br .scroll-Admin
- @nsfw_sites.each do |nsfw_site|
= nsfw_site.username
br

View file

@ -39,12 +39,14 @@
</div> </div>
</div> <!-- end .row.content --> </div> <!-- end .row.content -->
<br />
<ul class="row website-Gallery"> <ul class="row website-Gallery content int-Gall">
<% @sites.each do |site| %> <% @sites.each do |site| %>
<li> <li>
<a href="http://<%= site.username %>.neocities.org" target="_blank"> <a href="http://<%= site.username %>.neocities.org" class="neo-Screen-Shot" target="_blank" title="Website of <%= site.username %>">
<img src="http://neocities.org/site_screenshots/<%= site.username %>.jpg" class="neo-SS" alt="<%= site.username %>" /> <span class="img-Holder" style="background:url(http://neocities.org/site_screenshots/<%= site.username %>.jpg) no-repeat;">
<img src="/img/placeholder.png" alt="<%= site.username %>" />
</span>
</a> </a>
</li> </li>
<% end %> <% end %>