Skip to content

Commit 71e16c6

Browse files
committed
Improved spacing between google ads
1 parent fc92712 commit 71e16c6

File tree

6 files changed

+91
-56
lines changed

6 files changed

+91
-56
lines changed

web/landing/assets/styles/app.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ html {
1616
inset: unset;
1717
}
1818

19+
.google-ad {
20+
@apply mb-5
21+
}
22+
1923
#documentation-examples ul {
2024
@apply list-disc pl-6;
2125
}

web/landing/templates/blog/posts/2024-04-04/building-custom-extractor-google-analytics/post.html.twig

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
This should give us the following schema:
2929
</p>
3030

31-
<!-- Google Ads -->
31+
<section class="google-ad">
3232
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
3333
<ins class="adsbygoogle"
3434
style="display:block; text-align:center;"
@@ -41,7 +41,7 @@
4141
<script>
4242
(adsbygoogle = window.adsbygoogle || []).push({});
4343
</script>
44-
<!-- Google Ads -->
44+
</section>
4545

4646
{% apply spaceless %}
4747
<pre>
@@ -81,20 +81,20 @@
8181
We can use it to access things like <code>EntryFactory</code> or <code>Config</code> however we are not going to use it in this example.
8282
</p>
8383

84-
<!-- Google Ads -->
85-
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
86-
<ins class="adsbygoogle"
87-
style="display:block; text-align:center;"
88-
data-ad-layout="in-article"
89-
data-ad-format="fluid"
90-
data-ad-client="ca-pub-2364202911639369"
91-
data-ad-slot="7201592389">
92-
93-
</ins>
94-
<script>
95-
(adsbygoogle = window.adsbygoogle || []).push({});
96-
</script>
97-
<!-- Google Ads -->
84+
<section class="google-ad">
85+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
86+
<ins class="adsbygoogle"
87+
style="display:block; text-align:center;"
88+
data-ad-layout="in-article"
89+
data-ad-format="fluid"
90+
data-ad-client="ca-pub-2364202911639369"
91+
data-ad-slot="7201592389">
92+
93+
</ins>
94+
<script>
95+
(adsbygoogle = window.adsbygoogle || []).push({});
96+
</script>
97+
</section>
9898

9999
<p>
100100
Let's start by fetching the list of Account Summaries from Google Analytics API, iterating over the list and yield each Account Summary.

web/landing/templates/blog/posts/2024-08-08/scalar-functions/post.html.twig

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
It's worth noticing that the execution context of scalar functions is the entire row, even though the operation usually takes place on a single cell.
2424
This relationship allows using values from other cells as function arguments, for example.
2525
</p>
26-
<!-- Google Ads -->
27-
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
28-
<ins class="adsbygoogle"
29-
style="display:block; text-align:center;"
30-
data-ad-layout="in-article"
31-
data-ad-format="fluid"
32-
data-ad-client="ca-pub-2364202911639369"
33-
data-ad-slot="7201592389">
26+
<section class="google-ad">
27+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
28+
<ins class="adsbygoogle"
29+
style="display:block; text-align:center;"
30+
data-ad-layout="in-article"
31+
data-ad-format="fluid"
32+
data-ad-client="ca-pub-2364202911639369"
33+
data-ad-slot="7201592389">
3434

35-
</ins>
36-
<script>
37-
(adsbygoogle = window.adsbygoogle || []).push({});
38-
</script>
39-
<!-- Google Ads -->
35+
</ins>
36+
<script>
37+
(adsbygoogle = window.adsbygoogle || []).push({});
38+
</script>
39+
</section>
4040
<p>
4141
Each scalar function implements a very simple interface.
4242
</p>
@@ -56,20 +56,20 @@
5656
<p>
5757
The <code>ref(string $entry) : EntryReference</code> function returns an instance of the <code>EntryReference</code> object, which implements the <code>ScalarFunction</code> interface. This implementation involves returning the value from the cell that the reference points to.
5858
</p>
59-
<!-- Google Ads -->
60-
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
61-
<ins class="adsbygoogle"
62-
style="display:block; text-align:center;"
63-
data-ad-layout="in-article"
64-
data-ad-format="fluid"
65-
data-ad-client="ca-pub-2364202911639369"
66-
data-ad-slot="7201592389">
59+
<section class="google-ad">
60+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
61+
<ins class="adsbygoogle"
62+
style="display:block; text-align:center;"
63+
data-ad-layout="in-article"
64+
data-ad-format="fluid"
65+
data-ad-client="ca-pub-2364202911639369"
66+
data-ad-slot="7201592389">
6767

