Skip to content

Commit 3715686

Browse files
committed
✨ Feat(tips): improve style, add some tips
1 parent 13fcf7b commit 3715686

File tree

6 files changed

+69
-7
lines changed

6 files changed

+69
-7
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: easy window resize
3+
author: tmaillard
4+
date: 2024-05-24
5+
expirydate: ""
6+
draft: false
7+
tags:
8+
- chrome
9+
---
10+
Un plugin pour retailler rapidement sa fenêtre chrome, toujours utile quand on fait du dév front !
11+
12+
[https://chromewebstore.google.com/detail/easy-window-resize](https://chromewebstore.google.com/detail/easy-window-resize/cfpenpohaapdgnkglcbgjiooipcbcebi?pli=1)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Faire des commits conventionnels
3+
author: mbollot
4+
date: 2024-05-24
5+
expirydate: ""
6+
draft: false
7+
---
8+
commitizen est un outil en ligne de commande pour faire des commit, quand on le lance il demande si c'est une feature, un bug etc. quelle catégorie est concernée, quel est le message de commit, si cela ferme un ticket… Bref quelques questions et il va créer un joli commit bien formaté, avec un emoji.
9+
10+
<https://github.com/commitizen/cz-cli>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "only-allow : ne vous trompez plus"
3+
author: probillard
4+
date: 2024-05-24
5+
expirydate: ""
6+
draft: false
7+
tags:
8+
- npm
9+
- yarn
10+
---
11+
Ça vous arrive de switcher de projet et de vous tromper entre npm et yarn ? Plus maintenant, grâce à [only-allow](https://www.npmjs.com/package/only-allow) !
12+
13+
Ajoutez juste une commade en preinstall (plus d'info sur le readme) et c'est parti
14+
15+
```
16+
{
17+
"scripts": {
18+
"preinstall": "npx only-allow npm"
19+
}
20+
}
21+
```

site/layouts/partials/tips.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ <h1>Tips</h1>
33

44
<div class="wrapper">
55

6-
<section id="tips">
7-
<div class="wrapper">
86
{{ range first 3 (where .Site.RegularPages "Section" "tips") }}
97
{{ .Render "li" }}
108
{{ end }}
11-
</div>
12-
</section>
139
</div>
1410
<div class="wrapper-center">
1511
<a href="/tips/" class="btn">Tous nos tips</a>

site/layouts/tips/li.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<div class="tips-snippet-container">
44
<div class="tips-snippet">
5-
<div>
65
<h2>
76
{{ if .Truncated }}
87
<a aria-label="En savoir plus sur {{ .Title }}" href="{{ .Permalink }}">{{ .Title }}</a>
@@ -24,5 +23,4 @@ <h2>
2423
</a>
2524
{{ end }}
2625
</div>
27-
</div>
2826
</div>

src/css/_tips.scss

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,32 @@ section#tips {
44
padding-bottom: 50px;
55

66
.wrapper {
7-
max-width: 800px;
7+
max-width: 992px;
88
margin: 0 auto;
99
}
10+
11+
.tips-snippet {
12+
color: $darkgrey;
13+
min-height: 200px;
14+
display: flex;
15+
flex-direction: column;
16+
justify-content: space-between;
17+
18+
width: 100%;
19+
padding: 35px;
20+
margin-top: 20px;
21+
margin-bottom: 20px;
22+
23+
border: 1px solid rgba(255, 255, 255, 0.25);
24+
border-radius: 20px;
25+
background-color: rgba(255, 255, 255, 0.45);
26+
box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);
27+
28+
backdrop-filter: blur(15px);
29+
30+
a {
31+
color: $darkerblue;
32+
text-decoration: underline;
33+
}
34+
}
1035
}

0 commit comments

Comments
 (0)