-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from cetinajero/feature/facebook-component
Create facebook & card-deck components
- Loading branch information
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="card-deck"> | ||
{% for info-card in page.info-cards %} | ||
<div class="card pt-0 pt-sm-5 pt-lg-0" data-appear-animation="{{ info-card.animation }}"> | ||
<a href="{{ info-card.href }}"> | ||
<img src="{{ site.amazon-s3 }}/components/info-cards/card-deck/img/{{ info-card.img }}.png" class="card-img-top" alt="{{ info-card.title }}"> | ||
</a> | ||
<div class="card-body"> | ||
<h5 class="card-title">{{ info-card.title }}</h5> | ||
<p class="card-text">{{ info-card.desc }}</p> | ||
</div> | ||
<div class="card-footer text-right bg-white border-top-0"> | ||
<a class="btn btn-primary" href="{{ info-card.href }}">{{ info-card.button }}</a> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="text-center"> | ||
<iframe | ||
src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fgrupopvmx%2F&tabs=timeline&width=340&height=500&small_header=true&adapt_container_width=false&hide_cover=false&show_facepile=true&appId" | ||
width="340" | ||
height="500" | ||
style="border:none;overflow:hidden" | ||
scrolling="no" | ||
frameborder="0" | ||
allowTransparency="true" | ||
allow="encrypted-media"> | ||
</iframe> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@mixin card-deck-column-count($count: 1) { | ||
flex: 0 0 calc(100% / #{$count} - #{$card-deck-margin} * 2); | ||
border: none; | ||
} | ||
|
||
.card-deck { | ||
.card { | ||
@include media-breakpoint-between(sm, md) { | ||
@include card-deck-column-count(2); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters