added icons for social networks on the detail page

This commit is contained in:
Arnhoudt 2020-09-16 15:25:07 +02:00
parent 570826d185
commit be6e592168
16 changed files with 62 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -542,6 +542,10 @@ fieldset p label input {
opacity: 1; opacity: 1;
} }
.title_link{
text-decoration: none;
}
.tile__title { .tile__title {
opacity: 0; opacity: 0;
position: absolute; position: absolute;
@ -607,6 +611,58 @@ fieldset p label input {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.social>a {
display: block;
background-size: 50px;
background-repeat: no-repeat;
background-position: top center;
}
.social>a>.link{
display: none;
}
.social>a>p{
padding-top: 50px;
text-align: center;
}
.social-facebook>a{
background-image: url(/assets/social/facebook_small.png);
}
.social-instagram>a{
background-image: url(/assets/social/instagram_small.png);
}
.social-twitter>a{
background-image: url(/assets/social/twitter_small.png);
}
.social-youtube>a{
background-image: url(/assets/social/youtube_small.png);
}
.social-tiktok>a{
background-image: url(/assets/social/tiktok_small.png);
}
.social-linkedin>a{
background-image: url(/assets/social/linkedIn_small.png);
}
.social-fetlife>a{
background-image: url(/assets/social/fetLife_small.png);
}
.social-container>ul{
list-style: none;
display: flex;
gap: 1rem;
}
.vereniging_themas{ .vereniging_themas{
list-style: none; list-style: none;
display: flex; display: flex;
@ -651,6 +707,7 @@ footer{
gap: 1rem; gap: 1rem;
} }
@media only screen and (max-width: 600px) { @media only screen and (max-width: 600px) {
.tile-grid { .tile-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

View file

@ -1,10 +1,10 @@
<div class="details-container details-logo"> <div class="details-container details-logo">
<img src="https://dsa.ugent.be/api/verenigingen/<%= abbreviation(item) %>/logo?size=huge" alt="<%= item[:naam] %>"> <a target="_blank" href="<%= item[:website] %>"><img src="https://dsa.ugent.be/api/verenigingen/<%= abbreviation(item) %>/logo?size=small" alt="<%= item[:naam] %>"></a>
</div> </div>
<div class="detail_title"> <div class="detail_title">
<h2> <a class="title_link" target="_blank" href="<%= item[:website] %>"><h2>
<%= item[:naam] %> <%= item[:naam] %>
</h2> </h2></a>
<% if item[:themas] %> <% if item[:themas] %>
<ul class="vereniging_themas"> <ul class="vereniging_themas">
<% for thema in item[:themas] %> <% for thema in item[:themas] %>
@ -31,8 +31,8 @@
<ul> <ul>
<% if item[:social] %> <% if item[:social] %>
<% for social in item[:social] %> <% for social in item[:social] %>
<li class="social-<%= social[:platform] %>"> <li class="social social-<%= social[:platform] %>">
<a href="<%= social[:link] %>"><%= social[:link] %></a> <a href="<%= social[:link] %>"><p class="link"><%= social[:link] %></p><p><%= social[:platform] %></p></a>
</li> </li>
<% end %> <% end %>
<% end %> <% end %>