Skip to content

Commit bb3eff2

Browse files
committed
update ads
1 parent 57a29ae commit bb3eff2

5 files changed

Lines changed: 94 additions & 43 deletions

File tree

_includes/layouts/aside.njk

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<aside>
2+
<div id="custom-wall">
3+
{% set r = range(0, 2) | random %}
4+
{%- if r == 0 %}
5+
<div class="vuejs">
6+
<img src="/img/vuejs.svg" alt="Vue.js Logo">
7+
<p>The Official Certification of competence for the <span>Vue.js framework.</span></p>
8+
<div>
9+
<img height="90" width="90" src="/img/evan.webp" alt="Even You">
10+
<p><small>In partnership with:</small><br><strong>Evan You</strong><br>Creator of Vue.js</p>
11+
</div>
12+
<a href="https://certificates.dev/vuejs?utm_source=CSSTIP&utm_medium=website&utm_campaign=affiliate&friend=CSSTIP">Get Vue.js Certified</a>
13+
</div>
14+
{%- else %}
15+
<div class="nuxt">
16+
<img src="/img/nuxt.svg" alt="Nuxt Logo">
17+
<p>The Official Certification of competence for the <span>Nuxt framework.</span></p>
18+
<div>
19+
<img height="90" width="90" src="/img/chopin.webp" alt="Sébastien Chopin">
20+
<p><small>In partnership with:</small><br><strong>Sébastien Chopin</strong><br>Creator of Nuxt</p>
21+
</div>
22+
<a href="https://certificates.dev/nuxt?utm_source=CSSTIP&utm_medium=website&utm_campaign=affiliate&friend=CSSTIP">Get Nuxt Certified</a>
23+
</div>
24+
{%- endif %}
25+
26+
<!--<div class="sponso">
27+
<a href="/advertise/"><small>Place your ad here</small></a>
28+
<p>Reach a wide audience of web developers with a personalized and attractive ad.</p>
29+
<p>Don't miss the opportunity to promote your product starting from <strong>100$/month</strong>.</p>
30+
<a href="/advertise/">Advertise with CSS Tip</a>
31+
</div>-->
32+
</div>
33+
<div style="height:350px;overflow: clip;"><script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CW7D653J&placement=css-tipcom&format=cover" id="_carbonads_js"></script></div>
34+
<a href="https://css-loaders.com/" target="_blank">
35+
<img src="/img/css-loader.jpg" alt="CSS Loaders" >
36+
</a>
37+
<a href="https://css-pattern.com/" target="_blank">
38+
<img src="/img/css-pattern.jpg" alt="CSS Patterns" >
39+
</a>
40+
<a href="https://css-shape.com/" target="_blank">
41+
<img src="/img/css-shape.jpg" alt="CSS Shape" >
42+
</a>
43+
<a href="https://ko-fi.com/temani" target="_blank">
44+
<img src="/img/kofi.png" alt="Buy Me a coffe" >
45+
</a>
46+
</aside>

