Skip to content

Commit

Permalink
Classe utile pour les sections centrées
Browse files Browse the repository at this point in the history
Créer une classe SCSS pour les sections de classe `d-flex flex-column align-items-center`
  • Loading branch information
slivering committed Nov 14, 2024
1 parent 9f94a32 commit 1b9ae11
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ TODO:
- récupérer le RSS depuis https://blog.piaf-saclay.org/index.xml
- créer un carousel
- écrire la liste des exposés sur le blog
- créer une classe pour `d-flex flex-column align-items-center`
- boutons :
- faut-il utiliser les boutons officiels de YouTube et de Discord ?
- faut-il utiliser les boutons officiels de YouTube et de Discord ?
- régler les bugs de `style.scss`
- définir le thème du site
- fixer une gamme de couleurs, une police d'écriture
Expand Down
2 changes: 1 addition & 1 deletion components/blog_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2 class="color-gray">{{title}}</h2>
{% endblock %}

{% block main %}
<section class="content d-flex flex-column align-items-center">
<section class="content centered-section">
<div class="md-content">
{{content|safe}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/md_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block main %}

<section class="container d-flex flex-column align-items-center">
<section class="container centered-section">
<div class="md-content">
{% block md_content %}
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion pages/asimov.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% block main %}

<section class="container d-flex flex-column align-items-center">
<section class="container centered-section">

<div class="md-content">

Expand Down
2 changes: 1 addition & 1 deletion pages/groupe-de-lecture.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% extends "base.html" %}

{% block main %}
<section class="container d-flex flex-column align-items-center">
<section class="container centered-section">

<div class="md-content">

Expand Down
4 changes: 2 additions & 2 deletions pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% block main %}


<section class="d-flex flex-column align-items-center">
<section class="centered-section">
{% include "about-phrase.html" %}
<div class="row card-container">
{% set title="Notre mission" %}
Expand Down Expand Up @@ -39,7 +39,7 @@
</div>
</section>

<section class="d-flex flex-column align-items-center">
<section class="centered-section">
<h2 class="display-4 m-3"> Rejoindre la communauté</h2>
<div class="row card-container">
{% set title="Discord" %}
Expand Down
6 changes: 6 additions & 0 deletions scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ blockquote p {
justify-content: center;
}

.centered-section {
@extend .d-flex;
@extend .flex-column;
@extend .align-items-center;
}

.display-7 {
font-size: calc(1rem + 1vw);
font-weight: 300;
Expand Down

0 comments on commit 1b9ae11

Please sign in to comment.