Re-introduce a sponsors block at the bottom of the home page.

No sense putting it elsewhere IMO

[Fix WEBSITE-58]
This commit is contained in:
R. Tyler Croy 2016-04-08 15:11:59 -07:00
parent 46261f91bf
commit afb5e61737
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
8 changed files with 106 additions and 127 deletions

View File

@ -0,0 +1,51 @@
:ruby
# Images should all be between 300 and 350 pixels wide, and no more than 180px tall
sponsors = [['osuosl.png',
'Oregon State University Open Source Lab',
'https://osuosl.org'],
['cloudbees.png',
'CloudBees, Inc.',
'https://cloudbees.com'],
['rackspace.png',
'Rackspace, Inc.',
'https://rackspace.com'],
['redhat.png',
'RedHat, Inc.',
'https://redhat.com'],
]
supporters = [['Atlassian', 'https://atlassian.com'],
['Contegix', 'https://contegix.com'],
['Datadog', 'https://www.datadoghq.com'],
['Jet Brains', 'https://jetbrains.com'],
['JFrog', 'https://jfrog.com'],
['Mac Cloud', 'http://maccloud.me/'],
['PagerDuty', 'https://pagerduty.com'],
['XMission', 'https://xmission.com'],
]
#sponsorsblock.jumbotron
.sponsors
%p
%strong
We thank the following organizations for their major committments to
support the Jenkins project.
%ul
- sponsors.each do |logo, name, url|
%li
%a{:href => url, :target => '_blank'}
%img{:alt => name, :title => name, :src => "/images/sponsors/#{logo}"}/
.supporters
%p
%strong
We thank the following organizations for their support of the Jenkins
project through free and/or open source licensing programs.
%ul
- supporters.each do |name, url|
%li
%a{:href => url, :target => '_blank'}
= name

View File

@ -14,7 +14,7 @@
'data-title' => step.title,
'data-content' => step.long,
'href' => step.href}
%h4.card-title
.tag
Step

View File

@ -1426,3 +1426,26 @@ p.details {
.imageblock.right {
float: right;
}
#sponsorsblock {
padding: 1rem 2rem;
}
#sponsorsblock ul, p {
list-style-type: none;
padding: 0;
text-align: center;
}
#sponsorsblock li {
display: inline;
padding: 1rem;
}
.supporters {
padding-top: 1.5rem;
}
.supporters a {
font-weight: bold;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -5,134 +5,39 @@ blogrollup: true
homepage: true
---
- if legacy?
:css
/*kill off unwanted crafts */
#content H1, DIV.taxonomy {
display:none;
}
#content DIV.node {
border-bottom:none;
}
= partial('downloadbanner.html.haml')
= partial('jumbotron.html.haml',
:href => '/2.0',
:title => 'Coming soon: Jenkins 2.0',
:intro => "Jenkins 2.0 brings Pipeline as Code, a new setup experience and other UI improvements while maintaining backwards compatibility with existing Jenkins installations!",
:image => '/images/railyard.jpg',
:call_to_action => {:text => 'Learn more', :href => '/2.0'})
= partial('featurelist.html.haml')
= partial('steps.html.haml', site.steps[:firststart])
= partial('jumbotron.html.haml',
:href => '/solutions/pipeline',
:title => 'Pipeline as Code',
:intro => 'Use the Pipeline plugin to describe your continuous delivery pipeline with its flexible domain-specific language',
:image => site.solutions[:pipeline].jumbotron.image,
:call_to_action => {:text => 'Learn more', :href => '/solutions/pipeline'})
#welcome #directory {
padding-top: 2em;
}
#welcome #directory A {
text-decoration: none !important;
}
#welcome #directory A:link {
text-decoration: none !important;
}
#welcome #directory A:hover {
text-decoration: underline;
color: black;
}
#welcome #directory .title {
color: black;
font-weight: bold;
font-size: 1.5em;
}
#welcome #directory TD {
vertical-align: middle;
padding-bottom: 3em;
}
#welcome #directory .description {
color: gray;
}
#welcome #directory .logo {
border: 0px;
margin-right: 1em;
}
%div
.section.events.fff
%div.container-fluid.events.no-margin
%div.row
%div#sidebar.col-md-12.events.horizontal
= partial('events.html.haml')
%div#welcome
%div.content{:align => 'center'}
%table#directory{:valign => 'middle', :style => 'border: none;'}
%tr
%td
%a{:href => 'https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins'}
%img.logo{:src => '/images/logo_head.png'}/
.section.blogs.f9f9f9
%div.container
%div.row.body
.col-md-1
%div#content.col-md-10
%td
%a{:href => 'https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins'}
%div.title
Meet Jenkins
%div.description
Find out what Jenkins is and get started.
%div#content-top
= partial('blogs.html.haml')
%tr
%td
%a{:href => 'https://wiki.jenkins-ci.org/display/JENKINS/Use+Jenkins'}
%img.logo{:src => '/images/user.gif'}/
.col-md-1
.col-md-2
%td
%a{:href => 'https://wiki.jenkins-ci.org/display/JENKINS/Use+Jenkins'}
%div.title
Use Jenkins
%div.description
See how to get more out of your Jenkins
%tr
%td
%a{:href => 'https://wiki.jenkins-ci.org/display/JENKINS/Plugins'}
%img.logo{:src => '/images/plugin.png'}/
%td
%a{:href => 'https://wiki.jenkins-ci.org/display/JENKINS/Plugins'}
%div.title
Customize Jenkins
%div.description
Choose from hundreds of plugins to customize Jenkins to suit your needs
%tr
%td
%a{:href => 'https://wiki.jenkins-ci.org/display/JENKINS/Extend+Jenkins'}
%img.logo{:src => '/images/developer.gif'}/
%td
%a{:href => 'https://wiki.jenkins-ci.org/display/JENKINS/Extend+Jenkins'}
%div.title
Extend Jenkins
%div.description
Learn how to build or extend Jenkins by writing plugins
%div{:style => 'padding-top: 3em; text-align: right;'}
%a{:href => 'https://wiki.jenkins-ci.org/display/JENKINS/Awards'}
Awards
%img{:src => '/images/award.png', :style => 'vertical-align: middle;'}/
- else
= partial('downloadbanner.html.haml')
= partial('jumbotron.html.haml',
:href => '/2.0',
:title => 'Coming soon: Jenkins 2.0',
:intro => "Jenkins 2.0 brings Pipeline as Code, a new setup experience and other UI improvements while maintaining backwards compatibility with existing Jenkins installations!",
:image => '/images/railyard.jpg',
:call_to_action => {:text => 'Learn more', :href => '/2.0'})
= partial('featurelist.html.haml')
= partial('steps.html.haml', site.steps[:firststart])
= partial('jumbotron.html.haml',
:href => '/solutions/pipeline',
:title => 'Pipeline as Code',
:intro => 'Use the Pipeline plugin to describe your continuous delivery pipeline with its flexible domain-specific language',
:image => site.solutions[:pipeline].jumbotron.image,
:call_to_action => {:text => 'Learn more', :href => '/solutions/pipeline'})
%div
.section.events.fff
%div.container-fluid.events.no-margin
%div.row
%div#sidebar.col-md-12.events.horizontal
= partial('events.html.haml')
.section.blogs.f9f9f9
%div.container
%div.row.body
.col-md-1
%div#content.col-md-10
%div#content-top
= partial('blogs.html.haml')
.col-md-1
.col-md-2
= partial('sponsors.html.haml')