Skip to content

Commit

Permalink
Updates featured sites on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Sep 12, 2019
1 parent 64c57b2 commit 5065372
Show file tree
Hide file tree
Showing 53 changed files with 27 additions and 46 deletions.
4 changes: 2 additions & 2 deletions app/brochure/routes/featured/build.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ function generateAvatars(source, destination, callback) {
function createFavicon(favicon, host, callback) { function createFavicon(favicon, host, callback) {
sharp(favicon.input) sharp(favicon.input)
.resize({ .resize({
width: 48, width: 64,
height: 48, height: 64,
fit: sharp.fit.cover, fit: sharp.fit.cover,
position: sharp.strategy.entropy position: sharp.strategy.entropy
}) })
Expand Down
10 changes: 9 additions & 1 deletion app/brochure/routes/featured/index.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,10 +50,18 @@ function check() {
module.exports = function(req, res, next) { module.exports = function(req, res, next) {


// Strip the 'www' from the host property for aesthetics // Strip the 'www' from the host property for aesthetics
res.locals.featured = featured.map(function(site){ res.locals.featured = featured.slice().map(function(site){
site.host = site.host.split("www.").join(""); site.host = site.host.split("www.").join("");
site.template = site.template || {};
site.template.label = site.template.label || 'Default';
return site; return site;
}); });


res.locals.featured.sort(function(a,b){
return Math.round(Math.random()*2) - 1;
});

res.locals.featured = res.locals.featured.slice(0,16);

next(); next();
}; };
Binary file modified app/brochure/views/images/featured/afc.letterspace.org.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/benlog.net.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/bitdepth.org.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/blog.amitgawande.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/blog.andrewjanjigian.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/blog.aurynn.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/blog.tomwhite.io.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/com.johnbeeler.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/diary.craigwhite.nyc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/discombobulated.co.nz.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/eli.li.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/hannautkin.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/iiiiiiiii.in.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/john.pavlusoffice.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/journal.cheribaker.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/juicenews.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/keywords.oxus.net.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/kiefer.design.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/mariusmasalar.me.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/mrfris.by.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/paul.af.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/photos.rachelpietraszek.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/rafagarces.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/rile.yt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/shashwati.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/brochure/views/images/featured/shawn.medero.net.jpg
Binary file modified app/brochure/views/images/featured/tyler.vc.jpg
Binary file modified app/brochure/views/images/featured/www.alexgibson.nyc.png
Binary file modified app/brochure/views/images/featured/www.andrew-bishop.com.jpg
Binary file modified app/brochure/views/images/featured/www.chrbutler.com.png
Binary file modified app/brochure/views/images/featured/www.crossingthethreshold.net.jpg
Binary file modified app/brochure/views/images/featured/www.dmatthams.co.uk.png
Binary file modified app/brochure/views/images/featured/www.enzel.io.jpg
Binary file modified app/brochure/views/images/featured/www.failuretolerated.com.jpg
Binary file modified app/brochure/views/images/featured/www.inextenso.dev.jpg
Binary file modified app/brochure/views/images/featured/www.inthemargins.ca.jpg
Binary file modified app/brochure/views/images/featured/www.ishshah.me.jpg
Binary file modified app/brochure/views/images/featured/www.jacobyyoung.com.png
Binary file modified app/brochure/views/images/featured/www.jmablog.com.jpg
Binary file modified app/brochure/views/images/featured/www.kristianhjelle.com.jpg
Binary file modified app/brochure/views/images/featured/www.matthewbattles.org.jpg
Binary file modified app/brochure/views/images/featured/www.querlin.com.jpg
Binary file modified app/brochure/views/images/featured/www.rebeccatron.com.jpg
Binary file modified app/brochure/views/images/featured/www.seanmcdevitt.com.jpg
Binary file modified app/brochure/views/images/featured/www.skincarriedaway.com.jpg
Binary file modified app/brochure/views/images/featured/www.souloftheimage.com.jpg
Binary file modified app/brochure/views/images/featured/www.thingelstad.com.jpg
Binary file modified app/brochure/views/images/featured/www.tillmanjex.info.png
Binary file modified app/brochure/views/images/featured/www.withbb.com.jpg
Binary file modified app/brochure/views/images/featured/zacharykeeting.com.png
59 changes: 16 additions & 43 deletions app/brochure/views/index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -84,24 +84,23 @@ <h1>A blogging platform with no interface</h1>


<div class=""> <div class="">
<p>Blot comes with seven <a href="/templates">templates</a>. They make it easy to start a blog, portfolio or link blog. You can also <a href="/developers">develop your own template</a> from scratch. Here's some the people who use Blot to host their website:</p> <p>Blot comes with seven <a href="/templates">templates</a>. They make it easy to start a blog, portfolio or link blog. You can also <a href="/developers">develop your own template</a> from scratch. Here's some the people who use Blot to host their website:</p>
<br><br> <br>
</div> </div>


<style type="text/css"> <style type="text/css">
a.featured { a.featured {
position: relative; position: relative;
flex-basis: 100%; flex-basis: 100%;
min-width: 200px; min-width: 200px;
padding: 0 1.4em; color: inherit;
/* font-size: 14px;
*/ color: inherit;
display: flex;
flex-wrap:wrap;
/* text-align: center;
*/ margin-bottom: 2.8em;
box-sizing: border-box; box-sizing: border-box;
margin: 0 1em 0 -0.1525em;
padding: 1em 1.4em 1em 3.6em;
border-bottom: 1px solid #eee;

} }


a.featured:last-child {border-bottom: none;}
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
a.featured {flex-basis:100%} a.featured {flex-basis:100%}
} }
Expand Down Expand Up @@ -140,49 +139,23 @@ <h1>A blogging platform with no interface</h1>
margin-right: 0.5em; margin-right: 0.5em;
} }


