1414 href ="https://cdn.jsdelivr.net/npm/prismjs@v1/themes/prism.css "
1515 rel ="stylesheet "
1616 />
17+
18+ < link rel ="stylesheet " href ="css/index.css " />
1719 </ head >
1820 < body >
1921 < header >
2527 </ nav >
2628 </ header >
2729
28- < style >
29- body {
30- display : flex;
31- flex-direction : column;
32- min-height : 100vh ;
33- }
34-
35- main {
36- flex : 1 ;
37- }
38-
39- ul {
40- list-style-type : none;
41- margin-left : 0 ;
42- padding-left : 0 ;
43- }
44-
45- ul li {
46- border-radius : 8px ;
47- padding : 32px ;
48- border : 1px solid rgba (0 , 0 , 0 , 0.1 );
49- margin-bottom : 16px ;
50- display : flex;
51- flex-direction : column;
52- }
53-
54- .date {
55- font-weight : bold;
56- font-size : 0.8rem ;
57- color : # 222 ;
58- margin : 0 ;
59- }
60-
61- .button-link-wrapper {
62- display : flex;
63- justify-content : flex-end;
64- margin-top : 16px ;
65- }
66-
67- .button-link {
68- display : block;
69- padding : 8px 16px ;
70- border-radius : 100px ;
71- background-color : # 000 ;
72- color : # fff ;
73- text-decoration : none;
74- cursor : pointer;
75- }
76-
77- .read-indicator {
78- content : "" ;
79- }
80- </ style >
81-
8230 < main >
8331 < h1 > The Chief Pig Makeup Artist</ h1 >
8432
@@ -103,68 +51,83 @@ <h1>The Chief Pig Makeup Artist</h1>
10351 < h2 > Posts</ h2 >
10452 < ul >
10553 < li >
106- < h3 > IIFE as a way to avoid mutation </ h3 >
107- < p class =" date " > 2024-12-29</ p >
108- < p >
109- A trick if you want to have pure conditional declaration of
110- variables
111- </ p >
112- < div class =" button-link-wrapper " >
113- < a href =" declare-with-iife.html " class =" button-link "
114- > Read this post </ a
115- >
116- </ div >
54+ < fieldset >
55+ < legend > 2024-12-29</ legend >
56+
57+ < h3 > IIFE as a way to avoid mutation </ h3 >
58+ < p >
59+ A trick if you want to have pure conditional declaration of
60+ variables
61+ </ p >
62+
63+ < a href =" declare-with-iife.html " class =" button-link " > Read post </ a >
64+ </ fieldset >
11765 </ li >
66+
11867 < li >
119- < h3 > Nullish coalescing operator</ h3 >
120- < p class ="date "> 2024-12-12</ p >
121- < p > Use < code > ??</ code > over < code > ||</ code > </ p >
122- < div class ="button-link-wrapper ">
68+ < fieldset >
69+ < legend > 2024-12-12</ legend >
70+
71+ < h3 > Nullish coalescing operator</ h3 >
72+ < p > Use < code > ??</ code > over < code > ||</ code > </ p >
73+
12374 < a href ="nullish-coalescing-operator.html " class ="button-link "
124- > Read this post</ a
75+ > Read post</ a
12576 >
126- </ div >
77+ </ fieldset >
12778 </ li >
79+
12880 < li >
129- < h3 > Why falsiness is a bad idea</ h3 >
130- < p class ="date "> 2024-10-25</ p >
131- < p > Why this is a bad idea</ p >
132- < pre > < code class ="javascript language-javascript "> if (myData) doSomething()
81+ < fieldset >
82+ < legend > 2024-10-25</ legend >
83+
84+ < h3 > Why falsiness is a bad idea</ h3 >
85+ < p > Why this is a bad idea</ p >
86+ < pre > < code class ="javascript language-javascript "> if (myData) doSomething()
13387</ code > </ pre >
134- < div class =" button-link-wrapper " >
88+
13589 < a href ="falsy-and-is-defined.html " class ="button-link "
136- > Read this post</ a
90+ > Read post</ a
13791 >
138- </ div >
92+ </ fieldset >
13993 </ li >
94+
14095 < li >
141- < h3 > Javascript Emptiness</ h3 >
142- < p class ="date "> 2024-10-23</ p >
143- < pre > < code class ="javascript language-javascript "> [].isEmpty() // true
96+ < fieldset >
97+ < legend > 2024-10-23</ legend >
98+
99+ < h3 > Javascript Emptiness</ h3 >
100+ < pre > < code class ="javascript language-javascript "> [].isEmpty() // true
144101</ code > </ pre >
145- < div class =" button-link-wrapper " >
146- < a href ="is-empty.html " class ="button-link "> Read this post</ a >
147- </ div >
102+
103+ < a href ="is-empty.html " class ="button-link "> Read post</ a >
104+ </ fieldset >
148105 </ li >
106+
149107 < li >
150- < h3 > General Reducer Action Switch</ h3 >
151- < p class ="date "> 2024-10-19</ p >
152- < pre > < code class ="javascript language-javascript "> dispatch({ $set: { count: 1 } })
108+ < fieldset >
109+ < legend > 2024-10-19</ legend >
110+
111+ < h3 > General Reducer Action Switch</ h3 >
112+ < pre > < code class ="javascript language-javascript "> dispatch({ $set: { count: 1 } })
153113</ code > </ pre >
154- < div class =" button-link-wrapper " >
114+
155115 < a href ="general-reducer-action-switch.html " class ="button-link "
156- > Read this post</ a
116+ > Read post</ a
157117 >
158- </ div >
118+ </ fieldset >
159119 </ li >
120+
160121 < li >
161- < h3 > React reducer idea</ h3 >
162- < p class ="date "> 2024-10-19</ p >
163- < pre > < code class ="javascript language-javascript "> dispatch(action1, action2, action3, ...)
122+ < fieldset >
123+ < legend > 2024-10-19</ legend >
124+
125+ < h3 > React reducer idea</ h3 >
126+ < pre > < code class ="javascript language-javascript "> dispatch(action1, action2, action3, ...)
164127</ code > </ pre >
165- < div class =" button-link-wrapper " >
166- < a href ="reducer.html " class ="button-link "> Read this post</ a >
167- </ div >
128+
129+ < a href ="reducer.html " class ="button-link "> Read post</ a >
130+ </ fieldset >
168131 </ li >
169132 </ ul >
170133 </ main >
0 commit comments