Skip to content

Commit

Permalink
(ui) Replace Twitter icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent committed Jun 13, 2024
1 parent 4ad6ecf commit 04d6d24
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 33 deletions.
2 changes: 1 addition & 1 deletion app/frontend/images/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/frontend/src/stylesheets/app.buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
}

.btn-twitter {
display: inline-flex;
align-items: center;
gap: 1rem;
border: 1px solid #ccd6dd;
background-color: #55acee;
color: white;
Expand Down
3 changes: 3 additions & 0 deletions app/frontend/src/stylesheets/app.components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
}

a {
display: inline-flex;
align-items: center;
gap: 1rem;
color: $black-light;

&:hover {
Expand Down
3 changes: 1 addition & 2 deletions app/frontend/templates/admin/settings/home_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ <h4 translate>{{ 'app.admin.settings.news_of_the_home_page' }}</h4>
<text-setting name="twitter_name"
settings="allSettings"
required="false"
label="app.admin.settings.twitter_stream"
fa-icon="fa-twitter">
label="app.admin.settings.twitter_stream">
</text-setting>
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion app/frontend/templates/events/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ <h3 translate>{{ 'app.public.events_show.event_description' }}</h3>

<div class="text-center" id="social-share">
<a ng-href="{{shareOnFacebook()}}" target="_blank" class="btn btn-facebook btn-lg m-t"><i class="fa fa-facebook m-r"></i> {{ 'app.public.events_show.share_on_facebook' | translate }}</a>
<a ng-href="{{shareOnTwitter()}}" target="_blank" class="btn btn-twitter btn-lg m-t"><i class="fa fa-twitter m-r"></i> {{ 'app.public.events_show.share_on_twitter' | translate }}</a>
<a ng-href="{{shareOnTwitter()}}" target="_blank" class="btn btn-twitter btn-lg m-t">
<svg viewBox="0 0 24 24" width="20px">
<use href="../../images/icons.svg#twitter"/>
</svg>
{{ 'app.public.events_show.share_on_twitter' | translate }}
</a>
</div>

</div>
Expand Down
10 changes: 5 additions & 5 deletions app/frontend/templates/home/twitter.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<section class="widget panel b-a m-t-sm" ng-show="twitterName">
<div class="panel-heading b-b small">
<div class="pull-right text-xs align">
<a href="https://twitter.com/{{ twitterName }}" target="_blank">{{ 'app.public.home.follow_us' | translate }}
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x text-yellow"></i>
<i class="fa fa-twitter fa-stack-1x fa-inverse text-white"></i>
</span>
<a href="https://twitter.com/{{ twitterName }}" target="_blank">
{{ 'app.public.home.follow_us' | translate }}
<svg viewBox="0 0 24 24" width="32px">
<use href="../../images/icons.svg#twitter"/>
</svg>
</a>
</div>
<h2 translate>{{ 'app.public.home.latest_tweets' }}</h2>
Expand Down
7 changes: 6 additions & 1 deletion app/frontend/templates/projects/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ <h3 class="well well-simple step-title">{{ 'app.public.projects_show.step_N' | t

<div class="text-center" id="social-share">
<a ng-href="{{shareOnFacebook()}}" target="_blank" class="btn btn-facebook btn-lg m-t"><i class="fa fa-facebook m-r"></i> {{ 'app.public.projects_show.share_on_facebook' | translate }}</a>
<a ng-href="{{shareOnTwitter()}}" target="_blank" class="btn btn-twitter btn-lg m-t"><i class="fa fa-twitter m-r"></i> {{ 'app.public.projects_show.share_on_twitter' | translate }}</a>
<a ng-href="{{shareOnTwitter()}}" target="_blank" class="btn btn-twitter btn-lg m-t">
<svg viewBox="0 0 24 24" width="20px">
<use href="../../images/icons.svg#twitter"/>
</svg>
{{ 'app.public.projects_show.share_on_twitter' | translate }}
</a>
</div>

<div class="wrapper-lg" ng-if="disqusShortname">
Expand Down
4 changes: 2 additions & 2 deletions config/locales/app.public.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ de:
by_name: "Von {NAME}"
step_N: "Schritt {INDEX}"
share_on_facebook: "Auf Facebook teilen"
share_on_twitter: "Auf Twitter teilen"
share_on_twitter: "Auf X teilen"
deleted_user: "Gelöschter Nutzer"
posted_on_: "Gepostet am"
CAD_file_to_download: "{COUNT, plural, one {} =0{Keine CAD-Dateien} =1{CAD-Datei zum Download} other{CAD-Dateien zum Download}}"
Expand Down Expand Up @@ -369,7 +369,7 @@ de:
thanks_for_coming: "Vielen Dank für Ihr Kommen!"
view_event_list: "Kommende Veranstaltungen anzeigen"
share_on_facebook: "Auf Facebook teilen"
share_on_twitter: "Auf Twitter teilen"
share_on_twitter: "Auf X teilen"
last_name_and_first_name: "Last name and first name"
pre_book: "Pre-book"
pre_registration_end_date: "Deadline for pre-registration"
Expand Down
4 changes: 2 additions & 2 deletions config/locales/app.public.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ en:
by_name: "By {NAME}"
step_N: "Step {INDEX}"
share_on_facebook: "Share on Facebook"
share_on_twitter: "Share on Twitter"
share_on_twitter: "Share on X"
deleted_user: "Deleted user"
posted_on_: "Posted on"
CAD_file_to_download: "{COUNT, plural, =0{No CAD files} =1{CAD file to download} other{CAD files to download}}"
Expand Down Expand Up @@ -369,7 +369,7 @@ en:
thanks_for_coming: "Thanks for coming!"
view_event_list: "View events to come"
share_on_facebook: "Share on Facebook"
share_on_twitter: "Share on Twitter"
share_on_twitter: "Share on X"
last_name_and_first_name: "Last name and first name"
pre_book: "Pre-book"
pre_registration_end_date: "Deadline for pre-registration"
Expand Down
6 changes: 3 additions & 3 deletions config/locales/app.public.es-MX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ es-MX:
discover_members: "Descubrir miembros"
#next events summary on the home page
fablab_s_next_events: "Próximos eventos"
every_events: "All events"
every_events: "Todos los eventos"
event_card:
on_the_date: "El {DATE}"
from_date_to_date: "Desde {START} hasta {END}"
Expand Down Expand Up @@ -199,7 +199,7 @@ es-MX:
by_name: "Por {NAME}"
step_N: "Paso {INDEX}"
share_on_facebook: "Compartir en Facebook"
share_on_twitter: "Compartir en Twitter"
share_on_twitter: "Compartir en X"
deleted_user: "Usario eliminado"
posted_on_: "Subido el"
CAD_file_to_download: "{COUNT, plural, one {}=0{No hay archivos CAD} =1{Archivo CAD para descargar} other{Archivos CAD para descargar}}"
Expand Down Expand Up @@ -369,7 +369,7 @@ es-MX:
thanks_for_coming: "¡Gracias por venir!"
view_event_list: "Ver próximos eventos"
share_on_facebook: "Compartir en Facebook"
share_on_twitter: "Compartir en Twitter"
share_on_twitter: "Compartir en X"
last_name_and_first_name: "Apellido y nombre"
pre_book: "Preinscribir"
pre_registration_end_date: "Fecha límite para preinscripción"
Expand Down
6 changes: 3 additions & 3 deletions config/locales/app.public.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ es:
discover_members: "Descubrir miembros"
#next events summary on the home page
fablab_s_next_events: "Próximos eventos"
every_events: "All events"
every_events: "Todos los eventos"
event_card:
on_the_date: "El {DATE}"
from_date_to_date: "Desde {START} hasta {END}"
Expand Down Expand Up @@ -199,7 +199,7 @@ es:
by_name: "Por {NAME}"
step_N: "Paso {INDEX}"
share_on_facebook: "Compartir en Facebook"
share_on_twitter: "Compartir en Twitter"
share_on_twitter: "Compartir en X"
deleted_user: "Usario eliminado"
posted_on_: "Subido el"
CAD_file_to_download: "{COUNT, plural, one {}=0{No hay archivos CAD} =1{Archivo CAD para descargar} other{Archivos CAD para descargar}}"
Expand Down Expand Up @@ -369,7 +369,7 @@ es:
thanks_for_coming: "¡Gracias por venir!"
view_event_list: "Ver próximos eventos"
share_on_facebook: "Compartir en Facebook"
share_on_twitter: "Compartir en Twitter"
share_on_twitter: "Compartir en X"
last_name_and_first_name: "Apellido y nombre"
pre_book: "Preinscribir"
pre_registration_end_date: "Fecha límite para preinscripción"
Expand Down
4 changes: 2 additions & 2 deletions config/locales/app.public.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fr:
by_name: "Par {NAME}"
step_N: "Étape {INDEX}"
share_on_facebook: "Partager sur Facebook"
share_on_twitter: "Partager sur Twitter"
share_on_twitter: "Partager sur X"
deleted_user: "Utilisateur supprimé"
posted_on_: "Posté le"
CAD_file_to_download: "{COUNT, plural, =0{Aucun fichier CAO} =1{Fichier CAO à télécharger} other{Fichiers CAO à télécharger}}"
Expand Down Expand Up @@ -369,7 +369,7 @@ fr:
thanks_for_coming: "Merci d'avoir participé !"
view_event_list: "Voir les événements à venir"
share_on_facebook: "Partager sur Facebook"
share_on_twitter: "Partager sur Twitter"
share_on_twitter: "Partager sur X"
last_name_and_first_name: "Nom et prénom"
pre_book: "Pré-inscrire"
pre_registration_end_date: "Date limite de pré-inscription"
Expand Down
4 changes: 2 additions & 2 deletions config/locales/app.public.it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ it:
by_name: "di {NAME}"
step_N: "Fase {INDEX}"
share_on_facebook: "Condividi su Facebook"
share_on_twitter: "Condividi su Twitter"
share_on_twitter: "Condividi su X"
deleted_user: "Utente eliminato"
posted_on_: "Pubblicato su"
CAD_file_to_download: "{COUNT, plural, one {}=0{Nessun file CAD} =1{File CAD da scaricare} other{File CAD da scaricare}}"
Expand Down Expand Up @@ -369,7 +369,7 @@ it:
thanks_for_coming: "Grazie per aver partecipato!"
view_event_list: "Visualizza gli eventi in programma"
share_on_facebook: "Condividi su Facebook"
share_on_twitter: "Condividi su Twitter"
share_on_twitter: "Condividi su X"
last_name_and_first_name: "Last name and first name"
pre_book: "Pre-book"
pre_registration_end_date: "Deadline for pre-registration"
Expand Down
4 changes: 2 additions & 2 deletions config/locales/app.public.no.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
by_name: "Av {NAME}"
step_N: "Trinn {INDEX}"
share_on_facebook: "Del på Facebook"
share_on_twitter: "Del på Twitter"
share_on_twitter: "Del på X"
deleted_user: "Slettet bruker"
posted_on_: "Postet den"
CAD_file_to_download: "{COUNT, plural, one {} =0{Ingen CAD-filer} =1{CAD-fil for å laste ned} other{CAD-filer for å laste ned}}"
Expand Down Expand Up @@ -369,7 +369,7 @@
thanks_for_coming: "Takk for besøket!"
view_event_list: "Vis hendelser som kommer"
share_on_facebook: "Del på Facebook"
share_on_twitter: "Del på Twitter"
share_on_twitter: "Del på X"
last_name_and_first_name: "Last name and first name"
pre_book: "Pre-book"
pre_registration_end_date: "Deadline for pre-registration"
Expand Down
4 changes: 2 additions & 2 deletions config/locales/app.public.pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ pt:
by_name: "Por {NAME}"
step_N: "Passo {INDEX}"
share_on_facebook: "Compartilhar no Facebook"
share_on_twitter: "Compartilhar no Twitter"
share_on_twitter: "Compartilhar no X"
deleted_user: "Usuário deletado"
posted_on_: "Criado em"
CAD_file_to_download: "{COUNT, plural, =0{Sem arquivos CAD} =1{Arquivo CAD para download} other{Arquivos CAD para download}}"
Expand Down Expand Up @@ -369,7 +369,7 @@ pt:
thanks_for_coming: "Obrigado por ter vindo!"
view_event_list: "Visualizar próximos eventos"
share_on_facebook: "Compartilhar no Facebook"
share_on_twitter: "Compartilhar no Twitter"
share_on_twitter: "Compartilhar no X"
last_name_and_first_name: "Último nome e primeiro nome"
pre_book: "Pré-agendamento"
pre_registration_end_date: "Prazo final para o pré-inscrição"
Expand Down
6 changes: 3 additions & 3 deletions config/locales/app.public.sv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ sv:
discover_members: "Upptäck medlemmar"
#next events summary on the home page
fablab_s_next_events: "Nästa evenemang"
every_events: "All events"
every_events: "Alla evenemang"
event_card:
on_the_date: "Den {DATE}"
from_date_to_date: "Från {START} till {END}"
Expand Down Expand Up @@ -199,7 +199,7 @@ sv:
by_name: "Av {NAME}"
step_N: "Steg {INDEX}"
share_on_facebook: "Dela på Facebook"
share_on_twitter: "Dela på Twitter"
share_on_twitter: "Dela på X"
deleted_user: "Ta bort användare"
posted_on_: "Postat den"
CAD_file_to_download: "{COUNT, plural, one {}=0{Inga CAD-filer} =1{CAD-fil att ladda ner} other{CAD-filer att ladda ner}}"
Expand Down Expand Up @@ -369,7 +369,7 @@ sv:
thanks_for_coming: "Tack för ditt besök!"
view_event_list: "Visa kommande evenemang"
share_on_facebook: "Dela på Facebook"
share_on_twitter: "Dela på Twitter"
share_on_twitter: "Dela på X"
last_name_and_first_name: "För- och efternamn"
pre_book: "Förboka"
pre_registration_end_date: "Deadline för förbokning"
Expand Down
4 changes: 2 additions & 2 deletions config/locales/app.public.zu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ zu:
by_name: "crwdns28098:0{NAME}crwdne28098:0"
step_N: "crwdns28100:0{INDEX}crwdne28100:0"
share_on_facebook: "crwdns28102:0crwdne28102:0"
share_on_twitter: "crwdns28104:0crwdne28104:0"
share_on_twitter: "crwdns38220:0crwdne38220:0"
deleted_user: "crwdns28106:0crwdne28106:0"
posted_on_: "crwdns28108:0crwdne28108:0"
CAD_file_to_download: "crwdns28110:0COUNT={COUNT}crwdne28110:0"
Expand Down Expand Up @@ -369,7 +369,7 @@ zu:
thanks_for_coming: "crwdns28370:0crwdne28370:0"
view_event_list: "crwdns28372:0crwdne28372:0"
share_on_facebook: "crwdns28374:0crwdne28374:0"
share_on_twitter: "crwdns28376:0crwdne28376:0"
share_on_twitter: "crwdns38222:0crwdne38222:0"
last_name_and_first_name: "crwdns37937:0crwdne37937:0"
pre_book: "crwdns37939:0crwdne37939:0"
pre_registration_end_date: "crwdns37941:0crwdne37941:0"
Expand Down

0 comments on commit 04d6d24

Please sign in to comment.