Skip to content

Commit

Permalink
Added privacy policy page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Mar 7, 2023
1 parent a892689 commit 77cc68e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/Page/PrivacyPage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);

namespace ScriptFUSION\Steam250\SiteGenerator\Page;

use Doctrine\DBAL\Connection;

final class PrivacyPage extends Page
{
public function __construct(Connection $database)
{
parent::__construct($database, 'privacy');
}
}
3 changes: 3 additions & 0 deletions src/Page/StaticPageName.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ final class StaticPageName extends AbstractEnumeration
{
public const PREVIEWS = 'PREVIEWS';
public const ABOUT = 'ABOUT';
public const PRIVACY = 'PRIVACY';
public const AMBASSADORS = 'AMBASSADORS';
public const CONTRIBUTORS = 'CONTRIBUTORS';
public const TWEETS = 'TWEETS';
Expand All @@ -20,6 +21,7 @@ final class StaticPageName extends AbstractEnumeration
private static array $classes = [
self::PREVIEWS => PreviewsPage::class,
self::ABOUT => AboutPage::class,
self::PRIVACY => PrivacyPage::class,
self::AMBASSADORS => AmbassadorsPage::class,
self::CONTRIBUTORS => ContributorsPage::class,
self::TWEETS => TweetsPage::class,
Expand All @@ -32,6 +34,7 @@ final class StaticPageName extends AbstractEnumeration
private static array $aliases = [
self::PREVIEWS => 'previews',
self::ABOUT => 'about',
self::PRIVACY => 'privacy',
self::AMBASSADORS => 'amb',
self::CONTRIBUTORS => 'contrib',
self::TWEETS => 'tweets',
Expand Down
9 changes: 8 additions & 1 deletion template/layout/template.twig
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@
<li><a href="https://github.com/250">Source code</a>,
<a href="https://github.com/250/Steam-250/issues">Issues</a>
</ul>
<p>
<a href="mailto:bilge@steam250.com">Contact by email</a>
</p>
</div>

<div>
Expand Down Expand Up @@ -220,8 +223,12 @@
Follow our official <a href="https://store.steampowered.com/curator/32686107/">Steam curator</a>
page to access game rankings directly from the Steam store! Automatically updated every day.
</p>

<h2><a href="/privacy{{ ext }}">Cookie notice</a></h2>
<p>
<a href="mailto:bilge@steam250.com">Contact by email</a>
Steam 250 only stores strictly necessary cookies (if any).
However, our third-party partners may store additional cookies. For more information, see our
<a href="/privacy{{ ext }}">privacy policy</a>.
</p>
</div>
</section>
Expand Down
31 changes: 31 additions & 0 deletions template/privacy.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% extends 'layout/template.twig' %}

{% block title %}Privacy Policy{% endblock %}
{% block heading %}Privacy Policy{% endblock %}

{% block content %}
<p>We take your privacy seriously. Steam 250 has no interest in selling your data.</p>

<p>This is a living document that may evolve over time. Please check back from time to time for the latest updates.</p>

<h2>Google Ads</h2>
<p>
{# https://support.google.com/adsense/answer/1348695 #}
Google may use cookies to serve ads based on your previous visits to this website or other websites.
Google's use of advertising cookies enables it and its partners to serve ads to you based on your visit to this
site and/or other sites on the Internet. However, you may opt out of personalised advertising by visiting
<a href="https://adssettings.google.com/">My Ad Center</a>.
</p>
<p>
The cookies of other
<a href="https://support.google.com/dfp_premium/answer/94149">third-party vendors or ad networks</a>
may also be used to serve ads on this site.
You may opt out of some third-party vendors' uses of cookies for personalised advertising by visiting
<a href="https://youradchoices.com/">YourAdChoices</a>.
</p>
<p>
For more complete information about how Google and its partners may use your personal information, please see
<a href="https://policies.google.com/technologies/partner-sites">how Google uses information from sites
that use their services</a>.
</p>
{% endblock %}

0 comments on commit 77cc68e

Please sign in to comment.