_includes/layouts/base.njk

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -66,38 +66,7 @@
6666
<main id="skip">
6767
{{ content | safe }}
6868
</main>
69-
<aside>
70-
<div id="custom-wall">
71-
<div class="vuejs">
72-
<img src="/img/vuejs.svg" alt="Vue.js Logo">
73-
<p>The Official Certification of competence for the <span>Vue.js framework.</span></p>
74-
<div>
75-
<img height="90" width="90" src="/img/evan.webp" alt="Even You">
76-
<p><small>In partnership with:</small><br><strong>Evan You</strong><br>Creator of Vue.js</p>
77-
</div>
78-
<a href="https://certificates.dev/vuejs?utm_source=CSSTIP&utm_medium=website&utm_campaign=affiliate&friend=CSSTIP">Get Vue.js Certified</a>
79-
</div>
80-
<!--<div class="sponso">
81-
<a href="/advertise/"><small>Place your ad here</small></a>
82-
<p>Reach a wide audience of web developers with a personalized and attractive ad.</p>
83-
<p>Don't miss the opportunity to promote your product starting from <strong>100$/month</strong>.</p>
84-
<a href="/advertise/">Advertise with CSS Tip</a>
85-
</div>-->
86-
</div>
87-
<div style="height:350px;overflow: clip;"><script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CW7D653J&placement=css-tipcom&format=cover" id="_carbonads_js"></script></div>
88-
<a href="https://css-loaders.com/" target="_blank">
89-
<img src="/img/css-loader.jpg" alt="CSS Loaders" >
90-
</a>
91-
<a href="https://css-pattern.com/" target="_blank">
92-
<img src="/img/css-pattern.jpg" alt="CSS Patterns" >
93-
</a>
94-
<a href="https://css-shape.com/" target="_blank">
95-
<img src="/img/css-shape.jpg" alt="CSS Shape" >
96-
</a>
97-
<a href="https://ko-fi.com/temani" target="_blank">
98-
<img src="/img/kofi.png" alt="Buy Me a coffe" >
99-
</a>
100-
</aside>
69+
{% include "layouts/aside.njk" %}
10170
<footer>
10271
<p>Created by <a href="/about/" target="_blank">Temani Afif</a> | <a href="https://css-generators.com/" target="_blank">CSS Generators</a> | <a href="https://css-loaders.com/" target="_blank">CSS Loaders</a> | <a href="https://css-shape.com/" target="_blank">CSS Shape</a> | <a href="https://css-pattern.com/" target="_blank">CSS Pattern</a></p>
10372
</footer>

public/css/index.css

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ time span {
510510

511511
/* affiliate */
512512

513-
/* vuejs */
514-
.vuejs {
513+
/* vuejs & nusxt */
514+
.vuejs,.nuxt {
515515
padding: 1em;
516516
border-radius: .5em;
517517
background: radial-gradient(circle at right 25px top 120px,#42b883cf,#0000 22%) #2d3030;
@@ -520,33 +520,37 @@ time span {
520520
display: grid;
521521
gap: 12px;
522522
}
523-
.vuejs > img {
523+
:is(.vuejs,.nuxt) > img {
524524
position: absolute;
525525
right: -19px;
526526
top: 80px;
527527
height: 90px;
528528
transition: .3s;
529529
cursor: pointer;
530530
}
531-
.vuejs:hover > img {
531+
.nuxt > img {
532+
top: 50px;
533+
height: 100px;
534+
}
535+
:is(.vuejs,.nuxt):hover > img {
532536
scale: 1.1;
533537
rotate: 5deg;
534538
}
535-
.vuejs > p {
539+
:is(.vuejs,.nuxt) > p {
536540
margin: 0;
537541
font-size: 20px;
538542
font-weight: 600;
539543
}
540-
.vuejs > div {
544+
:is(.vuejs,.nuxt) > div {
541545
display: grid;
542546
grid-template-columns: 90px 1fr;
543547
gap: 10px;
544548
}
545-
.vuejs > div p {
549+
:is(.vuejs,.nuxt) > div p {
546550
margin: 0;
547551
line-height: 1.3;
548552
}
549-
.vuejs > a {
553+
:is(.vuejs,.nuxt) > a {
550554
display: block;
551555
text-align: center;
552556
background: #42b883;
@@ -557,13 +561,16 @@ time span {
557561
font-weight: 600;
558562
font-size: 20px;
559563
}
564+
:is(.vuejs,.nuxt) > p small {
565+
font-size: .75em;
566+
}
567+
560568
.vuejs > p span {
561569
color: #42b883;
562570
}
563-
.vuejs > p small {
564-
font-size: .75em;
571+
.nuxt > p span {
572+
color: #00dc82;
565573
}
566-
567574
/*html {
568575
view-transition-name: main;
569576
background-color: var(--c1);

public/img/chopin.webp

1.84 KB
Loading

public/img/nuxt.svg

Lines changed: 29 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)