Skip to content

Commit

Permalink
Redesign the Sparkle website with a more modern look and feel.
Browse files Browse the repository at this point in the history
The website now shows the version number of the current Sparkle release!
  • Loading branch information
jakepetroules committed Jul 23, 2015
1 parent 2725d9a commit 9458aba
Show file tree
Hide file tree
Showing 125 changed files with 9,177 additions and 250 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_site
.sass-cache
Binary file removed Button.gif
Binary file not shown.
71 changes: 71 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
Copyright (c) 2006-2013 Andy Matuschak.
Copyright (c) 2015 Jake Petroules.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

=================
EXTERNAL LICENSES
=================

Twitter Bootstrap:

The MIT License (MIT)

Copyright (c) 2011-2015 Twitter, Inc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

retina.js:

The MIT License (MIT)

Copyright (c) 2013 Imulus, LLC, Ben Atkin, and other contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Binary file removed MenuIcons/MenuIconBlog.png
Binary file not shown.
Binary file removed MenuIcons/MenuIconDebug.png
Binary file not shown.
Binary file removed MenuIcons/MenuIconDevelopment.png
Binary file not shown.
Binary file removed MenuIcons/MenuIconDocumentation.png
Binary file not shown.
Binary file removed MenuIcons/MenuIconDownload Glow.png
Binary file not shown.
Binary file removed MenuIcons/MenuIconDownload.png
Binary file not shown.
Binary file removed MenuIcons/MenuIconDownload.png.gif
Binary file not shown.
Binary file removed Screenshot.jpg
Binary file not shown.
Binary file removed Top.jpg
Binary file not shown.
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Site settings
title: "Sparkle: open source software update framework for the Mac"
baseurl: ""
url: "http://sparkle-project.org"
github_username: sparkle-project

# Build settings
markdown: kramdown
83 changes: 83 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
{% if page.id == "documentation" %}
<meta http-equiv="refresh" content="0;url=https://github.com/sparkle-project/Sparkle/wiki"/>
{% endif %}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{% if page.title %} {{ page.title }} - {% endif %} {{ site.title }}</title>

<link href="{{ "/css/main.css" | prepend: site.baseurl }}" media="screen, projection" rel="stylesheet" type="text/css" />

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

<script type="text/javascript">
//<![CDATA[
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-52386963-1', 'auto');
ga('send', 'pageview');
//]]>
</script>
</head>
<body>
<nav class="navbar navbar-inverse {{ page.navbar_extra_styles }}">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ "/" | prepend: site.baseurl }}"><img src="{{ "/images/icon.png" | prepend: site.baseurl }}" alt="[Logo]" /> Sparkle</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="{% if page.id == "index" %} active {% endif %}"><a href="{{ "/" | prepend: site.baseurl }}">Home</a></li>
<li class="{% if page.id == "about" %} active {% endif %}"><a href="{{ "/about" | prepend: site.baseurl }}">About</a></li>
<li class="{% if page.id == "documentation" %} active {% endif %}"><a href="{{ "/documentation" | prepend: site.baseurl }}">Documentation</a></li>
<li><a href="https://github.com/{{ site.github_username }}/Sparkle">GitHub</a></li>
</ul>
</div><!--/.navbar-collapse -->
</div>
</nav>

{{ content }}

<div class="container">
<div class="row">
<div class="col-md-12">
<footer>
<p>Copyright &#169; 2015 Sparkle Project. All Rights Reserved.</p>
<p>This website is <a href="https://github.com/{{ site.github_username }}/sparkle-project.github.io">open source</a>.</p>
</footer>
</div>
</div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="{{ "/javascripts/bootstrap.min.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/javascripts/retina.js" | prepend: site.baseurl }}"></script>

<script>
$(function() {
$.getJSON("https://api.github.com/repos/{{ site.github_username }}/Sparkle/releases/latest", function (data) {
var button = $('.download-button');
button.text('Download v' + data.tag_name);
button.attr('href', data.assets[0].browser_download_url);
});
});
</script>
</body>
</html>
9 changes: 9 additions & 0 deletions _sass/_bootstrap-compass.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@function twbs-font-path($path) {
@return font-url($path, true);
}

@function twbs-image-path($path) {
@return image-url($path, true);
}