.feat-window {
margin: 0 1em 0 -0.1525em;
color: #005eb8;
position: relative;
flex-grow:1;
flex-basis:35%;
min-width:200px;
max-width: 300px;
border:1px solid #005eb8;border-radius:3px;display:block;text-align:center;margin-bottom:0.7em
}

.feat-arrow {background: red;width: 2em;height: 2em;border-radius: 2em;line-height:2em;text-align:center;position: absolute; .feat-arrow {background: red;width: 2em;height: 2em;border-radius: 2em;line-height:2em;text-align:center;position: absolute;
top: -0.7em;right: -0.7em;color: white;border:3px solid white;opacity: 0} top: -0.7em;right: -0.7em;color: white;border:3px solid white;opacity: 0}


a.featured:hover .feat-arrow {opacity: 1} .featured:hover .a {background: #eee;outline: 4px solid #eee }

a.featured:hover .feat-dot,
a.featured:hover .feat-window,
a.featured:hover .feat-toolbar,
a.featured:hover .a {
color:red;border-color: red
}




</style> </style>
<div style="display:flex;flex-direction:row;flex-wrap:wrap;margin:0 -1.4em"> <div style="display:flex;flex-direction:row;flex-wrap:wrap;">
{{#featured}} {{#featured}}
<a class="featured col-25" target="_blank" rel="noopener" href="{{{link}}}"> <a class="featured" target="_blank" rel="noopener" href="{{{link}}}">


<span style="flex-basis:40%;flex-grow:1;padding-right:8%;padding-left:2.7em">
<img style="width:22px;height:22px;position:absolute;top:3px;left:1.5em" src="{{{favicon}}}"> <img style="border-radius:50%;width:32px;height:32px;position:absolute;top:1em;left:0em" src="{{{favicon}}}">
<span class="a">{{name}}</span> {{bio}}.<small style="margin-top:1em;margin-bottom:2em;color:#989694;display:block;font-size:14px;">{{firstName}} uses {{#if template.custom}}a <span class="-a"href="/developers">custom</span>{{else}} the <span class="-a" href="/templates/{{template.slug}}">{{template.label}}</span>{{/if}} template.</small></span>
</span> <span class="a">{{name}}</span> {{bio}}. {{firstName}} uses {{#if template.custom}}a <span class="-a"href="/developers">custom</span>{{else}} the <span class="-a" href="/templates/{{template.slug}}">{{template.label}}</span>{{/if}} template.</span>
<span class="feat-window">
<span class="feat-arrow"></span>
<span class="feat-toolbar">
<span class="feat-dot"></span>
<span class="feat-dot"></span>
<span class="feat-dot"></span>
</span>
<br><span class="-a" style="font-size:14px;display:block;padding:1em 0 0;">{{host}}</span>
<br> <br>
</span>
</a> </a>
{{/featured}} {{/featured}}
</div> </div>
Expand Down

0 comments on commit 5065372

Please sign in to comment.