Skip to content

Commit

Permalink
add builder links
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtmiller committed May 5, 2020
1 parent 72d48df commit 4dd1a61
Show file tree
Hide file tree
Showing 21 changed files with 81 additions and 21 deletions.
Binary file modified .DS_Store
Binary file not shown.
36 changes: 36 additions & 0 deletions _layouts/overview-theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
</a>
{% endif %}

<!-- Add builder link for themes with builder available -->
{% if page.builder %}
<div class="position-relative">
<a target="_blank" href="https://builder.startbootstrap.com/builder/{{ page.slug }}" class="btn btn-block btn-info mb-3 py-3" onclick="ga('send','event','Builder','click','{{ page.title }} Builder')">
<i class="fal fa-edit fa-fw"></i> <span>Customize &amp; Download (Free)</span>
</a>
<span class='badge-new' style="top: -.5rem; right: -.5rem;">New!</span>
</div>
{% endif %}

<hr>

<a target="_blank" href="/previews/{{ page.slug }}/" class="btn btn-block btn-outline-primary mb-3"><i class="far fa-browser fa-fw"></i> Live Preview</a>
Expand All @@ -42,6 +52,22 @@

</div>
</div>
{% if page.builder %}
<!-- Builder Card -->
<div class="card border-0 shadow mb-4">
<div class="card-body">
<h5 class="m-0">Try our new builder!</h5>
<hr>
<p>We've just launched our new Start Bootstrap Builder! You can now customize this theme <em>before</em> you download! Make changes to text, images, fonts, colors, and more - then export your custom theme as an HTML/CSS package!</p>
<div class="position-relative">
<a href="https://builder.startbootstrap.com/builder/{{ page.slug }}" class="btn btn-block btn-info mb-3 py-3" onclick="ga('send','event','Builder','click','{{ page.title }} Builder')">
<i class="fal fa-edit fa-fw"></i> <span>Customize &amp; Download (Free)</span>
</a>
<span class='badge-new' style="top: -.5rem; right: -.5rem;">New!</span>
</div>
</div>
</div>
{% endif %}
<!-- Item Description -->
<div class="card border-0 shadow mb-4">
<div class="card-body">
Expand Down Expand Up @@ -87,6 +113,16 @@ <h5 class="m-0">Features</h5>
</a>
{% endif %}

<!-- Add builder link for themes with builder available -->
{% if page.builder %}
<div class="position-relative">
<a target="_blank" href="https://builder.startbootstrap.com/builder/{{ page.slug }}" class="btn btn-block btn-info mb-3 py-3" onclick="ga('send','event','Builder','click','{{ page.title }} Builder')">
<i class="fal fa-edit fa-fw"></i> <span>Customize &amp; Download (Free)</span>
</a>
<span class='badge-new' style="top: -.5rem; right: -.5rem;">New!</span>
</div>
{% endif %}

<hr>

<a target="_blank" href="/previews/{{ page.slug }}/" class="btn btn-block btn-outline-primary mb-3"><i class="far fa-browser fa-fw"></i> Live Preview</a>
Expand Down
18 changes: 12 additions & 6 deletions _layouts/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="preview-bar bg-white fixed-top py-2 border-bottom-primary">
<div class="container-fluid h-100">
<div class="row align-items-center justify-content-between h-100">
<div class="col">
<div class="col-auto col-lg">
<i class="fab fa-github text-github small"></i>

{% if page.migrated %}
Expand All @@ -19,7 +19,7 @@
{% endif %}

</div>
<div class="col d-none d-lg-block">
<div class="col col-auto d-none d-xl-block">
<ul class="nav responsive-toggler justify-content-center" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="desktopToggle" data-toggle="tab" href="#" role="tab" aria-selected="true">
Expand All @@ -35,16 +35,22 @@
</div>
<div class="col text-right">

{% if page.builder %}
<a href="https://builder.startbootstrap.com/builder/{{ page.slug }}" class="btn btn-info btn-sm mr-2" onclick="ga('send','event','Builder','click','{{ page.title }} Builder')">
<i class="fal fa-edit fa-fw"></i> <span>Customize<span class="d-none d-md-inline"> &amp; Download (Free)</span></span>
</a>
{% endif %}

{% if page.migrated %}
<a href="https://github.com/StartBootstrap/{{ page.slug }}/archive/master.zip" class="btn btn-primary btn-sm mr-2 d-none d-md-inline-block" onclick="ga('send','event','Download','click','{{ page.title }}')">Free Download</a>
<a href="https://github.com/StartBootstrap/{{ page.slug }}/archive/master.zip" class="btn btn-primary btn-sm mr-2" onclick="ga('send','event','Download','click','{{ page.title }}')">Free Download</a>
{% else %}
<a href="https://github.com/BlackrockDigital/startbootstrap-{{ page.slug }}/archive/gh-pages.zip" class="btn btn-primary btn-sm mr-2 d-none d-md-inline-block" onclick="ga('send','event','Download','click','{{ page.title }}')">Free Download</a>
<a href="https://github.com/BlackrockDigital/startbootstrap-{{ page.slug }}/archive/gh-pages.zip" class="btn btn-primary btn-sm mr-2" onclick="ga('send','event','Download','click','{{ page.title }}')">Free Download</a>
{% endif %}