$bootstrap-sass-asset-helper: true;
19 changes: 19 additions & 0 deletions _sass/_bootstrap-mincer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Mincer asset helper functions
//
// This must be imported into a .css.ejs.scss file.
// Then, <% %>-interpolations will be parsed as strings by Sass, and evaluated by EJS after Sass compilation.


@function twbs-font-path($path) {
// do something like following
// from "path/to/font.ext#suffix" to "<%- asset_path(path/to/font.ext)) + #suffix %>"
// from "path/to/font.ext?#suffix" to "<%- asset_path(path/to/font.ext)) + ?#suffix %>"
// or from "path/to/font.ext" just "<%- asset_path(path/to/font.ext)) %>"
@return "<%- asset_path('#{$path}'.replace(/[#?].*$/, '')) + '#{$path}'.replace(/(^[^#?]*)([#?]?.*$)/, '$2') %>";
}

@function twbs-image-path($file) {
@return "<%- asset_path('#{$file}') %>";
}

$bootstrap-sass-asset-helper: true;
9 changes: 9 additions & 0 deletions _sass/_bootstrap-sprockets.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@function twbs-font-path($path) {
@return font-path($path);
}

@function twbs-image-path($path) {
@return image-path($path);
}

$bootstrap-sass-asset-helper: true;
56 changes: 56 additions & 0 deletions _sass/_bootstrap.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/

// Core variables and mixins
@import "bootstrap/variables";
@import "bootstrap/mixins";

// Reset and dependencies
@import "bootstrap/normalize";
@import "bootstrap/print";
@import "bootstrap/glyphicons";

// Core CSS
@import "bootstrap/scaffolding";
@import "bootstrap/type";
@import "bootstrap/code";
@import "bootstrap/grid";
@import "bootstrap/tables";
@import "bootstrap/forms";
@import "bootstrap/buttons";

// Components
@import "bootstrap/component-animations";
@import "bootstrap/dropdowns";
@import "bootstrap/button-groups";
@import "bootstrap/input-groups";
@import "bootstrap/navs";
@import "bootstrap/navbar";
@import "bootstrap/breadcrumbs";
@import "bootstrap/pagination";
@import "bootstrap/pager";
@import "bootstrap/labels";
@import "bootstrap/badges";
@import "bootstrap/jumbotron";
@import "bootstrap/thumbnails";
@import "bootstrap/alerts";
@import "bootstrap/progress-bars";
@import "bootstrap/media";
@import "bootstrap/list-group";
@import "bootstrap/panels";
@import "bootstrap/responsive-embed";
@import "bootstrap/wells";
@import "bootstrap/close";

// Components w/ JavaScript
@import "bootstrap/modals";
@import "bootstrap/tooltip";
@import "bootstrap/popovers";
@import "bootstrap/carousel";

// Utility classes
@import "bootstrap/utilities";
@import "bootstrap/responsive-utilities";
73 changes: 73 additions & 0 deletions _sass/bootstrap/_alerts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
//
// Alerts
// --------------------------------------------------


// Base styles
// -------------------------

.alert {
padding: $alert-padding;
margin-bottom: $line-height-computed;
border: 1px solid transparent;
border-radius: $alert-border-radius;

// Headings for larger alerts
h4 {
margin-top: 0;
// Specified for the h4 to prevent conflicts of changing $headings-color
color: inherit;
}

// Provide class for links that match alerts
.alert-link {
font-weight: $alert-link-font-weight;
}

// Improve alignment and spacing of inner content
> p,
> ul {
margin-bottom: 0;
}

> p + p {
margin-top: 5px;
}
}

// Dismissible alerts
//
// Expand the right padding and account for the close button's positioning.

.alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.
.alert-dismissible {
padding-right: ($alert-padding + 20);

// Adjust close link position
.close {
position: relative;
top: -2px;
right: -21px;
color: inherit;
}
}

// Alternate styles
//
// Generate contextual modifier classes for colorizing the alert.

.alert-success {
@include alert-variant($alert-success-bg, $alert-success-border, $alert-success-text);
}

.alert-info {
@include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text);
}

.alert-warning {
@include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text);
}

.alert-danger {
@include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
}
Loading

0 comments on commit 9458aba

Please sign in to comment.