68-
</ins>
69-
<script>
70-
(adsbygoogle = window.adsbygoogle || []).push({});
71-
</script>
72-
<!-- Google Ads -->
68+
</ins>
69+
<script>
70+
(adsbygoogle = window.adsbygoogle || []).push({});
71+
</script>
72+
</section>
7373
<p>
7474
It's worth mentioning another very frequently used scalar function, <code>lit(mixed $value) : Literal</code>. The <code>lit</code> function has a very similar operation to <code>ref</code>, with the difference that instead of extracting a value from a cell, it returns the value passed as an argument.
7575
</p>

web/landing/templates/documentation/dsl.html.twig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,22 @@
6161
Most of those functions are initializing a new instance of a class under the hood since Flow is fully object-oriented.
6262
Please look at the <a href="{{ path('example', {topic: "data_frame", example: "data_frame", _fragment: "example"}) }}">examples</a> below to get a better understanding of how to use the DSL functions.
6363
</p>
64+
65+
<section class="google-ad">
66+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
67+
<ins class="adsbygoogle"
68+
style="display:block; text-align:center;"
69+
data-ad-layout="in-article"
70+
data-ad-format="fluid"
71+
data-ad-client="ca-pub-2364202911639369"
72+
data-ad-slot="7201592389">
73+
74+
</ins>
75+
<script>
76+
(adsbygoogle = window.adsbygoogle || []).push({});
77+
</script>
78+
</section>
79+
6480
{% for type in types %}
6581
{% if definitions.onlyType(type).count %}
6682
<h2 id="type-{{ type.name|lower }}" class="font-bold text-2xl mb-2" data-dsl-type="{{ type.value }}">

web/landing/templates/documentation/example.html.twig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@
3333
</article>
3434
{% endif %}
3535

36+
<section class="google-ad">
37+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
38+
<ins class="adsbygoogle"
39+
style="display:block; text-align:center;"
40+
data-ad-layout="in-article"
41+
data-ad-format="fluid"
42+
data-ad-client="ca-pub-2364202911639369"
43+
data-ad-slot="7201592389">
44+
45+
</ins>
46+
<script>
47+
(adsbygoogle = window.adsbygoogle || []).push({});
48+
</script>
49+
</section>
50+
3651
{% apply spaceless %}
3752
<h2 class="text-xl mt-5 mb-5">Code</h2>
3853
<div id="code" class="relative">

web/landing/templates/documentation/page.html.twig

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@
1919
</div>
2020
<div class="order-3 lg:order-1 lg:col-span-4 p-2">
2121
<hr class="lg:hidden"/>
22-
<!-- Google Ads -->
23-
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
24-
<ins class="adsbygoogle"
25-
style="display:block; text-align:center;"
26-
data-ad-layout="in-article"
27-
data-ad-format="fluid"
28-
data-ad-client="ca-pub-2364202911639369"
29-
data-ad-slot="7201592389">
30-
31-
</ins>
32-
<script>
33-
(adsbygoogle = window.adsbygoogle || []).push({});
34-
</script>
35-
<!-- Google Ads -->
22+
<section class="google-ad">
23+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
24+
<ins class="adsbygoogle"
25+
style="display:block; text-align:center;"
26+
data-ad-layout="in-article"
27+
data-ad-format="fluid"
28+
data-ad-client="ca-pub-2364202911639369"
29+
data-ad-slot="7201592389">
30+
31+
</ins>
32+
<script>
33+
(adsbygoogle = window.adsbygoogle || []).push({});
34+
</script>
35+
</section>
3636

3737
{{ page.content|markdown_to_html }}
3838

0 commit comments

Comments
 (0)