{% if page.custom-preview-link %}
<a href="{{ page.custom-preview-link }}/" class="btn btn-link btn-sm"><i class="fal fa-times mr-1"></i> Remove Frame</a>
<a href="{{ page.custom-preview-link }}/" class="btn btn-link btn-sm d-none d-md-inline-block"><i class="fal fa-times mr-1"></i> Remove Frame</a>
{% else %}
<a href="https://blackrockdigital.github.io/startbootstrap-{{ page.slug }}/" class="btn btn-link btn-sm"><i class="fal fa-times mr-1"></i> Remove Frame</a>
<a href="https://blackrockdigital.github.io/startbootstrap-{{ page.slug }}/" class="btn btn-link btn-sm d-none d-md-inline-block"><i class="fal fa-times mr-1"></i> Remove Frame</a>
{% endif %}
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions _previews/theme-freelancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ src: /themes/freelancer
layout: preview
type: theme
meta-title: Freelancer - Theme Preview
builder: true
---
15 changes: 15 additions & 0 deletions _sass/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ p.large {
line-height: 1.55;
}

// New badge
.badge-new {
background-color: $yellow;
height: 2.5rem;
width: 2.5rem;
font-size: $small-font-size;
color: $white;
transform: rotate(15deg);
border-radius: 100%;
position: absolute;
display: inline-flex;
justify-content: center;
align-items: center;
}

// Hide Overflow Utility
.o-hidden {
overflow: hidden !important;
Expand Down
2 changes: 1 addition & 1 deletion _themes/2013-09-22-one-page-wonder.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/one-page-wonder.png
img-desc: "Free Bootstrap One Page Website Template"
layout: overview-theme
type: theme
rank: 17
rank: 18

version: 5.0.7
bootstrap: 4.3.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2013-10-02-stylish-portfolio.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/stylish-portfolio.png
img-desc: "Free Bootstrap Portfolio Theme - Stylish Portfolio"
layout: overview-theme
type: theme
rank: 11
rank: 15

version: 5.0.7
bootstrap: 4.3.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2013-10-15-business-casual.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/business-casual.png
img-desc: "Free Bootstrap 4 Website Themes"
layout: overview-theme
type: theme
rank: 14
rank: 16

version: 5.0.9
bootstrap: 4.3.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2014-01-07-landing-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/landing-page.png
img-desc: "Free Bootstrap Landing Page Theme"
layout: overview-theme
type: theme
rank: 16
rank: 14

version: 5.0.7
bootstrap: 4.3.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2014-01-28-grayscale.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/grayscale.png
img-desc: "Grayscale ong page Bootstrap template"
layout: overview-theme
type: theme
rank: 8
rank: 10

version: 5.0.9
bootstrap: 4.3.1
Expand Down
4 changes: 3 additions & 1 deletion _themes/2014-05-01-freelancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ img-full: /assets/img/screenshots/themes/freelancer.png
img-desc: "One Page Bootstrap Portfolio Theme"
layout: overview-theme
type: theme
rank: 7
rank: 5

version: 6.0.2
bootstrap: 4.4.1
updated: 2020-04-16

builder: true

meta-title: "Freelancer - One Page Theme"
meta-description: "A free one page Bootstrap portfolio theme for freelancers. All Start Bootstrap templates are free to download and open source."

Expand Down
2 changes: 1 addition & 1 deletion _themes/2014-07-16-agency.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/agency.png
img-desc: "Free Bootstrap Agency Theme - Start Bootstrap"
layout: overview-theme
type: theme
rank: 6
rank: 8

version: 6.0.0
bootstrap: 4.4.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2014-09-25-clean-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/clean-blog.png
img-desc: "Free Bootstrap Blog Theme - Start Bootstrap"
layout: overview-theme
type: theme
rank: 10
rank: 12

version: 5.0.8
bootstrap: 4.3.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2014-09-27-clean-blog-jekyll.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/clean-blog-jekyll.png
img-desc: "Free Jekyll Blog Theme - Start Bootstrap"
layout: overview-theme
type: theme
rank: 10
rank: 13

version: 4.0.9
bootstrap: 4.3.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2015-04-08-creative.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/creative.png
img-desc: "Free Bootstrap Creative Theme - Start Bootstrap"
layout: overview-theme
type: theme
rank: 5
rank: 6

version: 6.0.1
bootstrap: 4.4.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2016-09-01-new-age.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/new-age.png
img-desc: "Free Bootstrap App Landing Page Theme - Start Bootstrap"
layout: overview-theme
type: theme
rank: 15
rank: 17

version: 5.0.7
bootstrap: 4.3.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2017-10-27-resume.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/resume.png
img-desc: "Free Bootstrap Resume/CV Theme - Start Bootstrap"
layout: overview-theme
type: theme
rank: 9
rank: 11

version: 5.0.8
bootstrap: 4.3.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2017-12-12-coming-soon.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/coming-soon.png
img-desc: "Free Bootstrap Coming Soon Template - Start Bootstrap"
layout: overview-theme
type: theme
rank: 13
rank: 19

version: 5.0.7
bootstrap: 4.3.1
Expand Down
2 changes: 1 addition & 1 deletion _themes/2020-03-13-clean-blog-angular-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img-full: /assets/img/screenshots/themes/clean-blog-angular.png
img-desc: "Free Angular 9 Blog Theme - Start Bootstrap"
layout: overview-node
type: theme
rank: 5
rank: 7

github-link-angular: 'https://github.com/StartBootstrap/sb-clean-blog-angular/'
github-link-node: 'https://github.com/StartBootstrap/sb-clean-blog-node/'
Expand Down
2 changes: 1 addition & 1 deletion _themes/2020-03-22-sb-ui-kit-pro-vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ layout: custom-redirect
type: theme
pro: true
new: true
rank: 7
rank: 9
---
Binary file modified assets/.DS_Store
Binary file not shown.

0 comments on commit 4dd1a61

Please sign in to comment.