mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Merge branch 'v2' of github.com:neocities/neocities into v2
This commit is contained in:
commit
410acd3e7e
13 changed files with 201 additions and 1462 deletions
|
@ -14,7 +14,7 @@
|
|||
}
|
||||
}
|
||||
.content, .footer-Content {
|
||||
padding: 20px 6%;
|
||||
padding: 20px 3%;
|
||||
}
|
||||
.single-Col{
|
||||
max-width:800px;
|
||||
|
@ -23,6 +23,31 @@
|
|||
// About page
|
||||
.twitter-tweet.twitter-tweet-rendered{margin:0 auto 30px!important}
|
||||
|
||||
// Interior pages
|
||||
|
||||
.interior .header-Outro {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
.interior .header-Outro .row.content {
|
||||
|
||||
}
|
||||
.interior .header-Outro .subtitle {
|
||||
font-size: 1em;
|
||||
margin-top: -15px;
|
||||
}
|
||||
.content.misc-page {
|
||||
background: #FAF6F1;
|
||||
-moz-box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.10);
|
||||
-webkit-box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.10);
|
||||
box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.10);
|
||||
padding: 25px 3% 40px 3%;
|
||||
}
|
||||
.content.misc-page h3 {
|
||||
font-size: 1.6px;
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
// Dashboard
|
||||
.interior .header-Outro .col.col-50.signup-Area {padding-left: 0;}
|
||||
.interior .header-Outro a {color:#E93250}
|
||||
|
@ -43,7 +68,7 @@
|
|||
.interior .header-Outro ul li {
|
||||
list-style: none;
|
||||
font-size: 80%;
|
||||
margin-bottom: 7px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.interior .signup-Form fieldset {
|
||||
padding: 20px;
|
||||
|
@ -61,7 +86,7 @@
|
|||
font-size: 1.2em;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.welcome .close {
|
||||
.welcome .close-button {
|
||||
float: right;
|
||||
background: url(../img/welcome-close.png) no-repeat;
|
||||
width: 19px;
|
||||
|
@ -102,6 +127,10 @@
|
|||
background-image: url(../img/new-folder.png);
|
||||
padding-left: 26px;
|
||||
}
|
||||
.btn-Action.upload span {
|
||||
background-image: url(../img/upload.png);
|
||||
padding-left: 26px;
|
||||
}
|
||||
.files .list {
|
||||
padding: 20px;
|
||||
}
|
||||
|
@ -114,14 +143,17 @@
|
|||
-webkit-border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
border-radius: 8px;
|
||||
background: url(../img/drag-drop.png) no-repeat center center;
|
||||
min-height: 300px;
|
||||
}
|
||||
.files .list .upload-Boundary.with-instruction {
|
||||
background: url(../img/drag-drop.png) no-repeat center center;
|
||||
}
|
||||
.file {
|
||||
float: left;
|
||||
padding: 5px;
|
||||
margin-right: 20px;
|
||||
margin-bottom: 30px;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
width: 125px;
|
||||
text-align: center;
|
||||
display:block;
|
||||
position:relative;
|
||||
|
@ -131,21 +163,55 @@
|
|||
font-size: 12px;
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
z-index: 5;
|
||||
}
|
||||
.html-thumbnail {
|
||||
-webkit-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.3);
|
||||
-moz-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.3);
|
||||
box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.3);
|
||||
font-size: 11px;
|
||||
margin-top: 5px;
|
||||
margin-left: 10px;
|
||||
display:block;
|
||||
position:relative;
|
||||
width:105px;
|
||||
height:63px;
|
||||
}
|
||||
.html-thumbnail.html img {
|
||||
width: 105px;
|
||||
height:63px;
|
||||
-webkit-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.3);
|
||||
-moz-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.3);
|
||||
box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.3);
|
||||
}
|
||||
.html-thumbnail.image img {
|
||||
max-width:105px;
|
||||
max-height:63px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
.html-thumbnail.misc {
|
||||
width: 63px;
|
||||
height: 63px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.misc-icon {
|
||||
background: url(../img/misc-file.png) no-repeat -1px -1px;
|
||||
width: 67px;
|
||||
height: 67px;
|
||||
display: block;
|
||||
padding-top: 35px;
|
||||
font-size: 14px;
|
||||
color: #bbb;
|
||||
font-weight: bold;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.overlay a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-size: 14px;
|
||||
display: block;
|
||||
}
|
||||
.overlay i {
|
||||
font-weight: bold;
|
||||
}
|
||||
.overlay {
|
||||
position:absolute;
|
||||
|
@ -171,9 +237,6 @@
|
|||
padding-top: 15px;
|
||||
background-color:rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
.overlay i {
|
||||
font-weight: bold;
|
||||
}
|
||||
.filehover:hover .overlay, .fileimagehover:hover .overlay {
|
||||
display:block;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
2
public/assets/css/neo.min.css
vendored
2
public/assets/css/neo.min.css
vendored
|
@ -12,6 +12,6 @@
|
|||
.constant-Nav{margin-left:-88px;-moz-transition:all 0.35s;-ms-transition:all 0.35s;-o-transition:all 0.35s;-webkit-transition:all 0.35s;transition:all 0.35s}@media (max-device-width: 480px), screen and (max-width: 800px){.constant-Nav{margin-left:0}}.constant-Nav.in-View{margin-left:0;padding-left:70px}@media (max-device-width: 480px), screen and (max-width: 800px){.constant-Nav.in-View{padding-left:0}}
|
||||
.add-Stripe{border-bottom:6px solid #E93250}@media (max-device-width: 480px), screen and (max-width: 800px){.add-Stripe{border:0}}
|
||||
.interior .page{padding-top:22px}.interior .signup-Form{top:0}.interior .header-Base{left:0;overflow:visible;position:fixed;top:0;width:100%;z-index:9}.int-Logo{left:0;position:absolute;top:0;width:70px;z-index:9}.interior .header-Nav{padding-left:70px}@media (max-device-width: 480px), screen and (max-width: 800px){.interior .header-Nav{width:100%}}
|
||||
.interior .constant-Nav{margin:0}.content-Base{background:#f6f0e6;min-height:500px;padding-bottom:50px;padding-top:10px}.content-Base h1,.content-Base h2,.content-Base h3,.content-Base h4,.content-Base h5,.content-Base h6{color:#e93250}.content,.footer-Content,.footer-Content{padding:20px 6%}.single-Col{max-width:800px}.twitter-tweet.twitter-tweet-rendered{margin:0 auto 30px !important}.interior .header-Outro .col.col-50.signup-Area{padding-left:0}.interior .header-Outro a{color:#E93250}.interior .signup-Area{min-height:164px}.interior .signup-Area img{-moz-box-shadow:1px 2px 5px 2px rgba(0,0,0,0.1);-webkit-box-shadow:1px 2px 5px 2px rgba(0,0,0,0.1);box-shadow:1px 2px 5px 2px rgba(0,0,0,0.1)}.interior .header-Outro .screenshot{width:235px;height:141px}.interior .header-Outro ul{margin:0;padding:0}.interior .header-Outro ul li{list-style:none;font-size:80%;margin-bottom:7px}.interior .signup-Form fieldset{padding:20px}.interior .header-Outro h2{margin-top:12px}.welcome{background:#daeea5 url(../img/heartcat.png) no-repeat 20px 23px;background-size:77px 81px;padding:20px 20px 20px 108px;margin-bottom:30px}.welcome h4{font-size:1.2em;margin-bottom:4px}.welcome .close{float:right;background:url(../img/welcome-close.png) no-repeat;width:19px;height:19px}.files{float:left;background:#E4D8CB;width:100%}.files .header{background:#5E95A1;color:#fff;float:left;width:100%;padding:10px 20px}.files .breadcrumbs{float:left;font-weight:bold;margin-top:4px}.files .actions{float:right}.files .btn-Action{margin-left:8px}.btn-Action span{background-repeat:no-repeat}.btn-Action.new-Page span{background-image:url(../img/new-page.png);background-position-y:1px;padding-left:30px}.btn-Action.new-Folder span{background-image:url(../img/new-folder.png);padding-left:26px}.files .list{padding:20px}.files .list .upload-Boundary{float:left;border:3px dashed #F6F0E6;width:100%;margin:20px 0;padding:20px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;background:url(../img/drag-drop.png) no-repeat center center;min-height:300px}.file{float:left;padding:5px;margin-right:20px;margin-bottom:30px;text-align:center;display:block;position:relative}.file .title{font-weight:bold;font-size:12px;color:#666;text-decoration:none;z-index:5}.html-thumbnail{-webkit-box-shadow:0px 1px 4px 0px rgba(0,0,0,0.3);-moz-box-shadow:0px 1px 4px 0px rgba(0,0,0,0.3);box-shadow:0px 1px 4px 0px rgba(0,0,0,0.3);font-size:11px;margin-top:5px;margin-left:10px;display:block;position:relative}.overlay a{color:white;text-decoration:none}.overlay{position:absolute;top:0;width:0;width:100%;height:100%;background-color:rgba(0,0,0,0.5);display:none}.link-overlay{display:block;position:absolute;bottom:0px;left:0px;width:123px;height:30px}.file>.overlay{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;padding-top:15px;background-color:rgba(0,0,0,0.15)}.overlay i{font-weight:bold}.filehover:hover .overlay,.fileimagehover:hover .overlay{display:block}.site-actions{float:left;margin-top:20px;font-size:90%}.site-actions a{color:#666}.footer-Base{color:#5e5b56}.footer-Base h1,.footer-Base h2,.footer-Base h3,.footer-Base h4{color:#8b9a7a}.footer-Intro{background:#daeea5;border-top:1px solid #cedbab;-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);box-shadow:0 8px 8px -8px rgba(0,0,0,0.2);position:relative}.footer-Intro .footer-Content{padding-top:40px;padding-bottom:40px}.f-Col{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;min-height:125px;padding-bottom:28px;position:relative}@media (max-device-width: 480px), screen and (max-width: 800px){.f-Col{min-height:2px;padding-left:15px !important;padding-right:100px !important}}.f-Col .action-Link{bottom:0;position:absolute;right:12px}@media (max-device-width: 480px), screen and (max-width: 800px){.f-Col .action-Link{position:static}}
|
||||
.interior .constant-Nav{margin:0}.content-Base{background:#f6f0e6;min-height:500px;padding-bottom:50px;padding-top:10px}.content-Base h1,.content-Base h2,.content-Base h3,.content-Base h4,.content-Base h5,.content-Base h6{color:#e93250}.content,.footer-Content,.footer-Content{padding:20px 6%}.single-Col{max-width:800px}.twitter-tweet.twitter-tweet-rendered{margin:0 auto 30px !important}.interior .header-Outro .col.col-50.signup-Area{padding-left:0}.interior .header-Outro a{color:#E93250}.interior .signup-Area{min-height:164px}.interior .signup-Area img{-moz-box-shadow:1px 2px 5px 2px rgba(0,0,0,0.1);-webkit-box-shadow:1px 2px 5px 2px rgba(0,0,0,0.1);box-shadow:1px 2px 5px 2px rgba(0,0,0,0.1)}.interior .header-Outro .screenshot{width:235px;height:141px}.interior .header-Outro ul{margin:0;padding:0}.interior .header-Outro ul li{list-style:none;font-size:80%;margin-bottom:2px}.interior .signup-Form fieldset{padding:20px}.interior .header-Outro h2{margin-top:12px}.welcome{background:#daeea5 url(../img/heartcat.png) no-repeat 20px 23px;background-size:77px 81px;padding:20px 20px 20px 108px;margin-bottom:30px}.welcome h4{font-size:1.2em;margin-bottom:4px}.welcome .close{float:right;background:url(../img/welcome-close.png) no-repeat;width:19px;height:19px}.files{float:left;background:#E4D8CB;width:100%}.files .header{background:#5E95A1;color:#fff;float:left;width:100%;padding:10px 20px}.files .breadcrumbs{float:left;font-weight:bold;margin-top:4px}.files .actions{float:right}.files .btn-Action{margin-left:8px}.btn-Action span{background-repeat:no-repeat}.btn-Action.new-Page span{background-image:url(../img/new-page.png);background-position-y:1px;padding-left:30px}.btn-Action.new-Folder span{background-image:url(../img/new-folder.png);padding-left:26px}.btn-Action.upload span{background-image:url(../img/upload.png);padding-left:26px}.files .list{padding:20px}.files .list .upload-Boundary{float:left;border:3px dashed #F6F0E6;width:100%;margin:20px 0;padding:20px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;min-height:300px}.files .list .upload-Boundary.with-instruction{background:url(../img/drag-drop.png) no-repeat center center}.file{float:left;padding:5px;margin-right:10px;margin-bottom:10px;width:125px;text-align:center;display:block;position:relative}.file .title{font-weight:bold;font-size:12px;color:#666;text-decoration:none}.html-thumbnail{font-size:11px;margin-top:5px;margin-left:10px;display:block;position:relative;width:105px;height:63px}.html-thumbnail.html img{width:105px;height:63px;-webkit-box-shadow:0px 1px 4px 0px rgba(0,0,0,0.3);-moz-box-shadow:0px 1px 4px 0px rgba(0,0,0,0.3);box-shadow:0px 1px 4px 0px rgba(0,0,0,0.3)}.html-thumbnail.image img{max-width:105px;max-height:63px;width:auto;height:auto}.misc-icon{background:url(../img/misc-file.png) no-repeat center center;width:67px;height:67px;display:block;padding-top:35px;font-size:14px;color:#bbb;font-weight:bold}.overlay a{color:white;text-decoration:none}.overlay{position:absolute;top:0;width:0;width:100%;height:100%;background-color:rgba(0,0,0,0.5);display:none}.link-overlay{display:block;position:absolute;bottom:0px;left:0px;width:123px;height:30px}.file>.overlay{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;padding-top:15px;background-color:rgba(0,0,0,0.15)}.overlay i{font-weight:bold}.filehover:hover .overlay,.fileimagehover:hover .overlay{display:block}.site-actions{float:left;margin-top:20px;font-size:90%}.site-actions a{color:#666}.footer-Base{color:#5e5b56}.footer-Base h1,.footer-Base h2,.footer-Base h3,.footer-Base h4{color:#8b9a7a}.footer-Intro{background:#daeea5;border-top:1px solid #cedbab;-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);box-shadow:0 8px 8px -8px rgba(0,0,0,0.2);position:relative}.footer-Intro .footer-Content{padding-top:40px;padding-bottom:40px}.f-Col{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;min-height:125px;padding-bottom:28px;position:relative}@media (max-device-width: 480px), screen and (max-width: 800px){.f-Col{min-height:2px;padding-left:15px !important;padding-right:100px !important}}.f-Col .action-Link{bottom:0;position:absolute;right:12px}@media (max-device-width: 480px), screen and (max-width: 800px){.f-Col .action-Link{position:static}}
|
||||
.footer-icon{background-repeat:no-repeat;position:absolute;right:0;top:-70px}@media (max-device-width: 480px), screen and (max-width: 800px){.footer-icon{-moz-background-size:100%;-ms-background-size:100%;-o-background-size:100%;-webkit-background-size:100%;background-size:100%;height:90px !important;top:0;width:77px !important}}
|
||||
.f-Col-1{padding-right:12px}.f-Col-1 .footer-icon{background-image:url(../img/support-us.png);height:104px;right:5px;width:92px}.f-Col-2{padding-left:15px;padding-right:6px;position:relative}@media (max-device-width: 480px), screen and (max-width: 800px){.f-Col-2{border-bottom:1px solid rgba(0,0,0,0.1);border-top:1px solid rgba(0,0,0,0.1);margin:20px 0;overflow:hidden;padding:20px 0}.f-Col-2 .footer-icon{top:14px}}.f-Col-2:before,.f-Col-2:after{background:url("../img/border.png") no-repeat 0 -20px;content:"";height:200px;opacity:0.2;position:absolute;top:0;width:1px}@media (max-device-width: 480px), screen and (max-width: 800px){.f-Col-2:before,.f-Col-2:after{display:none}}.f-Col-2:before{left:-14px}.f-Col-2:after{right:-14px}.f-Col-2 .footer-icon{background-image:url(../img/about-neocities.png);width:100px;height:106px}.f-Col-3{padding-left:20px}@media (max-device-width: 480px), screen and (max-width: 800px){.f-Col-3{padding-left:0}}.f-Col-3 .footer-icon{background-image:url(../img/latest-news.png);height:103px;width:134px}.footer-Outro{background:#ccdf9b;border-top:1px solid #b3c388;overflow:hidden}.footer-Outro a{color:#5e5b56}.credits{margin-bottom:0}.footer-Nav{text-transform:uppercase}.footer-Nav .h-Nav,.footer-Nav .bread{float:right}@media (max-device-width: 480px), screen and (max-width: 800px){.footer-Nav .h-Nav,.footer-Nav .bread{float:none;margin-top:15px}.footer-Nav .h-Nav li:first-child a,.footer-Nav .bread li:first-child a{padding-left:0}}.footer-Nav .h-Nav a,.footer-Nav .bread a{padding:0 8px}.footer-Nav .h-Nav li:last-child a,.footer-Nav .bread li:last-child a{padding-right:0}.alert{background-color:#F39C12;color:#fff}.website-Gallery{list-style:none;padding:10px 0}.website-Gallery li{float:left;margin-bottom:8px}@media (max-device-width: 480px), screen and (max-width: 800px){.website-Gallery li{width:50%}}.website-Gallery a{padding:0 8px;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-Screen-Shot{background:#fff;-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);box-shadow:0 8px 8px -8px rgba(0,0,0,0.2);display:block;height:auto !important;padding:8px;position:relative;width:100%}.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%}
|
||||
|
|
BIN
public/assets/img/misc-file.png
Normal file
BIN
public/assets/img/misc-file.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 859 B |
BIN
public/assets/img/upload.png
Normal file
BIN
public/assets/img/upload.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 730 B |
6
public/assets/scripts/jquery-1.10.1.min.js
vendored
Normal file
6
public/assets/scripts/jquery-1.10.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
public/js/jquery.min.js
vendored
Normal file
5
public/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,12 +1,11 @@
|
|||
<div class="content single-Col">
|
||||
<div class="header-Outro">
|
||||
<div class="row content single-Col">
|
||||
<h2 class="beta">Neocities Developers API</h2>
|
||||
<h3 class="subtitle">Make changes to your site remotely with programming languages!</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="alpha">Neocities Developers API</h2>
|
||||
|
||||
<p><img src="/assets/img/cat-larger.png"></p>
|
||||
|
||||
<p>
|
||||
<strong>Our Developers API allows you to make changes to your site remotely with programming languages!</strong>
|
||||
</p>
|
||||
<div class="content single-Col misc-page">
|
||||
<h3>Ideas</h3>
|
||||
<p>
|
||||
<ul>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</script>
|
||||
|
||||
<div class="header-Outro" style="overflow: hidden;">
|
||||
<div class="row header-Content content" style="padding-top: 40px;">
|
||||
<div class="row content" style="padding-top: 10px">
|
||||
|
||||
<div class="col col-50 signup-Area" style="width: 289px;">
|
||||
<div class="signup-Form" style="top: 0; text-align: center">
|
||||
|
@ -41,7 +41,7 @@
|
|||
<div class="content">
|
||||
|
||||
<div class="welcome">
|
||||
<a href=""><div class="close"></div></a>
|
||||
<div class="close-button"></div>
|
||||
<h4>Hello! Welcome to your new site.</h4>
|
||||
To get started, click on the <strong>index.html</strong> file below to edit it. It's your home page! You can add more files (such as images) from your computer by dragging them into the box below. Need help building web sites? Check out these <a href="/tutorials">tutorials</a>!
|
||||
</div>
|
||||
|
@ -52,25 +52,38 @@
|
|||
<div class="actions">
|
||||
<a href="/site_files/new_page" class="btn-Action new-Page"><span>New Page</span></a>
|
||||
<!--<a href="" class="btn-Action new-Folder"><span>New Folder</span></a>-->
|
||||
<a href="/site_files/upload" class="btn-Action upload"><span>Upload</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="upload-Boundary">
|
||||
<div class="upload-Boundary with-instruction"> <!--should remove instruction after at least one new file have been uploaded-->
|
||||
|
||||
<% current_site.file_list.each do |file| %>
|
||||
<div class="file filehover">
|
||||
<% if file.ext.match(/html|htm/) %>
|
||||
<div class="html-thumbnail fileimagehover" style="width:105px;height:63px;">
|
||||
<img src="https://neocities.org//site_screenshots/bigpig.jpg" style="width: 105px;height:63px">
|
||||
<div class="overlay">
|
||||
|
||||
</div>
|
||||
<div class="html-thumbnail html fileimagehover">
|
||||
<img src="https://neocities.org//site_screenshots/bigpig.jpg">
|
||||
<div class="overlay"></div>
|
||||
</div>
|
||||
<% elsif file.ext.match(/jpg|png|bmp|gif/) %>
|
||||
|
||||
<div class="html-thumbnail image fileimagehover">
|
||||
<img src="https://neocities.org/assets/img/cat-larger.png" style="">
|
||||
<div class="overlay"></div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="html-thumbnail misc fileimagehover">
|
||||
<div class="misc-icon"><%= file.ext %></div>
|
||||
<div class="overlay"></div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<a class="title"><%= file.filename %></a>
|
||||
<a class="title">
|
||||
<% if file.filename.length > 15 %>
|
||||
<%= file.filename.slice(0..15) %>…
|
||||
<% else %>
|
||||
<%= file.filename %>
|
||||
<% end %>
|
||||
</a>
|
||||
<div class="overlay">
|
||||
<% if file.ext.match(/html|htm|txt|js|css|md/) %>
|
||||
<a href="/site_files/text_editor/<%= file.filename %>"><i class="icon-edit" style="margin-right: 10px" title="Edit"> Edit</i></a>
|
||||
|
@ -78,7 +91,7 @@
|
|||
<% if file.filename != 'index.html' %>
|
||||
<a href="#" onclick="confirmFileDelete('<%= file.filename %>')"><i class="icon-trash" style="margin-right: 10px" title="Delete"> Delete</i></a>
|
||||
<% end %>
|
||||
<a class="link-overlay" href="http://<%= current_site.username %>.neocities.org/<%= file.filename %>" title="Visit <%= file.filename %>" target="_blank"></a>
|
||||
<a class="link-overlay" href="http://<%= current_site.username %>.neocities.org/<%= file.filename %>" title="View <%= file.filename %>" target="_blank"></a>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<meta content="pBkqwF1U/KpuF2+f0ZhSf8BnpxYgeU0boCTdnB3joGc=" name="csrf-token" />
|
||||
|
||||
<!-- Styles -->
|
||||
<link href="assets/css/neo.min.css" rel="stylesheet" type="text/css" media="all"/>
|
||||
<link href="assets/css/neo.css" rel="stylesheet" type="text/css" media="all"/>
|
||||
<!-- If exists, brings over style blocks from child pages -->
|
||||
|
||||
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="/css/bootstrap-responsive.min.css" rel="stylesheet">
|
||||
<link href="/assets/css/neo.min.css" rel="stylesheet" type="text/css" media="all"/>
|
||||
<link href="assets/css/neo.css" rel="stylesheet" type="text/css" media="all"/>
|
||||
<link href="/css/font-awesome.min.css" rel="stylesheet" type="text/css" media="all"/>
|
||||
<link href="/css/styles.css" rel="stylesheet" type="text/css" media="all">
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ html
|
|||
meta property="og:description" content="NeoCities is the new Geocities. Create your own free home page, and do whatever you want with it."
|
||||
meta name="csrf-token" content="#{csrf_token}"
|
||||
script src="/assets/scripts/jquery-1.11.0.min.js"
|
||||
link href="/assets/css/neo.min.css" rel="stylesheet" type="text/css" media="all"
|
||||
link href="/assets/css/neo.css" rel="stylesheet" type="text/css" media="all"
|
||||
script src="/assets/scripts/nav.min.js"
|
||||
|
||||
body.interior
|
||||
|
|
62
views/new.slim
Normal file
62
views/new.slim
Normal file
|
@ -0,0 +1,62 @@
|
|||
javascript:
|
||||
var RecaptchaOptions = {
|
||||
theme : 'clean'
|
||||
};
|
||||
|
||||
- if !@site.errors.empty?
|
||||
.row
|
||||
.span8.offset2
|
||||
.alert.alert-block.alert-error
|
||||
p There were errors creating your home page:
|
||||
- @site.errors.each do |error|
|
||||
p = error.last.first
|
||||
|
||||
.page
|
||||
.content-Base
|
||||
.row.content style="padding-top:0"
|
||||
form method="POST" action="/create"
|
||||
input name="csrf_token" type="hidden" value="#{csrf_token}"
|
||||
h2.txt-Center Create a New Home Page
|
||||
|
||||
.col.col-50 style="margin:0 auto; float:none"
|
||||
hr
|
||||
p.tiny First, enter a username. This will also be used as your site name.<br><b>Do not forget this, it will be used to sign in to and manage your home page.</b> It can only contain letters, numbers, underscores and hyphens, and can only be 32 characters long.
|
||||
br
|
||||
h5 Username
|
||||
p.tiny <input class="input-Area" name="username" type="text" placeholder="yourusername" value="#{@site.username}" autocapitalize="off" autocorrect="off">.neocities.org
|
||||
hr
|
||||
p.tiny Next, enter a password. This will be used to allow you to login. Minimum 5 characters. If you don't make it a good password, Dade Murphy from the movie Hackers will come in and steal your "garbage files".
|
||||
|
||||
|
||||
h5 Password
|
||||
input class="input-Area" name="password" type="password"
|
||||
|
||||
br
|
||||
hr
|
||||
p.tiny Now you can enter an e-mail address. Your e-mail address is private and we will not show it to anyone for any reason. You don't have to provide one, but <b>we will not be able to reset your password without it, so don't lose your username and password if you leave this blank!</b>
|
||||
|
||||
|
||||
h5 Email
|
||||
input class="input-Area" name="email" type="email" placeholder="youremail@example.com" value="#{@site.email}"
|
||||
|
||||
br
|
||||
hr
|
||||
|
||||
p.tiny You can optionally enter some tags! Tags will allow others to find your site based on your interests, or your site's theme. <b>Separate multiple tags with commas</b>. Don't think too hard about this, you can change them later. You can have a maximum of ten tags, and there is a two word per tag maximum (extra words in a tag will be removed).
|
||||
|
||||
h5 Tags
|
||||
p: input class="input-Area" name="tags" type="text" style="width: 400px; max-width:100%" placeholder="pokemon, video games, bulbasaur" value="#{params[:tags]}" autocapitalize="off" autocorrect="off"
|
||||
|
||||
hr
|
||||
input name="is_nsfw" type="hidden" value="false"
|
||||
p If your page will contain objectionable (adult) content, check this box: <input name="is_nsfw" type="checkbox" value="true" style="margin-top:0">
|
||||
|
||||
hr
|
||||
p.tiny <b>Last thing!</b> Enter these two words correctly (with spaces) so we know you're not a robot (don't worry robots, we still love you).
|
||||
div style="background:#fff; width:100%; overflow:auto"
|
||||
== recaptcha_tag :challenge, ssl: true
|
||||
br
|
||||
|
||||
h3 You're done. Just click the button below!
|
||||
.txt-Center
|
||||
input.btn-Action type="submit" value="Create Home Page"
|
Loading…
Add table
Reference in a new issue