Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide sponsor form link if it's undefined, fixes #10 #13

Merged
merged 4 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _data/conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ call-for-sponsors: true
homepage-sponsor-button: true
sponsorpage-sponsor-button: false
# URL to document
prospectus-document: ''
sponsor-btn-link: 'https://na.eventscloud.com/sponsor.c4l21'
# prospectus-document: ''
# sponsor-btn-link: 'https://na.eventscloud.com/sponsor.c4l21'

##########
# !!!NOTE!!! All 'end-date' vars should be in the following format: YYYY-MM-DD
Expand Down
7 changes: 7 additions & 0 deletions assets/_scss/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@ p {
margin: 0;
padding: 0;
}

.ct-btn-light {
border: 2px solid $accent-light;
&:hover {
background-color: $accent-light;
}
}
20 changes: 14 additions & 6 deletions prospectus/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ <h1>Code4Lib {{site.data.conf.year}} Sponsor Prospectus</h1>
<p>
The Code4Lib {{site.data.conf.year}} Conference, scheduled for {{site.data.conf.days[0].date-data | date: "%B %-d"}} - {{site.data.conf.days.last.date-data | date: "%-d"}}{% if site.data.conf.venue.name != '' %} in {{site.data.conf.location}}{% endif %}, presents an opportunity for vendors, organizations, libraries, and projects to show their support for open and collaborative solutions for higher education, libraries, museums, and archives by providing financial support and attending the conference.
</p>
<a class="btn ct-btn-light btn-lg" href="{{site.data.conf.sponsor-btn-link}}">Sponsor Code4Lib {{site.data.conf.year}}</a>

{% if site.data.conf.sponsor-btn-link != nil %}
<a class="btn ct-btn-light btn-lg" href="{{site.data.conf.sponsor-btn-link}}">Sponsor Code4Lib {{site.data.conf.year}}</a>
{% endif %}

<h2>Who We Are</h2>
<p>
Expand Down Expand Up @@ -48,7 +51,7 @@ <h2>About the Conference</h2>
</p>

<p>
The {{site.data.conf.year}} conference will be our first online conference. The conference is gender-diverse, with approximately 48% women attendees.
The conference is gender-diverse, with approximately 48% women attendees.
</p>

<h2>Impact of Support</h2>
Expand All @@ -64,13 +67,18 @@ <h2>Impact of Support</h2>
Your sponsorship of the conference can also provide immediate, concrete benefits to you and your organization. Code4Lib attendees include active practitioners who may be interested in your product, open source project, or services as well as department heads and senior administrators (approximately 17% of attendees last year) who make purchase decisions. Sponsors are strongly encouraged to send their staff to the conference to take advantage of access to the people and ideas who make up the Code4Lib community.
</p>

{% if site.data.conf.sponsor-contact-email != "" %}
{% if site.data.conf.sponsor-contact-email != nil or site.data.conf.sponsor-btn-link != nil %}
<p>
If you're ready to make a pledge, please <a href="{{site.data.conf.sponsor-btn-link}}">visit our sponsor registration form</a>. If you have questions, please get in touch with <a href="mailto:{{site.data.conf.sponsor-contact-email}}">{{site.data.conf.sponsor-contact-email}}</a>.
{% if site.data.conf.sponsor-btn-link != nil %}
If you're ready to make a pledge, please <a href="{{site.data.conf.sponsor-btn-link}}">visit our sponsor registration form</a>.
{% endif %}
{% if site.data.conf.sponsor-contact-email != nil %}
If you have questions, please get in touch with <a href="mailto:{{site.data.conf.sponsor-contact-email}}">{{site.data.conf.sponsor-contact-email}}</a>.
{% endif %}
</p>
{% endif %}

{% if site.data.conf.prospectus-document != '' %}
{% if site.data.conf.prospectus-document != nil %}
<p>
A <a href="{{ site.data.conf.prospectus-document }}" onclick="ga('send', 'event', 'PDF', 'Download', 'Prospectus');">one-page information sheet</a> (PDF) is available to assist with making a case to sponsor the Code4Lib Conference.
</p>
Expand Down Expand Up @@ -255,7 +263,7 @@ <h3>Post-Conference Video Production</h3>
</div>
</section>

{% if site.data.conf.sponsor-contact-email != "" %}
{% if site.data.conf.sponsor-contact-email != nil %}
<!-- this floats in a tab along the side of the page -->
<div id="contact">
<p class="contact-tab">CONTACT</p>
Expand Down