<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Javascript &#8211; flurin&#039;s lernjournal</title>
	<atom:link href="https://flurin-lernjournal.hosttech.ch/category/lernjournal/hosttech/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://flurin-lernjournal.hosttech.ch</link>
	<description></description>
	<lastBuildDate>Mon, 12 Oct 2026 10:21:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/08/Nature-11-150x150.jpg</url>
	<title>Javascript &#8211; flurin&#039;s lernjournal</title>
	<link>https://flurin-lernjournal.hosttech.ch</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>New KMU Page with Statamic</title>
		<link>https://flurin-lernjournal.hosttech.ch/new-kmu-page-with-statamic/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Tue, 23 Jun 2026 14:04:47 +0000</pubDate>
				<category><![CDATA[Befehle]]></category>
		<category><![CDATA[Erklärungen]]></category>
		<category><![CDATA[hosttech]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Lernjournal]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://flurin-lernjournal.hosttech.ch/?p=1566</guid>

					<description><![CDATA[The goal is to recreate the new Colocation Homepage in / with Statamic exactly as it is given in Zeplin:&#160;https://zpl.io/ez1Gkyl Here it was also most of the same with the order and the things i did. Here same as before i started with the Statamic part first, where i firstly figured out what i need [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The goal is to recreate the new Colocation Homepage in / with Statamic exactly as it is given in Zeplin:&nbsp;<a href="https://zpl.io/ez1Gkyl" target="_blank" rel="noreferrer noopener">https://zpl.io/ez1Gkyl</a></p>



<p class="wp-block-paragraph">Here it was also most of the same with the order and the things i did. Here same as before i started with the Statamic part first, where i firstly figured out what i need which was the offers (webhosting, which already exist), the vserver offers and the managed hosting offers.</p>



<p class="wp-block-paragraph">For the other offers i created a new collection for each of them (vServer Offers &amp; Managed Hosting Offers) same as i did with the Webhosting offers (which are just called Offers as at that point in time i didn&#8217;t know that different types of offers will come to existence). For the blueprint i also mostly used the same one as i did for the Webhosting offers with the exception of the Quote (the small text under the price) and the discount part. The reason why i decided to not include the discount feature is mainly to the fact that there wasn&#8217;t an example given in the Zeplin template and that i have no confirmation on what or how exactly it should look like. On top of that it would also be reasonably easy to add even at a later date (hopefully at least) since there is a plausible chance that your able to use the existing discount feature of the webhosting offers. <br>After i was done with the different Offers i created the blueprint for the KMU page inside the Google Ads collection. Then the final steps are to fill in the content for the offers and after the KMU page. For the KMU page at least during the filling of the content of the page i notice bits and pieces that could be optimised or at times completely missing.</p>



<p class="wp-block-paragraph">One thing to note which is special about this page is that there are 3 different offer types you can choose from so i decided to make a selector so you can choose which offers you want which we will be able to utilize in the code later.</p>



<p class="wp-block-paragraph">After that it was time to create the necessary folders &amp; files again. Same as before a KMU folder in the google ads folder and in the sections folder also. And inside there the different sets i created in Statamic. Now asides from 2 things there aren&#8217;t much of any noteworthy elements or parts that i did since a lot of them are just repetition or only some more minor adjustments &amp; tweaks. The 2 parts or well more eloquently put they are 2 sub parts of the same section which is the offers. So the first part is the display of the different offers. Now in Zeplin they are displayed one after another but since it has a small navigation or selector above its rather obvious that it&#8217;s intended that it only displays the selected type of offers (Webhosting, vServer &amp; Managed Hosting). </p>



<p class="wp-block-paragraph">This first part is for checking which type is selected and displaying the corresponding offers so only one of them and the correct one is shown.<br>It contains three tab buttons: Webhosting, vServer, and Managed Hosting. Each button has a data-kmu-tab value, for each corresponding offers. Now parts of the code shown bellow are used for the second part which is for the background but more on that later. This is more so a notice so one doesn&#8217;t get confused.</p>



<p class="wp-block-paragraph">The script first finds every offer section using:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="document.querySelectorAll('&#91;data-kmu-offers&#93;')" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9">document</span><span style="color: #ECEFF4">.</span><span style="color: #88C0D0">querySelectorAll</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">&#91;data-kmu-offers&#93;</span><span style="color: #ECEFF4">&#39;</span><span style="color: #D8DEE9FF">)</span></span></code></pre></div>



<p class="wp-block-paragraph">This makes the code reusable, because it would still work if there were multiple KMU offer sections on the page.</p>



<p class="wp-block-paragraph">Inside each section, it collects:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="const tabs = section.querySelectorAll('&#91;data-kmu-tab&#93;');
const panels = section.querySelectorAll('&#91;data-kmu-panel&#93;');" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">const</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">tabs</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">=</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">section</span><span style="color: #ECEFF4">.</span><span style="color: #88C0D0">querySelectorAll</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">&#91;data-kmu-tab&#93;</span><span style="color: #ECEFF4">&#39;</span><span style="color: #D8DEE9FF">)</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #81A1C1">const</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">panels</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">=</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">section</span><span style="color: #ECEFF4">.</span><span style="color: #88C0D0">querySelectorAll</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">&#91;data-kmu-panel&#93;</span><span style="color: #ECEFF4">&#39;</span><span style="color: #D8DEE9FF">)</span><span style="color: #81A1C1">;</span></span></code></pre></div>



<p class="wp-block-paragraph">The tabs are the clickable buttons. The panels are the content areas for each offer variant. Each panel has a matching value like:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="data-kmu-panel=&quot;webhosting&quot;
data-kmu-panel=&quot;vserver&quot;
data-kmu-panel=&quot;mh&quot;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9">data</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">kmu</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">panel</span><span style="color: #81A1C1">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">webhosting</span><span style="color: #ECEFF4">&quot;</span></span>
<span class="line"><span style="color: #D8DEE9">data</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">kmu</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">panel</span><span style="color: #81A1C1">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">vserver</span><span style="color: #ECEFF4">&quot;</span></span>
<span class="line"><span style="color: #D8DEE9">data</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">kmu</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">panel</span><span style="color: #81A1C1">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">mh</span><span style="color: #ECEFF4">&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">The script also finds the main page wrapper:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="const pageShell = section.closest('main')?.querySelector('&#91;data-kmu-page-shell&#93;');" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">const</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">pageShell</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">=</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">section</span><span style="color: #ECEFF4">.</span><span style="color: #88C0D0">closest</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">main</span><span style="color: #ECEFF4">&#39;</span><span style="color: #D8DEE9FF">)</span><span style="color: #ECEFF4">?.</span><span style="color: #88C0D0">querySelector</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">&#91;data-kmu-page-shell&#93;</span><span style="color: #ECEFF4">&#39;</span><span style="color: #D8DEE9FF">)</span><span style="color: #81A1C1">;</span></span></code></pre></div>



<p class="wp-block-paragraph">This wrapper is important because it controls the large dark background behind the offers. When a user switches tabs, the page needs to resize the dark background because each offer variant has a different height.</p>



<p class="wp-block-paragraph">The main function is:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="const selectVariant = (variant) =&gt; {
    pageShell?.setAttribute('data-kmu-offer-background', variant);

    tabs.forEach((button) =&gt; {
        button.dataset.active = button.dataset.kmuTab === variant ? 'true' : 'false';
    });

    panels.forEach((panel) =&gt; {
        panel.classList.toggle('hidden', panel.dataset.kmuPanel !== variant);
    });
};" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">const</span><span style="color: #D8DEE9FF"> </span><span style="color: #88C0D0">selectVariant</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">=</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">(</span><span style="color: #D8DEE9">variant</span><span style="color: #ECEFF4">)</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">=&gt;</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #D8DEE9">pageShell</span><span style="color: #ECEFF4">?.</span><span style="color: #88C0D0">setAttribute</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">data-kmu-offer-background</span><span style="color: #ECEFF4">&#39;</span><span style="color: #ECEFF4">,</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">variant</span><span style="color: #D8DEE9FF">)</span><span style="color: #81A1C1">;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #D8DEE9">tabs</span><span style="color: #ECEFF4">.</span><span style="color: #88C0D0">forEach</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">(</span><span style="color: #D8DEE9">button</span><span style="color: #ECEFF4">)</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">=&gt;</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">        </span><span style="color: #D8DEE9">button</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">dataset</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">active</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">=</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">button</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">dataset</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">kmuTab</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">===</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">variant</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">?</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">true</span><span style="color: #ECEFF4">&#39;</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">false</span><span style="color: #ECEFF4">&#39;</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #ECEFF4">}</span><span style="color: #D8DEE9FF">)</span><span style="color: #81A1C1">;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #D8DEE9">panels</span><span style="color: #ECEFF4">.</span><span style="color: #88C0D0">forEach</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">(</span><span style="color: #D8DEE9">panel</span><span style="color: #ECEFF4">)</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">=&gt;</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">        </span><span style="color: #D8DEE9">panel</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">classList</span><span style="color: #ECEFF4">.</span><span style="color: #88C0D0">toggle</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">hidden</span><span style="color: #ECEFF4">&#39;</span><span style="color: #ECEFF4">,</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">panel</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">dataset</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">kmuPanel</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">!==</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">variant</span><span style="color: #D8DEE9FF">)</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #ECEFF4">}</span><span style="color: #D8DEE9FF">)</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span><span style="color: #81A1C1">;</span></span></code></pre></div>



<p class="wp-block-paragraph">When a tab is clicked, this function receives the selected variant, such as vserver. It then updates the page shell attribute:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="data-kmu-offer-background=&quot;vserver&quot;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9">data</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">kmu</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">offer</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">background</span><span style="color: #81A1C1">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">vserver</span><span style="color: #ECEFF4">&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">That attribute is used by the CSS in kmu.antlers.html to change CSS variables like page height, background height, and curve position (more on this later).</p>



<p class="wp-block-paragraph">The script also updates the active tab styling:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="button.dataset.active = button.dataset.kmuTab === variant ? 'true' : 'false';" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9">button</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">dataset</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">active</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">=</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">button</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">dataset</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">kmuTab</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">===</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">variant</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">?</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">true</span><span style="color: #ECEFF4">&#39;</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">false</span><span style="color: #ECEFF4">&#39;</span><span style="color: #81A1C1">;</span></span></code></pre></div>



<p class="wp-block-paragraph">In the HTML, the buttons use Tailwind’s data attribute styling:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="data-&#91;active=true&#93;:bg-white
data-&#91;active=true&#93;:text-&#91;#111118&#93;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9">data</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9FF">&#91;</span><span style="color: #D8DEE9">active</span><span style="color: #81A1C1">=true</span><span style="color: #D8DEE9FF">&#93;:</span><span style="color: #D8DEE9">bg</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">white</span></span>
<span class="line"><span style="color: #D8DEE9">data</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9FF">&#91;</span><span style="color: #D8DEE9">active</span><span style="color: #81A1C1">=true</span><span style="color: #D8DEE9FF">&#93;:</span><span style="color: #D8DEE9">text</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9FF">&#91;#</span><span style="color: #B48EAD">111118</span><span style="color: #D8DEE9FF">&#93;</span></span></code></pre></div>



<p class="wp-block-paragraph">So when data-active=&#8221;true&#8221;, the selected tab gets a white background and dark text.</p>



<p class="wp-block-paragraph">Finally, the script shows the selected panel and hides the others:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="panel.classList.toggle('hidden', panel.dataset.kmuPanel !== variant);" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9">panel</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">classList</span><span style="color: #ECEFF4">.</span><span style="color: #88C0D0">toggle</span><span style="color: #D8DEE9FF">(</span><span style="color: #ECEFF4">&#39;</span><span style="color: #A3BE8C">hidden</span><span style="color: #ECEFF4">&#39;</span><span style="color: #ECEFF4">,</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">panel</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">dataset</span><span style="color: #ECEFF4">.</span><span style="color: #D8DEE9">kmuPanel</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">!==</span><span style="color: #D8DEE9FF"> </span><span style="color: #D8DEE9">variant</span><span style="color: #D8DEE9FF">)</span><span style="color: #81A1C1">;</span></span></code></pre></div>



<p class="wp-block-paragraph">If the panel does not match the selected variant, it receives the hidden class. If it does match, the hidden class is removed.</p>



<p class="wp-block-paragraph">This part is for the background, since to make the curve possible i had to make the background absolute to fix the positions of the 2 different elements. Now after testing the first part if the elements are correctly displayed according to what&#8217;s selected i noticed that the background doesn&#8217;t match the offers as its supposed to especially so on mobile (since they stack and the vserver offers are therefor a lot longer) i decided to try and make that also adjust according to the selected offers and of course also with the @media query from css to make it responsive.<br><br>Now since i already had the javascript which checks which offers are selected i was able to just adjust the code of that a bit and add the necessary css &amp; adjust the html.</p>



<p class="wp-block-paragraph">The CSS in kmu.antlers.html is mainly responsible for controlling the large dark background area behind the KMU landing page content. </p>



<p class="wp-block-paragraph">The page shell starts like this:</p>



<p class="wp-block-paragraph">The important part is:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="data-kmu-page-shell
data-kmu-offer-background=&quot;webhosting&quot;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">data-kmu-page-shell</span></span>
<span class="line"><span style="color: #81A1C1">data-kmu-offer-background</span><span style="color: #D8DEE9FF">=&quot;webhosting&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">This element acts as the main visual container for the top part of the page. By default, it uses the webhosting layout.</p>



<p class="wp-block-paragraph">The CSS defines custom properties:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="--kmu-page-min-height
--kmu-background-height
--kmu-curve-top" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9FF">--kmu-page-min-height</span></span>
<span class="line"><span style="color: #D8DEE9FF">--kmu-background-height</span></span>
<span class="line"><span style="color: #D8DEE9FF">--kmu-curve-top</span></span></code></pre></div>



<p class="wp-block-paragraph">These variables are then used later in the HTML:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">HTML</span><span role="button" tabindex="0" data-code="min-h-&#91;var(--kmu-page-min-height)&#93;
h-&#91;var(--kmu-background-height)&#93;
top-&#91;var(--kmu-curve-top)&#93;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9FF">min-h-&#91;var(--kmu-page-min-height)&#93;</span></span>
<span class="line"><span style="color: #D8DEE9FF">h-&#91;var(--kmu-background-height)&#93;</span></span>
<span class="line"><span style="color: #D8DEE9FF">top-&#91;var(--kmu-curve-top)&#93;</span></span></code></pre></div>



<p class="wp-block-paragraph">So instead of hardcoding the height in many different places, the template defines the values once and reuses them.</p>



<p class="wp-block-paragraph">The reason there are different values for webhosting, vserver, and mh is that each offer tab has a different amount of content. For example, the vserver section is taller than mh, so the dark background needs to stay visible<br>for longer.</p>



<p class="wp-block-paragraph">The JavaScript changes this attribute:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">JavaScript</span><span role="button" tabindex="0" data-code="data-kmu-offer-background=&quot;vserver&quot;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9">data</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">kmu</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">offer</span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9">background</span><span style="color: #81A1C1">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">vserver</span><span style="color: #ECEFF4">&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">Then this CSS selector becomes active:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="&#91;data-kmu-page-shell&#93;&#91;data-kmu-offer-background=&quot;vserver&quot;&#93;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #ECEFF4">&#91;</span><span style="color: #8FBCBB">data-kmu-page-shell</span><span style="color: #ECEFF4">&#93;&#91;</span><span style="color: #8FBCBB">data-kmu-offer-background</span><span style="color: #81A1C1">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">vserver</span><span style="color: #ECEFF4">&quot;</span><span style="color: #ECEFF4">&#93;</span></span></code></pre></div>



<p class="wp-block-paragraph">That updates the CSS variables, which automatically changes the page height, background height, and curve position.</p>



<p class="wp-block-paragraph">There are also media queries:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="@media (min-width: 768px) { … }
@media (min-width: 1024px) { … }" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D08770">@media</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">(</span><span style="color: #D8DEE9">min-width</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">768</span><span style="color: #81A1C1">px</span><span style="color: #ECEFF4">)</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> … }</span></span>
<span class="line"><span style="color: #D08770">@media</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">(</span><span style="color: #D8DEE9">min-width</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">1024</span><span style="color: #81A1C1">px</span><span style="color: #ECEFF4">)</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> … }</span></span></code></pre></div>



<p class="wp-block-paragraph">These define different height values for tablet and desktop screen sizes. This is needed because the offer cards change layout responsively. On mobile, cards stack vertically and need more height. On desktop, they sit in columns and need less vertical space.</p>



<p class="wp-block-paragraph">The background itself is built from absolute-positioned elements:<br>The first div creates the main dark rectangular background. The second div creates a large rounded oval shape, which makes the bottom edge look curved instead of straight.</p>



<p class="wp-block-paragraph">The selected_offers.antlers.html file renders the offer tabs and all offer panels. Only the selected panel is visible. The JavaScript listens for tab clicks, updates the active tab, hides inactive panels, and changes the page<br>shell’s data-kmu-offer-background attribute.</p>



<p class="wp-block-paragraph">The kmu.antlers.html file reacts to that attribute with CSS. It changes the page height, dark background height, and curved background position depending on whether the user selected Webhosting, vServer, or Managed Hosting.<br>This keeps the visual background aligned with the currently visible offer content.</p>



<p class="wp-block-paragraph">As mentioned above the rest was just more or less the same as before.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Glossar / Bergriff erklärung</title>
		<link>https://flurin-lernjournal.hosttech.ch/glossar-bergriff-erklarung/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Mon, 02 Dec 2024 13:12:07 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Erklärungen]]></category>
		<category><![CDATA[hosttech]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Lernjournal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wonderland]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WSC]]></category>
		<guid isPermaLink="false">https://flurin-lernjournal.hosttech.ch/?p=478</guid>

					<description><![CDATA[A Anchor Links What are Anchor Links Anchor links (also known as page jumps or named anchors) are links that take users to a specific section of a webpage instead of the top of the page. They are especially useful for navigating long pages or documents. How Do Anchor Links Work? Common Use Cases: Examples: [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-flexible-table-block-table is-style-default"><table class="has-fixed-layout" style="width:100%"><tbody><tr><td><a href="#A" data-type="internal" data-id="#A">A</a></td><td><a href="#B" data-type="internal" data-id="#B">B</a></td><td><a href="#C" data-type="internal" data-id="#C">C</a></td><td><a href="#D" data-type="internal" data-id="#D">D</a></td><td><a href="#E" data-type="internal" data-id="#E">E</a></td><td><a href="#F" data-type="internal" data-id="#F">F</a></td><td><a href="#G" data-type="internal" data-id="#G">G</a></td><td><a href="#H" data-type="internal" data-id="#H">H</a></td><td><a href="#I" data-type="internal" data-id="#I">I</a></td><td><a href="#J" data-type="internal" data-id="#J">J</a></td><td><a href="#K" data-type="internal" data-id="#K">K</a></td><td><a href="#L" data-type="internal" data-id="#L">L</a></td><td><a href="#M" data-type="internal" data-id="#M">M</a></td></tr><tr><td><a href="#N" data-type="internal" data-id="#N">N</a></td><td> <a href="#O" data-type="internal" data-id="#O">O</a></td><td><a href="#P" data-type="internal" data-id="#P">P</a></td><td><a href="#Q" data-type="internal" data-id="#Q">Q</a></td><td><a href="#R" data-type="internal" data-id="#R">R</a></td><td><a href="#S" data-type="internal" data-id="#S">S</a></td><td><a href="#T" data-type="internal" data-id="#T">T</a></td><td><a href="#U" data-type="internal" data-id="#U">U</a></td><td><a href="#V" data-type="internal" data-id="#V">V</a></td><td><a href="#W" data-type="internal" data-id="#W">W</a></td><td><a href="#X" data-type="internal" data-id="#X">X</a></td><td><a href="#Y" data-type="internal" data-id="#Y">Y</a></td><td><a href="#Z" data-type="internal" data-id="#Z">Z</a></td></tr></tbody></table></figure>



<h1 id="A" class="wp-block-heading has-x-large-font-size">A</h1>



<h2 class="wp-block-heading has-large-font-size">Anchor Links</h2>



<h3 class="wp-block-heading has-medium-font-size">What are Anchor Links</h3>



<p class="has-small-font-size wp-block-paragraph">Anchor links (also known as page jumps or named anchors) are links that take users to a specific section of a webpage instead of the top of the page. They are especially useful for navigating long pages or documents.</p>



<h3 class="wp-block-heading has-medium-font-size">How Do Anchor Links Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Anchor Target</strong>: You assign an <code><strong>id</strong></code> attribute to the element on your page that you want to link to. This serves as the destination of the anchor link.</li>



<li class="has-small-font-size"><strong>Anchor Link</strong>: You create a link that includes <code><strong>#</strong></code> followed by the <code><strong>id</strong></code> value. When clicked, it scrolls the page to the target.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Table of Contents</strong>: On long articles or guides, a list of links at the top allows readers to jump to specific sections.</li>



<li class="has-small-font-size"><strong>FAQs</strong>: Each question in a Frequently Asked Questions section can link directly to its answer below.</li>



<li class="has-small-font-size"><strong>Navigation</strong>: For single-page websites, anchor links are used to navigate between sections instead of loading new pages.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Examples:</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Navigating Within the Same Page</strong>:
<ul class="wp-block-list">
<li class="has-small-font-size">A link at the top of a page takes you to a &#8220;Contact Us&#8221; section further down.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Linking Between Pages</strong>:
<ul class="wp-block-list">
<li class="has-small-font-size">A link on one page can direct you to a specific section on another page using the format <code><strong>https://example.com/page.html#target</strong></code>.</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a" target="_blank" rel="noreferrer noopener">Anchor Links Documentation</a></li>
</ul>



<h2 id="Array" class="wp-block-heading has-large-font-size">Arrays</h2>



<p class="has-small-font-size wp-block-paragraph">Here&#8217;s a link to an explanation about arrays with examples: <a href="/php/#phparray" target="_blank" rel="noreferrer noopener">Array explanation</a></p>



<h1 id="B" class="wp-block-heading has-x-large-font-size">B</h1>



<h1 id="C" class="wp-block-heading has-x-large-font-size">C</h1>



<h2 class="wp-block-heading has-large-font-size">Code Editors</h2>



<h3 class="wp-block-heading has-medium-font-size">What Are Code Editors?</h3>



<p class="has-small-font-size wp-block-paragraph">Code editors are tools designed specifically for writing and editing source code. They are essential for programming as they provide features tailored to coding, such as syntax highlighting, auto-completion, and debugging.</p>



<h3 class="wp-block-heading has-medium-font-size">Types of Code Editors</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Simple Text Editors</strong>:
<ul class="wp-block-list">
<li>Examples: Notepad (Windows), TextEdit (Mac).</li>



<li>These are basic and lightweight but for that lack advanced coding features.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Dedicated Code Editors</strong>:
<ul class="wp-block-list">
<li>Examples: Visual Studio Code, Sublime Text, PHPStorm.</li>



<li>These offer enhanced functionality like language support, plugins, and version control integration.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Integrated Development Environments (IDEs)</strong>:
<ul class="wp-block-list">
<li>Examples: IntelliJ IDEA, Eclipse.</li>



<li>IDEs are more advanced and include tools like debuggers, compilers, and project management features.</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Key Features of Code Editors</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Syntax Highlighting</strong>: Makes code easier to read by coloring different parts of the syntax (code).</li>



<li class="has-small-font-size"><strong>Code Autocompletion</strong>: Suggests code as you type, reducing errors and speeding up development.</li>



<li class="has-small-font-size"><strong>Customization</strong>: Allows users to install extensions, themes, or plugins to tailor the editor to their needs / wants.</li>



<li class="has-small-font-size"><strong>Version Control</strong>: Many editors integrate with Git for source code management.</li>



<li class="has-small-font-size"><strong>Cross-platform Compatibility</strong>: Many editors work across Windows, macOS, and Linux.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Popular Code Editors:</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>PHPStorm</strong>:
<ul class="wp-block-list">
<li>A specialized editor for PHP development, offering deep integration with frameworks, databases, and debugging tools.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>IntelliJ IDEA</strong>:
<ul class="wp-block-list">
<li>Excellent for Java and Kotlin, with robust project management and refactoring capabilities.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Visual Studio Code (VS Code)</strong>:
<ul class="wp-block-list">
<li>Free, open-source, with extensive extension support for a wide range of languages and tools.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Sublime Text</strong>:
<ul class="wp-block-list">
<li>Lightweight, fast, and has a powerful package system, ideal for general-purpose editing.</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://www.jetbrains.com/phpstorm/resources" target="_blank" rel="noreferrer noopener">PHPStorm Documentation</a></li>



<li class="has-small-font-size">  <a href="https://www.jetbrains.com/help/idea/getting-started.html" target="_blank" rel="noreferrer noopener">IntelliJ IDEA Documentation</a></li>



<li class="has-small-font-size"><a href="https://code.visualstudio.com/docs" target="_blank" rel="noreferrer noopener">VS Code Documentation</a></li>



<li class="has-small-font-size"><a href="https://www.sublimetext.com/docs/" target="_blank" rel="noreferrer noopener">Sublime Text Documentation</a></li>
</ul>



<h2 class="wp-block-heading has-large-font-size">controllers </h2>



<h3 class="wp-block-heading has-medium-font-size">What are controllers?</h3>



<p class="has-small-font-size wp-block-paragraph">Controllers, in a general sense, can be thought of as components that manage or coordinate specific functionality. They bring together various systems or subsystems to achieve a focused purpose, exposing the necessary controls and functionality in a streamlined way.</p>



<p class="has-small-font-size wp-block-paragraph">For example, a <strong>Character Controller</strong> might coordinate the movement of a character by bringing together inputs, physics forces, and animations. It doesn’t need to handle every detail itself but instead integrates other specialized components (e.g., input handlers or physics systems) to handle those tasks. The controller serves as the central piece that ties everything together to achieve character movement.</p>



<p class="has-small-font-size wp-block-paragraph">Similarly, a <strong>UI Controller</strong> could manage visual transitions for UI elements, such as fading in and out or animating panels. Each UI panel or canvas might have its own controller to handle its specific behavior, ensuring that the functionality is modular and manageable.</p>



<p class="has-small-font-size wp-block-paragraph">In essence, controllers act as the &#8220;brain&#8221; for a particular aspect of a system, orchestrating actions while relying on other components to handle the details.</p>



<p class="has-small-font-size wp-block-paragraph">Controllers are like transporters, they should get a request, ask the core application code to do the logic, and return a response. They shouldn’t have domain logic. Code them thinking in the end result.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/actions?view=aspnetcore-7.0" target="_blank" rel="noreferrer noopener">Microsoft controllers Documentation</a></li>



<li class="has-small-font-size"><a href="https://laravel.com/docs/10.x/controllers" target="_blank" rel="noreferrer noopener">Laravel controller Documentation</a></li>
</ul>



<h2 class="wp-block-heading has-large-font-size"><strong>Cron Job</strong></h2>



<h3 class="wp-block-heading has-medium-font-size">What is a Cron Job?</h3>



<p class="has-small-font-size wp-block-paragraph">Cron jobs are scheduled tasks that run automatically at specified times or intervals on Unix-like operating systems. They allow us to automate repetitive tasks like backups, email reports, system maintenance, and more. Instead of having to manually run these tasks, cron jobs execute them according to a predetermined schedule.</p>



<h3 class="wp-block-heading has-medium-font-size">How Do Cron Jobs Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Cron Daemon</strong>: Cron jobs are managed by a service called the <strong>cron daemon</strong>. This is a background process that checks a list of scheduled tasks and executes them when their time comes.</li>



<li class="has-small-font-size"><strong>Cron Syntax</strong>: To create a cron job, you write an entry in the cron table (<code>crontab</code>). The syntax typically includes:
<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Minute</strong>: Which minute of the hour (0-59).</li>



<li class="has-small-font-size"><strong>Hour</strong>: Which hour of the day (0-23).</li>



<li class="has-small-font-size"><strong>Day of the Month</strong>: Which day of the month (1-31).</li>



<li class="has-small-font-size"><strong>Month</strong>: Which month of the year (1-12).</li>



<li class="has-small-font-size"><strong>Day of the Week</strong>: Which day of the week (0-7, where both 0 and 7 represent Sunday).</li>



<li class="has-small-font-size"><strong>Command</strong>: The task or command to run at that time.</li>
</ul>
</li>
</ol>



<p class="has-small-font-size wp-block-paragraph">For example:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">Command Prompt</span><span role="button" tabindex="0" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>30 2 * * * /path/to/script.sh</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #B48EAD">30</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">2</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">path</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">to</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">script.sh</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">This Cron Job will run the script <code>"<strong>script.sh"</strong></code> at 2:30 AM every day.</p>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Backups</strong>: Running system or database backups at night when server load is low.</li>



<li class="has-small-font-size"><strong>Email Reports</strong>: Sending periodic reports via email, e.g., a daily sales summary.</li>



<li class="has-small-font-size"><strong>System Maintenance</strong>: Running cleanup scripts that remove temporary files or logs.</li>



<li class="has-small-font-size"><strong>Web Scraping</strong>: Automatically running a web scraping script at regular intervals.</li>



<li></li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size">You can think of a cron job like setting a timer for when to take medicine. If the timer is set to ring at 8:00 AM every day, you don’t have to remember to take it each day — the timer (like the cron daemon) will make sure it happens automatically at the scheduled time. Just as you tell the timer when to go off (the cron schedule), you tell the cron job when to run its task.</li>



<li class="has-small-font-size">Lets suppose you want to back up a directory every night at midnight. You could add a cron job like:</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">Command Prompt</span><span role="button" tabindex="0" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>0 0 * * * cp -r C:/Users/files C:/Users/backup</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #B48EAD">0</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">0</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> cp </span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9FF">r C:</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">Users</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">files C:</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">Users</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">backup</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">This would copy your files from &#8220;C:/Users/files&#8221; to &#8220;C:/Users/backup&#8221; every night at 12:00 AM.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://www.hostinger.com/tutorials/cron-job?utm_campaign=Generic-Tutorials-DSA|NT:Se|LO:DE&amp;utm_medium=ppc&amp;gad_source=1&amp;gclid=EAIaIQobChMIjPTdt6SLigMVJZaDBx0bIh_3EAAYASAAEgIPgPD_BwE" target="_blank" rel="noreferrer noopener">Cron Job Documentation / Explanation</a></li>
</ul>



<h2 id="CSS" class="wp-block-heading has-large-font-size"><strong>CSS</strong></h2>



<h3 class="wp-block-heading has-medium-font-size">What is CSS? </h3>



<p class="has-small-font-size wp-block-paragraph">CSS (Cascading Style Sheets) is a basic tool that is used for designing websites. While HTML takes care of the structure of web pages, CSS takes care of the look and layout. Think of HTML as the skeleton of a page, and CSS as the skin and clothing that gives it its final look. Without CSS, any web page would look like a normal text document with no formatting &#8211; it would be difficult to read and unattractive to look at.</p>



<p class="has-small-font-size wp-block-paragraph">CSS helps to make a website beautiful and consistent and easy to use and understand. For example, you can choose a suitable color combination that is pleasant to look at or give several color combinations to choose from (Light &amp; Dark mode).</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://developer.mozilla.org/en-US/docs/Web/CSS" target="_blank" rel="noreferrer noopener">CSS Documentation</a></li>



<li class="has-small-font-size"><a href="https://www.w3schools.com/cssref/index.php" target="_blank" rel="noreferrer noopener">List of CSS Properties</a></li>
</ul>



<h1 id="D" class="wp-block-heading has-x-large-font-size">D</h1>



<h1 id="E" class="wp-block-heading has-x-large-font-size">E</h1>



<h1 id="F" class="wp-block-heading has-x-large-font-size">F</h1>



<h1 id="G" class="wp-block-heading has-x-large-font-size">G</h1>



<h2 class="wp-block-heading has-large-font-size">Git</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is Git?</h3>



<p class="has-small-font-size wp-block-paragraph">Git is a distributed version control system (VCS) that allows multiple developers to work on a project simultaneously. It tracks changes in files, allows you to collaborate with others, and makes it easy to revert to previous versions of your code. Git is widely used in software development to manage source code.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does Git Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Repositories</strong>: A Git repository is where your project’s files and their version history are stored. There are two types:
<ul class="wp-block-list">
<li><strong>Local Repository</strong>: On your own computer, where you make changes.</li>



<li><strong>Remote Repository</strong>: On a server (e.g., GitHub, GitLab), where collaborators can push and pull changes.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Commits</strong>: When you make changes to a file and want to save that state in the version history, you &#8220;commit&#8221; the changes. A commit is like a snapshot of your code at a specific moment in time.</li>



<li class="has-small-font-size"><strong>Branches</strong>: Git allows you to create different branches to work on features or bug fixes separately from the main project. The <strong>main branch</strong> (often called <code>main</code> or <code>master</code>) is the primary branch where the stable code is usually kept.</li>



<li class="has-small-font-size"><strong>Merging</strong>: When you&#8217;re done with a feature or bug fix on your branch, you merge it back into the main branch so others can use it.</li>



<li class="has-small-font-size"><strong>Pushing and Pulling</strong>:
<ul class="wp-block-list">
<li><strong>Push</strong>: Sending your local changes to a remote repository.</li>



<li><strong>Pull</strong>: Retrieving the latest changes from the remote repository to your local one.</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li><strong>Collaborative Development</strong>: Git allows multiple developers to work on the same project without overwriting each other&#8217;s work.</li>



<li><strong>Version History</strong>: Git keeps track of every change made to the project, allowing you to view past versions or revert changes.</li>



<li class="has-small-font-size"><strong>Branching</strong>: Working on multiple features or bug fixes in parallel without affecting the main project.</li>



<li><strong>Code Backup</strong>: Pushing changes to a remote repository acts as a backup for your code.</li>
</ul>



<p class="has-small-font-size wp-block-paragraph"> You can think of Git like a detailed medical chart that tracks all the changes in a patient’s health over time. Each change in the patient&#8217;s condition (like a new symptom or treatment) is recorded as a <strong>commit</strong>. If something goes wrong, you can look back at the history of that patient and even undo or fix the changes (like going back to a previous healthy state). Branching is like creating separate charts for different areas of treatment, and merging is when those treatments come together into one comprehensive chart.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://git-scm.com/doc" target="_blank" rel="noreferrer noopener">Git Documentation</a></li>
</ul>



<h2 class="wp-block-heading has-large-font-size">GitLab</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is GitLab?</h3>



<p class="has-small-font-size wp-block-paragraph">GitLab is a web-based DevOps platform that provides Git repository management, continuous integration/continuous deployment (CI/CD), and other features to help teams collaborate on software projects. It integrates source code management with issue tracking, monitoring, and deployment pipelines, all in one place. GitLab is often used as an alternative to GitHub for hosting and managing Git repositories.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does GitLab Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Git Repositories</strong>: GitLab allows you to create repositories to store your code, just like Git. Each repository can be public or private, and it can have multiple branches to manage different versions of the code.</li>



<li class="has-small-font-size"><strong>CI/CD Pipelines</strong>: GitLab automates your software development workflow using CI/CD. This means it automatically builds, tests, and deploys your code whenever changes are made (e.g., after a commit or push).
<ul class="wp-block-list">
<li><strong>CI (Continuous Integration)</strong>: Automatically integrates code changes and runs tests to ensure they don’t break the project.</li>



<li><strong>CD (Continuous Deployment)</strong>: Automatically deploys code to production once it has passed all tests.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Merge Requests (MRs)</strong>: In GitLab, <strong>merge requests</strong> are used to propose changes to a project. When you create a new branch and want to merge it back into the main branch, you open a merge request. This allows team members to review your code before it’s merged.</li>



<li class="has-small-font-size"><strong>Issue Tracking</strong>: GitLab includes integrated issue tracking to help manage bugs, feature requests, and other tasks related to a project. Issues can be assigned, prioritized, and linked to specific commits or merge requests.</li>



<li class="has-small-font-size"><strong>GitLab Runners</strong>: GitLab uses runners to execute CI/CD pipelines. These runners can be set up to run on different machines or environments and are used to build and test the code.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Version Control and Collaboration</strong>: Like Git, GitLab allows teams to work on code together while tracking changes and keeping the codebase synchronized.</li>



<li class="has-small-font-size"><strong>Continuous Integration/Continuous Deployment (CI/CD)</strong>: Automating the build, test, and deployment processes to ensure smooth, efficient software delivery.</li>



<li class="has-small-font-size"><strong>Code Review and Merge Requests</strong>: Reviewing code changes and ensuring quality control before merging them into the main project.</li>



<li class="has-small-font-size"><strong>Project Management</strong>: With integrated issue tracking, labels, milestones, and boards, GitLab helps teams plan and track progress.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<ul class="wp-block-list has-small-font-size">
<li>Think of GitLab as a hospital that not only keeps a patient&#8217;s medical records (like Git), but also ensures that all treatments (code changes) are reviewed by doctors (merge requests) and automatically applied (CI/CD pipelines). It tracks the patient&#8217;s progress (issues) and helps manage the overall treatment process from beginning to end. Each department (CI/CD, issue tracking, merge requests) works together to improve the patient&#8217;s (project’s) health (quality).</li>



<li>Suppose you&#8217;re developing a web application and want to automate your build and deployment process. You would:
<ol class="wp-block-list">
<li>Push your code to a GitLab repository.</li>



<li>GitLab automatically triggers a CI pipeline that builds your code and runs tests.</li>



<li>If the tests pass, GitLab deploys the new version of the app to production.</li>
</ol>
</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://docs.gitlab.com/" target="_blank" rel="noreferrer noopener">GitLab Documentation</a></li>
</ul>



<h1 id="H" class="wp-block-heading has-x-large-font-size">H</h1>



<h2 class="wp-block-heading has-large-font-size">Herd</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is Herd?</h3>



<p class="has-small-font-size wp-block-paragraph">Herd is a tool designed to simplify and optimize the local development environment, particularly for PHP developers. It acts as an all-in-one solution that helps manage local PHP versions, web servers, databases, and related services. By providing an easy way to install, configure, and switch between different environments, Herd streamlines the setup process for local development, making it ideal for developers working with PHP-based projects, especially those using frameworks like Laravel.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does Herd Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Installation and Setup</strong>: Herd simplifies the installation process for tools like PHP, MySQL, and web servers (e.g., Nginx) on your machine. With Herd, you don&#8217;t need to worry about manually installing each piece of software or managing different versions for different projects.</li>



<li class="has-small-font-size"><strong>PHP Management</strong>: One of the key features of Herd is the ability to manage multiple versions of PHP. It allows you to easily switch between PHP versions based on the requirements of the project you’re working on.</li>



<li class="has-small-font-size"><strong>Service Management</strong>: Herd provides management for various services like databases (MySQL, PostgreSQL), web servers (Nginx), and tools like Composer. These services are essential for web development and can be controlled via the Herd interface.</li>



<li class="has-small-font-size"><strong>Automated Configuration</strong>: Once installed, Herd automatically configures services like Nginx and PHP for you, so you don’t have to manually adjust configuration files. This ensures that your local development environment is consistent and free from errors.</li>



<li class="has-small-font-size"><strong>Simplified Workflow</strong>: Herd helps streamline the workflow by handling repetitive tasks like setting up and configuring PHP environments, managing domain mappings, and ensuring compatibility between different services.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Uses:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Local PHP Development</strong>: Herd is ideal for managing local environments when working with PHP projects, allowing you to switch between PHP versions easily.</li>



<li class="has-small-font-size"><strong>Web Development Projects</strong>: It integrates with services like MySQL and Nginx, helping developers set up full-fledged local development environments with minimal effort.</li>



<li class="has-small-font-size"><strong>Laravel Development</strong>: Herd is specifically designed to work well with Laravel and other PHP frameworks, simplifying tasks such as dependency management and version control.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Examples:</h3>



<p class="has-small-font-size wp-block-paragraph">Suppose you&#8217;re working on a Laravel project that requires PHP 7.4 for development but your server uses PHP 8.0. With Herd, you can easily switch to PHP 7.4 locally without affecting other PHP-based projects. This ensures compatibility across different development environments.</p>



<h2 class="wp-block-heading has-large-font-size">HTML</h2>



<h3 class="wp-block-heading has-medium-font-size">What is HTML?</h3>



<p class="has-small-font-size wp-block-paragraph">HTML, or <strong>H</strong>yper<strong>t</strong>ext <strong>M</strong>arkup <strong>L</strong>anguage, is the programming language that is basically used to display content on the Internet. It is the foundation of every website and enables text, images, links and other elements to be structured. By using HTML, you can ensure that the content is presented in a well-structured way.</p>



<h3 class="wp-block-heading has-medium-font-size">Basics of the HTML structure</h3>



<p class="has-small-font-size wp-block-paragraph">HTML documents consist of various elements that are represented by “tags”. A typical HTML document begins with the declaration of the HTML version , followed by the tag, which encloses the entire content. There are two main parts within the tags:</p>



<ul class="wp-block-list">
<li class="has-small-font-size">Header (): Contains information / data about the web page (title, fonts and stylesheets).</li>



<li class="has-small-font-size">Body area (): Contains the visible content of the web page (text, images and links).</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Examples:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size">Wikipedia: Wikipedia, for example, also uses almost only HTML for its website</li>



<li class="has-small-font-size">Amazon: Amazon also mainly uses HTML to display its online store.</li>
</ul>



<p class="has-small-font-size wp-block-paragraph">You can imagine or think of HTML to be the Foundation of a House or well any building or the skeleton of the Human body to help you understand what HTML is in the programming World.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank" rel="noreferrer noopener">HTML Documentation</a></li>
</ul>



<h1 id="I" class="wp-block-heading has-x-large-font-size">I</h1>



<h1 id="J" class="wp-block-heading has-x-large-font-size">J</h1>



<h2 class="wp-block-heading has-large-font-size">JavaScript</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is JavaScript?</h3>



<p class="has-small-font-size wp-block-paragraph">JavaScript is a versatile, high-level programming language that enables dynamic and interactive features on websites. It is one of the core technologies of the web development, alongside HTML and CSS. JavaScript is commonly used for front-end web development, but it is also employed for back-end development, mobile app development, and server-side scripting.</p>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Web Development</strong>: JavaScript is the backbone of interactive websites, from simple animations to complex single-page applications.</li>



<li class="has-small-font-size"><strong>API Integration</strong>: JavaScript can be used to fetch data from a server or third-party APIs and display it dynamically on the webpage.</li>



<li class="has-small-font-size"><strong>Server-Side Development</strong>: With environments like Node.js, JavaScript is also used for back-end development, enabling developers to use a single language across the entire development stack.</li>



<li class="has-small-font-size"><strong>Mobile Applications</strong>: JavaScript frameworks like React Native allow developers to create native mobile apps for iOS and Android using JavaScript.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example Use Case:</h3>



<p class="has-small-font-size wp-block-paragraph">Consider a website where users submit a form to receive a newsletter. JavaScript can validate the form data on the client-side to ensure all fields are filled out correctly before sending the data to the server. This provides immediate feedback to users without requiring them to wait for the server&#8217;s response.</p>



<p class="has-small-font-size wp-block-paragraph">Think of JavaScript as the <strong>nervous system</strong> of a webpage, reacting to user actions and sending signals to different parts of the page:</p>



<p class="has-small-font-size wp-block-paragraph">For instance, clicking a button is like a stimulus in the body. JavaScript responds by &#8220;moving&#8221; the webpage content, much like how the nervous system sends signals to muscles its more specifically like the subconscious part of the nervous system so it reacts to things that are like rooted so deep that it can just do them and not needing to wait for a response from the brain(server) like for example we do breathing, or emotions like the fight or flight response to fear.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer noopener">JavaScript Documentation</a></li>
</ul>



<h1 id="K" class="wp-block-heading has-x-large-font-size">K</h1>



<h1 id="L" class="wp-block-heading has-x-large-font-size">L</h1>



<h2 class="wp-block-heading has-large-font-size">Laravel</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is Laravel?</h3>



<p class="has-small-font-size wp-block-paragraph">Laravel is a popular open-source PHP web application framework that is designed to make developing web applications easier and faster through built-in tools and features. It follows the <strong>Model-View-Controller (MVC)</strong> architectural pattern, providing a structure for organizing code, and includes many tools for handling common tasks like routing, authentication, and database interactions.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does Laravel Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Routing</strong>: Laravel uses a simple, expressive syntax to define the routes for your application. Routes map URLs to specific controller actions, making it easy to control how different requests are handled.</li>



<li class="has-small-font-size"><strong>Controllers</strong>: Controllers in Laravel are responsible for handling incoming HTTP requests and returning appropriate responses, often by interacting with the model (database) and view (UI).</li>



<li class="has-small-font-size"><strong>Models</strong>: Models represent the data and business logic of the application. They are typically used to interact with the database, retrieving or modifying data based on the application&#8217;s needs.</li>



<li class="has-small-font-size"><strong>Views</strong>: Views are the presentation layer of the application. They typically contain HTML mixed with Blade templating syntax, which allows developers to easily integrate dynamic data into their pages.</li>



<li class="has-small-font-size"><strong>Eloquent ORM</strong>: Laravel uses Eloquent, an Object-Relational Mapping (ORM) system, which provides a simple and intuitive interface for interacting with the database. It allows developers to work with database records as objects.</li>



<li class="has-small-font-size"><strong>Artisan Command Line</strong>: Laravel includes an Artisan CLI, which offers a variety of helpful commands for tasks like database migrations, testing, and running scheduled tasks.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Web Application Development</strong>: Laravel is widely used for building everything from small websites to large-scale enterprise applications.</li>



<li class="has-small-font-size"><strong>APIs</strong>: Laravel is commonly used to build RESTful APIs for mobile or single-page web applications (SPAs).</li>



<li class="has-small-font-size"><strong>CRUD Operations</strong>: Laravel’s built-in tools allow you to quickly set up CRUD (Create, Read, Update, Delete) operations for working with database records.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Suppose you&#8217;re building a blog application with Laravel. You would create a model to handle blog posts, a controller to manage post-related requests (like showing a post or creating a new one), and views to display the posts to users.</p>



<h3 class="wp-block-heading has-medium-font-size">Documantation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://laravel.com/docs/11.x" target="_blank" rel="noreferrer noopener">Laravel Documentation</a></li>
</ul>



<h2 class="wp-block-heading has-large-font-size">Laracasts</h2>



<h3 class="wp-block-heading has-medium-font-size">What is Laracasts?</h3>



<p class="has-small-font-size wp-block-paragraph">&#8220;Laracasts is a subscription-based service for learning web development. It&#8217;s like Netflix for your career.&#8221; It provides a bunch of free Videos that you can watch without needing a Subscription but if you want to unlock all the Content there are a few options: pay 25$ a month, 149$ a year for the Individual Plan or you can just buy the Forever Plan for 399$ giving you access to everything forever (on that account).</p>



<p class="has-small-font-size wp-block-paragraph">Jeffrey Way the creator of Laracasts he and a bunch of other people create tutorial and explanation videos on his platform. Because he and the other people aswell know how it would&#8217;ve helped them if they had access to something like this especially Jeffrey that&#8217;s why he created / founded Laracasts.<br>He purposely made it only or mainly for PHP and Laravel so you can find almost everything here and get all the knowledge and not just part of it. </p>



<h3 class="wp-block-heading has-medium-font-size">How does Laracasts work?</h3>



<p class="has-small-font-size wp-block-paragraph">Laracasts works like any other programming learning site, there&#8217;s Videos some are free some aren&#8217;t since running a big site and paying people and such costs Money so he &#8220;needs&#8221; to get a bit of money so Laracasts can keep growing and functioning in general.</p>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Like Laracasts has in der Linkedin description:<br>&#8220;<strong>Laracasts is a subscription-based service for learning web development. It&#8217;s like Netflix for your career&#8221;.</strong></p>



<h3 class="wp-block-heading has-medium-font-size">Documentation (doesn&#8217;t really exist):</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://laracasts.com/series/building-laracasts" target="_blank" rel="noreferrer noopener">Jeffrey works on Laracasts code</a></li>
</ul>



<h1 id="M" class="wp-block-heading has-x-large-font-size">M</h1>



<h2 class="wp-block-heading has-large-font-size">MySQL</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is MySQL?</h3>



<p class="has-small-font-size wp-block-paragraph">MySQL is an open-source relational database management system (RDBMS) widely used for storing, organizing, and retrieving data. It is based on <strong>Structured Query Language (SQL)</strong>, which is a standard programming language for interacting with databases. MySQL is commonly used in web applications and is a key component of the popular LAMP stack (Linux, Apache, MySQL, PHP/Python/Perl).</p>



<h3 class="wp-block-heading has-medium-font-size">How Does MySQL Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Storage</strong>: MySQL organizes data into <strong>tables</strong> made up of rows and columns, similar to an Excel spreadsheet. Each table represents a specific type of data, such as user profiles, products, or orders.</li>



<li class="has-small-font-size"><strong>Querying</strong>: Using SQL commands, developers can <strong>retrieve</strong>, <strong>insert</strong>, <strong>update</strong>, or <strong>delete</strong> data stored in these tables. MySQL processes these commands and returns the requested results.</li>



<li class="has-small-font-size"><strong>Relationships</strong>: MySQL supports relational data by allowing tables to be connected through <strong>keys</strong> (primary and foreign keys). This structure ensures data integrity and reduces redundancy.</li>



<li class="has-small-font-size"><strong>Scalability and Performance</strong>: MySQL can handle small projects, like blogs, as well as large-scale applications with millions of records. Features like indexing, partitioning, and replication enhance its performance.</li>



<li class="has-small-font-size"><strong>User Management</strong>: MySQL includes robust user authentication and access control features, ensuring secure database operations.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Web Applications</strong>: Powering websites like WordPress, Joomla, and Drupal.</li>



<li class="has-small-font-size"><strong>E-commerce Platforms</strong>: Managing products, orders, and customers.</li>



<li class="has-small-font-size"><strong>Data Analytics</strong>: Storing and querying large datasets for analysis.</li>



<li class="has-small-font-size"><strong>API Backends</strong>: Supporting dynamic applications that need to fetch and modify data in real time.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example Use Case:</h3>



<p class="has-small-font-size wp-block-paragraph">Consider an online bookstore. MySQL could be used to:</p>



<ul class="wp-block-list">
<li class="has-small-font-size">Store books in a table with columns for title, author, price, and stock quantity.</li>



<li class="has-small-font-size">Manage user accounts and purchase histories in separate tables.</li>



<li class="has-small-font-size">Relate tables (e.g., users with orders) using foreign keys.</li>
</ul>



<p class="wp-block-paragraph">For a bit more relatable / understandable version, think of <strong>MySQL</strong> as the <strong>digestive system</strong> of a web application. Its job is to <strong>process</strong> and <strong>manage data</strong>, just as the digestive system processes and manages nutrients for the body.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://dev.mysql.com/doc/" target="_blank" rel="noreferrer noopener">MySQL Documentation</a></li>
</ul>



<h1 id="N" class="wp-block-heading has-x-large-font-size">N</h1>



<h1 id="O" class="wp-block-heading has-x-large-font-size">O</h1>



<h1 id="P" class="wp-block-heading has-x-large-font-size">P</h1>



<h2 class="wp-block-heading has-large-font-size">partials</h2>



<h3 class="wp-block-heading has-medium-font-size">What are partials?</h3>



<p class="has-small-font-size wp-block-paragraph">Partials are reusable components or sections of code within a web development context. They allow you to break down your HTML (or other templating language) files into smaller, more manageable pieces. These smaller pieces can then be included or inserted into multiple pages or templates.</p>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Partials are as the name suggests, they are part of something bigger for example the are a partial of a page. To make it easier to understand, its like if you have a multi layered cake each layer is a partial so the top layer is the header, the second layer from the top is the navigation then comes the &#8220;main&#8221; part the body so the layer that contains the information of the page and then at the bottom is the base layer so it all holds nicely together (the footer). And the head partial can be thought of as the decoration on top of the cake. </p>



<p class="has-small-font-size wp-block-paragraph">So in programming web development partials are usually:<br>&#8211; head (decoration on top)<br>&#8211; banner (top layer)<br>&#8211; nav (second layer from the top)<br>(the main page so the 2nd layer from the bottom or the 3rd from the top)<br>&#8211; footer (base layer)</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation (different explanations):</h3>



<ul class="wp-block-list">
<li><a href="https://www.linkedin.com/advice/1/how-can-you-use-partials-layouts-improve-html-epwif#:~:text=Partials%20are%20reusable%20components%20or,into%20multiple%20pages%20or%20templates." target="_blank" rel="noreferrer noopener">Explanation 1 (LinkedIn)</a></li>



<li><a href="https://stacksbasecamp.com/blog/partial-power-understanding-the-power-of-partials-in-web-development" target="_blank" rel="noreferrer noopener">Explanation 2 (Stacks Basecamp)</a></li>
</ul>



<h2 id="phpexplanation" class="wp-block-heading has-large-font-size">PHP</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is PHP?</h3>



<p class="has-small-font-size wp-block-paragraph">PHP (Hypertext Preprocessor) is a widely-used, open-source scripting language designed for web development. It is primarily executed on the server side, enabling dynamic content generation and seamless interaction between web applications and databases. PHP is embedded within HTML, making it an ideal tool for creating interactive, data-driven websites.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does PHP Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Server-Side Execution</strong>: PHP scripts run on the server before the webpage is sent to the user&#8217;s browser. The server processes PHP code and generates HTML, which is then sent to the client.</li>



<li class="has-small-font-size"><strong>Dynamic Content Generation</strong>: PHP can retrieve data from a database, process it, and display it dynamically on a webpage. For example, a blog might use PHP to display posts stored in a database.</li>



<li class="has-small-font-size"><strong>Integration</strong>: PHP seamlessly integrates with various databases (like MySQL), frameworks (like Laravel), and web servers (like Apache or Nginx).</li>



<li class="has-small-font-size"><strong>Flexibility</strong>: PHP supports multiple programming paradigms, including procedural and object-oriented programming, allowing developers to choose the style that best fits their needs.</li>



<li class="has-small-font-size"><strong>Extensibility</strong>: Through built-in functions and third-party libraries, PHP supports functionalities like image manipulation, data encryption, and interaction with APIs.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Dynamic Websites</strong>: Creating pages that adapt to user input, like login systems or e-commerce product listings.</li>



<li class="has-small-font-size"><strong>Content Management Systems (CMS)</strong>: Powering platforms like WordPress, Joomla, and Drupal.</li>



<li class="has-small-font-size"><strong>RESTful APIs</strong>: Serving as the backend for APIs used in mobile or web apps.</li>



<li class="has-small-font-size"><strong>E-commerce</strong>: Managing shopping carts, product catalogs, and order processing.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Consider an online food delivery platform. PHP can handle:</p>



<ul class="wp-block-list">
<li class="has-small-font-size">Retrieving restaurant menus from a database.</li>



<li class="has-small-font-size">Processing user orders.</li>



<li class="has-small-font-size">Displaying personalized recommendations based on user preferences.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li><a href="https://www.php.net/docs.php" target="_blank" rel="noreferrer noopener">PHP Documentation</a></li>
</ul>



<h1 id="Q" class="wp-block-heading has-x-large-font-size">Q</h1>



<h1 id="R" class="wp-block-heading has-x-large-font-size">R</h1>



<h1 id="S" class="wp-block-heading has-x-large-font-size">S</h1>



<h2 class="wp-block-heading has-large-font-size">SSH Key</h2>



<h3 class="wp-block-heading has-medium-font-size">What Are SSH Keys?</h3>



<p class="has-small-font-size wp-block-paragraph">SSH Keys are a pair of cryptographic keys used to authenticate secure connections between a client and a server, typically via the Secure Shell (SSH) protocol. They provide a highly secure and convenient alternative to password-based authentication.</p>



<p class="has-small-font-size wp-block-paragraph">An SSH Key isn&#8217;t really singular it is a pair. An SSH Key pair consists of:</p>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Public Key</strong>: This is placed on the server and acts as the &#8220;lock.&#8221;</li>



<li class="has-small-font-size"><strong>Private Key</strong>: This is stored on the client and acts as the &#8220;key.&#8221; It must remain confidential.</li>
</ol>



<p class="has-small-font-size wp-block-paragraph">When you attempt to connect to a server, the server uses the public key to verify the private key, enabling secure access without requiring a password.</p>



<h3 class="wp-block-heading has-medium-font-size">How do SSH Keys work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Key Generation</strong>: SSH keys are generated as a pair using tools like <code>ssh-keygen</code>.</li>



<li class="has-small-font-size"><strong>Key Distribution</strong>: The public key is added to the <code>~/.ssh/authorized_keys</code> file on the server you wish to access.</li>



<li class="has-small-font-size"><strong>Authentication</strong>: During connection, the private key on your local machine is matched against the server’s public key. If they match, access is granted.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Like we learned an SSH Key consists of a Public Key and a Private Key. You can imagine the Public Key to be like a normal Lock that you can find everywhere (Doors, Cabinets, Lockers, etc.) and the Private Key is well the literal Key to open the Lock and gain access to the server usually but well anything really.</p>



<h3 class="wp-block-heading has-medium-font-size">Managing Multiple SSH Keys</h3>



<p class="has-small-font-size wp-block-paragraph">You can store and use multiple SSH keys by specifying which key to use for each host in the SSH configuration file (<code>C:\Users\.ssh\config</code>).</p>



<h3 class="wp-block-heading has-medium-font-size">Example Configuration:</h3>



<p class="has-small-font-size wp-block-paragraph">Here’s how you can configure multiple SSH keys for different servers or services:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">PowerShell</span><span role="button" tabindex="0" data-code="# Default key
Host *
    IdentityFile ~/.ssh/id_rsa
# Specific key for GitHub
Host github.com
    HostName github.com
    User git
    IdentityFile ~/.ssh/id_rsa_github
# Specific key for another server
Host myserver
    HostName myserver.example.com
    User myuser
    IdentityFile ~/.ssh/id_rsa_myserver" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #616E88"># Default key</span></span>
<span class="line"><span style="color: #D8DEE9FF">Host </span><span style="color: #81A1C1">*</span></span>
<span class="line"><span style="color: #D8DEE9FF">    IdentityFile ~</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">.ssh</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">id_rsa</span></span>
<span class="line"></span>
<span class="line"><span style="color: #616E88"># Specific key for GitHub</span></span>
<span class="line"><span style="color: #D8DEE9FF">Host </span><span style="color: #88C0D0">github.com</span></span>
<span class="line"><span style="color: #D8DEE9FF">    HostName </span><span style="color: #88C0D0">github.com</span></span>
<span class="line"><span style="color: #D8DEE9FF">    User git</span></span>
<span class="line"><span style="color: #D8DEE9FF">    IdentityFile ~</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">.ssh</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">id_rsa_github</span></span>
<span class="line"></span>
<span class="line"><span style="color: #616E88"># Specific key for another server</span></span>
<span class="line"><span style="color: #D8DEE9FF">Host myserver</span></span>
<span class="line"><span style="color: #D8DEE9FF">    HostName </span><span style="color: #88C0D0">myserver.example.com</span></span>
<span class="line"><span style="color: #D8DEE9FF">    User myuser</span></span>
<span class="line"><span style="color: #D8DEE9FF">    IdentityFile ~</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">.ssh</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">id_rsa_myserver</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">Each <code>Host</code> entry maps a key to a particular server or domain, ensuring that the correct key is used automatically during connection.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh" target="_blank" rel="noreferrer noopener">GitHub SSH Key Documentation</a></li>



<li class="has-small-font-size"><a href="https://docs.gitlab.com/ee/user/ssh.html" target="_blank" rel="noreferrer noopener">GitLab SSH Key Documentation</a></li>



<li class="has-small-font-size"><a href="https://www.ssh.com/academy/ssh/keygen" target="_blank" rel="noreferrer noopener">SSH Key(gen) Documentation</a></li>
</ul>



<h1 id="T" class="wp-block-heading has-x-large-font-size">T</h1>



<h2 class="wp-block-heading has-large-font-size">Tailwind</h2>



<h3 class="wp-block-heading has-medium-font-size">What is Tailwind?</h3>



<p class="has-small-font-size wp-block-paragraph"><strong>Tailwind CSS</strong> is a utility-first CSS framework that simplifies the process of building modern, responsive web designs. Unlike traditional CSS frameworks (like Bootstrap) that come with predefined components, Tailwind provides a vast collection of utility classes that developers use directly in their HTML. This approach allows for precise, custom designs without needing to write much custom CSS.</p>



<h3 class="wp-block-heading has-medium-font-size">How does Tailwind work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Utility-First Classes</strong>: Tailwind provides low-level utility classes (e.g., <code>text-center</code>, <code>bg-blue-500</code>, <code>p-4</code>) that map directly to CSS properties. These classes are combined to style elements directly in the HTML.</li>



<li class="has-small-font-size"><strong>Customization</strong>: Tailwind includes an extensive configuration file (<code>tailwind.config.js</code>) where developers can customize colors, spacing, breakpoints, and more to match the project’s design system.</li>



<li class="has-small-font-size"><strong>Responsive Design</strong>: Built-in responsive utilities (like <code>sm:</code>, <code>md:</code>, <code>lg:</code> prefixes) make creating designs for different screen sizes straightforward.</li>



<li class="has-small-font-size"><strong>CSS Purging</strong>: Tailwind automatically removes unused CSS classes in production builds, ensuring minimal file size and optimal performance.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">It&#8217;s basically just like <a href="#CSS" data-type="internal" data-id="#CSS">CSS</a> the only difference is that everything is pre styled and fixed under certain classes so you don&#8217;t have to code the design yourself, instead you can just add the specific classes. So just familiarize yourself with the CSS explanation if needed and the example is pretty much the same you could just change it up a bit and say that its like a Skin that exists and you can just call it whenever and not a unique created design (skin).
<div style="height: 0px; width: 0px; overflow: hidden;"><a href="https://antibiotika-de.com/amoxil-rezeptfrei.html">amoxicillin ohne rezept</a></div>
</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation: </h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://tailwindcss.com/docs/installation" target="_blank" rel="noreferrer noopener">Tailwind Documentation</a></li>
</ul>



<h1 id="U" class="wp-block-heading has-x-large-font-size">U</h1>



<h1 id="V" class="wp-block-heading has-x-large-font-size">V</h1>



<h2 class="wp-block-heading has-large-font-size">view</h2>



<h3 class="wp-block-heading has-medium-font-size">What can one understand under view?</h3>



<p class="has-small-font-size wp-block-paragraph">It differs what a view is but in this area of expertise (web-programming) its in part of code management. A <strong>view</strong> is a component that handles the presentation layer of an application. It is responsible for displaying data to users and interacting with the logic of the application (typically handled by controllers or scripts) to reflect dynamic content. Here&#8217;s a short explanation on what views do or better said display:</p>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Receives Data</strong>: Views are provided with data, often from a controller or a backend API.</li>



<li class="has-small-font-size"><strong>Formats Data</strong>: They format and display the data as HTML, JSON, or other content types that users can interpret.</li>



<li class="has-small-font-size"><strong>Interacts with Users</strong>: Views also provide interactive elements, such as forms or buttons, for user input and feedback.</li>
</ol>



<p class="has-small-font-size wp-block-paragraph">For example, a &#8220;profile page&#8221; view might display user data like name, email, and profile picture, while dynamically updating when the user edits their information.</p>



<p class="has-small-font-size wp-block-paragraph">So the type of files that belong in the views directory are, all types of Files that the User will see or get displayed for example:</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="574" src="https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-1024x574.png" alt="" class="wp-image-498" srcset="https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-1024x574.png 1024w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-300x168.png 300w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-768x431.png 768w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-1536x861.png 1536w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-2048x1149.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="has-small-font-size wp-block-paragraph">For the image above the files in the view directory would be: <strong><code>index.view.php</code></strong> (Home Page), <strong><code>about.view.php</code></strong> (About Page) and <strong><code>contact.view.php</code></strong> (Contact Page).</p>



<h1 id="W" class="wp-block-heading has-x-large-font-size">W</h1>



<h2 class="wp-block-heading has-large-font-size">WinSCP</h2>



<h2 class="wp-block-heading has-large-font-size">Wonderland</h2>



<h2 class="wp-block-heading has-large-font-size">WordPress</h2>



<h2 class="wp-block-heading has-large-font-size">WSC </h2>



<h1 id="Q" class="wp-block-heading has-x-large-font-size">Q</h1>



<h1 id="Y" class="wp-block-heading has-x-large-font-size">Y</h1>



<h1 id="Z" class="wp-block-heading has-x-large-font-size">Z</h1>



<h2 class="wp-block-heading has-large-font-size">Zeplin</h2>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
