Skip to content

Commit

Permalink
Add Hacktoberfest modal for October (#336)
Browse files Browse the repository at this point in the history
* Adds modal for Hacktoberfest.
* Changes ids for donate modal.
  • Loading branch information
nobeeakon committed Oct 8, 2022
1 parent b3dfd68 commit ad75bdf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
35 changes: 35 additions & 0 deletions themes/grass/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,41 @@ <h1 class="mb-3"><img alt="GRASS GIS" src="{{.Site.BaseURL}}/images/logos/grassl
</div>
</div>
</header>

<div class="modal show fade" id="hacktoberfest-modal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<p>
<a href="https://hacktoberfest.com/"><b>Hacktober fest</b></a> is here!!! A full month to contribute to open source software.</p>
<p>
Ever wanted to share your talent with
GRASS GIS? This is an excellent opportunity. Both coding and non coding contributions are welcome.
Please have a look at <a href="https://github.com/OSGeo/grass/issues?q=is%3Aopen+is%3Aissue+label%3AHacktoberfest"><b>GRASS GIS repo</b></a>
and <a href="https://github.com/OSGeo/grass-addons/issues?q=is%3Aissue+is%3Aopen+label%3AHacktoberfest"><b> GRASS addons repo</b></a>.
</p>
<p>
Still not sure what to do? Please do not hesitate to reach out <a href="https://gitter.im/grassgis/community"> <b>in our chatroom :)</b></a>
</p>
<p>
<i>GRASS GIS Team</i>
</p>

</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script>
$(window).load(function()
{
$('#hacktoberfest-modal').modal('show');
});
</script>


<section class="section bg-gray">
<div class="container">
<div class="row justify-content-center">
Expand Down
6 changes: 3 additions & 3 deletions themes/grass/layouts/shortcodes/donateDialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- Button trigger modal -->

{{if .Get "isToggle" }}
<button data-toggle="modal" data-target="#exampleModalCenter" style="background:none;border:none;padding:0;margin:0;">
<button data-toggle="modal" data-target="#donateToGrassModal" style="background:none;border:none;padding:0;margin:0;">
{{if .Get "isMarkdown" }}
{{.Inner | markdownify}}
{{else}}
Expand All @@ -11,11 +11,11 @@
</button>

{{else}}
<div class="modal fade" id="exampleModalCenter" tabindex="-1" aria-labelledby="exampleModalPopoversLabel" aria-hidden="true">
<div class="modal fade" id="donateToGrassModal" tabindex="-1" aria-labelledby="donateToGrassModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalPopoversLabel">Thanks for choosing GRASS GIS!</h5>
<h5 class="modal-title" id="donateToGrassModalLabel">Thanks for choosing GRASS GIS!</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
Expand Down

0 comments on commit ad75bdf

Please sign in to comment.