base page style

This commit is contained in:
2025-06-03 09:09:59 +02:00
parent bc557b35af
commit df0e47c610
4 changed files with 320 additions and 114 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

View File

@@ -15,6 +15,7 @@
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
:root { :root {
--barca-blue: #002147; --barca-blue: #002147;
--barca-red: #A50044; --barca-red: #A50044;
@@ -36,7 +37,7 @@ body {
font-family: 'Exo2ExtraBold', sans-serif; font-family: 'Exo2ExtraBold', sans-serif;
margin: 0; margin: 0;
padding: 0; padding: 0;
background: linear-gradient(red, white,90deg); background-color: var(--section-color);
color: black; color: black;
transition: all 0s ease; transition: all 0s ease;
display: flex; display: flex;
@@ -58,53 +59,56 @@ body {
background: var(--section-color); background: var(--section-color);
color: white; color: white;
font-size: 15px; font-size: 15px;
margin: 0 0 20px 0;
z-index: -2; z-index: -2;
position: relative; position: relative;
box-shadow: inset 0px -5px 10px 2px rgba(0, 0, 0, 0.347); /* box-shadow: 0px -5px 10px 2px rgba(0, 0, 0, 0.347); */
} }
.header-content h1 .header-content h1 {
{
border-bottom: 10px solid var(--barca-red); border-bottom: 10px solid var(--barca-red);
border-radius: 10px; border-radius: 10px;
padding: 5px; padding: 5px;
animation: header-content 1000ms ease; animation: header-content 500ms ease;
transform: skewX(-5deg);
} }
.header-content-special
{ .header-content-special {
font-size: 50px; font-size: 50px;
color: var(--barca-gold); color: var(--barca-gold);
} }
.profile-image { .profile-image {
width: 40%; width: 40%;
padding: 20px; padding: 20px;
position: relative; position: relative;
} }
.profile-image-cover
{ .profile-image-cover {
background: linear-gradient(185deg,transparent 40% 60%, var(--section-color) 85%, var(--section-color) 90% ); background: linear-gradient(185deg, transparent 40% 60%, var(--section-color) 85%, var(--section-color) 90%);
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
left: 0; left: 0;
top:0; top: 0;
} }
.profile-image img
{ .profile-image img {
width: 100%; width: 100%;
animation: header-content 300ms ease; max-width: 600px;
background: linear-gradient(90deg,var(--barca-blue) 50%,var(--barca-red) 50% 100%); animation: header-content 400ms ease;
background: linear-gradient(90deg, var(--barca-blue) 50%, var(--barca-red) 50% 100%);
border-radius: var(--border-radius); border-radius: var(--border-radius);
transform: skewX(2deg) skewY(0deg);
} }
@keyframes header-content { @keyframes header-content {
0% 0% {
{
opacity: 00%; opacity: 00%;
transform: skewX(30deg);
} }
100%
{ 100% {
opacity: 100%; opacity: 100%;
} }
} }
@@ -121,7 +125,7 @@ header button {
/* Styl nawigacji */ /* Styl nawigacji */
.navbar { .navbar {
background: linear-gradient(to right,#002147,#A50044); background: linear-gradient(to right, #002147, #A50044);
padding: 2.3rem 1rem; padding: 2.3rem 1rem;
height: 1.5rem; height: 1.5rem;
@@ -141,22 +145,22 @@ header button {
align-items: center; align-items: center;
} }
.logo .logo {
{
display: flex; display: flex;
align-items: center; align-items: center;
} }
.logo-text { .logo-text {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: bold; font-weight: bold;
color: var(--barca-gold); color: var(--barca-gold);
} }
.logo-icon
{ .logo-icon {
font-size: 2.8em; font-size: 2.8em;
} }
.logo-link
{ .logo-link {
text-decoration: none; text-decoration: none;
} }
@@ -182,7 +186,8 @@ header button {
transition: 100ms ease; transition: 100ms ease;
position: relative; position: relative;
} }
.nav-links li a::before{
.nav-links li a::before {
display: flex; display: flex;
justify-content: center; justify-content: center;
position: absolute; position: absolute;
@@ -192,39 +197,38 @@ header button {
height: 100%; height: 100%;
opacity: 0%; opacity: 0%;
font-size: 25px; font-size: 25px;
transition: 100ms ease; transition: 100ms ease;
} }
.nav-links li:hover a::before
{ .nav-links li:hover a::before {
opacity: 100%; opacity: 100%;
transform: translateY(-20px); transform: translateY(-20px);
} }
.nav-links li:nth-child(1) a::before
{ .nav-links li:nth-child(1) a::before {
content: "🏠"; content: "🏠";
} }
.nav-links li:nth-child(2) a::before
{ .nav-links li:nth-child(2) a::before {
content: "📅"; content: "📅";
} }
.nav-links li:nth-child(3) a::before .nav-links li:nth-child(3) a::before {
{
content: "📊"; content: "📊";
} }
.nav-links li:nth-child(4) a::before
{ .nav-links li:nth-child(4) a::before {
content: "🏆"; content: "🏆";
} }
.nav-links li .nav-links li {
{
display: block; display: block;
} }
.nav-links li:has(button)
{ .nav-links li:has(button) {
padding: 20px; padding: 20px;
} }
.nav-links li button { .nav-links li button {
width: 1.5em; width: 1.5em;
height: 1.5em; height: 1.5em;
@@ -236,20 +240,20 @@ header button {
background-color: var(--bg-color); background-color: var(--bg-color);
border: none; border: none;
} }
.nav-links li button
{ .nav-links li button {
background-color: var(--barca-blue); background-color: var(--barca-blue);
position: relative; position: relative;
overflow: hidden; overflow: hidden;
box-shadow: 0px 0px 6px 1px #FDB913; box-shadow: 0px 0px 6px 1px #FDB913;
transition: 100ms ease; transition: 100ms ease;
} }
.nav-links li button:hover
{ .nav-links li button:hover {
transform: scale(1.1,1.1); transform: scale(1.1, 1.1);
} }
.nav-links li button::after
{ .nav-links li button::after {
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
@@ -259,11 +263,11 @@ header button {
width: 50%; width: 50%;
height: 100%; height: 100%;
} }
.nav-links li button::before
{ .nav-links li button::before {
content: ""; content: "";
background: url('FC_Barcelona.png'); background: url('FC_Barcelona.png');
background-size:contain; background-size: contain;
z-index: 1; z-index: 1;
display: block; display: block;
position: absolute; position: absolute;
@@ -328,15 +332,132 @@ header button {
/* Wyśrodkowanie głównej zawartości */ /* Wyśrodkowanie głównej zawartości */
main { main {
padding: 0px; display: flex;
/* Maksymalna szerokość treści */ align-items: center;
flex-direction: column;
}
.main-index {
border-radius: var(--border-radius);
margin-top: 20px;
padding: 20px;
width: 80%;
max-width: 1200px;
background-color: rgba(255, 255, 255, 0.086);
color: white;
}
.about-section {
border-radius: var(--border-radius);
background-color: var(--barca-blue);
padding: 20px;
color: white;
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 20px;
grid-template-areas:
"how how"
"- about-section-image"
"- about-section-image"
"- about-section-image";
}
.about-section article h3 {
background-color: var(--barca-gold);
color: black;
text-align: center; text-align: center;
/* Wyśrodkowanie tekstu */ border-radius: var(--border-radius);
padding: 10px;
}
.about-section article h4 {
background-color: #00B9BF;
width: fit-content;
padding: 10px;
color: black;
border-radius: (--border-radius)
}
.article__how-it-works {
grid-area: how;
}
.about-section article a {
display: block;
width: 100%;
color: var(--barca-gold);
text-align: center;
}
.about-section-image {
grid-area: about-section-image;
z-index: 0;
position: relative;
}
.about-section-image::after {
content: "";
display: block;
position: absolute;
right: 0;
bottom: 0;
width: 90%;
height: 90%;
z-index: -1;
background-color: #051839;
border-radius: 20px;
}
.about-section-image img {
width: 100%;
z-index: 3;
}
.general-stats-section {
border-radius: var(--border-radius);
display: flex;
flex-direction: column;
align-items: center;
}
.general-stats-section h2 {
width: 100%;
background-color: #002147;
padding: 20px;
text-align: center;
}
.general-stats-section .grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
height: 150px;
gap: 20px;
width: 100%;
}
.general-stats-section .grid article {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
font-size: 1.3em;
}
.general-stats-section .grid article:nth-child(1){background-color: var(--blue-highlight);}
.general-stats-section .grid article:nth-child(2){background-color: var(--yellow-highlight);}
.general-stats-section .grid article:nth-child(3){background-color: var(--pink-highlight);}
.general-stats-section .grid p
{
font-size: 40px;
}
.general-stats-section .grid h3, .general-stats-section .grid p
{
margin: 0;
padding: 0;
} }
/* Styl dla tabeli */ /* Styl dla tabeli */
@@ -363,7 +484,50 @@ td {
/* Wyśrodkowanie obrazka */ /* Wyśrodkowanie obrazka */
} }
.section__matches
{
background-color: white;
width: 80%;
border-radius: var(--border-radius);
max-width: 1000px;
}
.section__matches h2
{
margin: 0;
border-radius: var(--border-radius);
background-color: var(--barca-gold);
padding: 20px;
text-align: center;
}
.section__matches td:nth-child(1)
{
border-radius: 25px 0 0px 25px;
}
.section__matches td:last-child
{
border-radius: 0 25px 25px 0;
}
.section__matches th
{
font-size: 1.3em;
color: var(--barca-red)
}
.section__matches tr
{
transition: 100ms ease;
}
.section__matches tr:hover:has(:not(th))
{
transform: scale(1.05,1.05);
background-color: #00B9BF;
}
/* Styl dla trybu polskiego */ /* Styl dla trybu polskiego */
body.poland-mode {
background-color: var(--polska-section-color);
}
body.poland-mode .navbar { body.poland-mode .navbar {
background: linear-gradient(to bottom, #bd4148, #dc1414); background: linear-gradient(to bottom, #bd4148, #dc1414);
} }
@@ -371,8 +535,8 @@ body.poland-mode .navbar {
body.poland-mode .logo { body.poland-mode .logo {
color: var(--polska-white) color: var(--polska-white)
} }
body.poland-mode .logo-text
{ body.poland-mode .logo-text {
color: white; color: white;
} }
@@ -386,19 +550,18 @@ body.poland-mode .nav-links li a:hover {
background-color: white; background-color: white;
} }
body.poland-mode .nav-links li button::before body.poland-mode .nav-links li button::before {
{
background: none; background: none;
} }
body.poland-mode .nav-links li button
{ body.poland-mode .nav-links li button {
background-color: red; background-color: red;
box-shadow: 0px 0px 6px 5px rgba(109, 0, 0, 0.219); box-shadow: 0px 0px 6px 5px rgba(109, 0, 0, 0.219);
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
body.poland-mode .nav-links li button::after
{ body.poland-mode .nav-links li button::after {
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
@@ -409,35 +572,33 @@ body.poland-mode .nav-links li button::after
height: 50%; height: 50%;
} }
body.poland-mode .profile-image img body.poland-mode .profile-image img {
{
width: 100%; width: 100%;
animation: header-content 300ms ease; animation: header-content 300ms ease;
background: linear-gradient(rgba(255, 255, 255, 0.534) 50%,rgba(255, 0, 0, 0.551) 50% 100%); background: linear-gradient(rgba(255, 255, 255, 0.534) 50%, rgba(255, 0, 0, 0.551) 50% 100%);
border-radius: var(--border-radius); border-radius: var(--border-radius);
} }
body.poland-mode .header-content-special body.poland-mode .header-content-special {
{
font-size: 50px; font-size: 50px;
color: red; color: red;
} }
body.poland-mode .header-content
{ body.poland-mode .header-content {
background-color: var(--polska-section-color) background-color: var(--polska-section-color)
} }
body.poland-mode .header-content h1
{ body.poland-mode .header-content h1 {
border-bottom-color: red; border-bottom-color: red;
} }
body.poland-mode .profile-image-cover
{ body.poland-mode .profile-image-cover {
background: linear-gradient(185deg,transparent 40% 60%, var(--polska-section-color) 85%, var(--polska-section-color) 90% ); background: linear-gradient(185deg, transparent 40% 60%, var(--polska-section-color) 85%, var(--polska-section-color) 90%);
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
left: 0; left: 0;
top:0; top: 0;
} }

View File

@@ -3,13 +3,56 @@
{% block title %}Strona Główna{% endblock %} {% block title %}Strona Główna{% endblock %}
{% block content %} {% block content %}
<h2>Witaj na stronie poświęconej statystykom Roberta Lewandowskiego!</h2> <div class="main-index">
<p>Tu znajdziesz najnowsze informacje o meczach, golach, asystach i innych statystykach.</p> <h2>Witaj na stronie poświęconej <br> statystykom Roberta Lewandowskiego!</h2>
<div> <p>Tu znajdziesz najnowsze informacje o meczach, golach, asystach i innych statystykach.</p>
<h3>Ogólne statystyki:</h3> <section class="about-section">
<p>Gole: {{ goals }}</p> <article class="article__how-it-works">
<p>Asysty: {{ assists }}</p> <h3>Jak to działa?</h3>
<p>Liczba meczów: {{ matches }}</p> <h4>Pobieranie statystyk</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione harum minus hic, voluptate perspiciatis laborum? Alias maxime, voluptate reprehenderit iusto dolorem officiis porro voluptatibus repellat dicta doloribus, blanditiis similique accusantium.</p>
<h4>Porównywanie zawodników</h4>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Fuga, in perspiciatis. Sequi laborum et animi quas sit voluptatibus alias sed ad molestias nulla vel cum, consectetur commodi odio aliquam officia.</p>
</article>
<div class="about-section-image">
<img src="{{ url_for('static', filename='gigabuła.png') }}">
</div>
<article>
<h3>Mecze</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta ullam iusto ex? Quo amet officia aliquam odio sint harum nam eaque nihil ipsa quos aliquid, illum voluptatum, numquam, magnam omnis?</p>
<a href="/mecze">Zobacz mecze</a>
</article>
<article>
<h3>Statystyki</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Temporibus dolore tenetur nulla sint recusandae illo dolores aspernatur ducimus, omnis vitae ipsam neque animi voluptates eos porro, nihil iusto veniam commodi!</p>
<a href="/statystyki">Zobacz statystyki</a>
</article>
<article>
<h3>Osiągnięcia</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod dicta veritatis quibusdam eligendi corrupti. Expedita delectus assumenda ipsum illum molestias a voluptates, voluptas quia reprehenderit, quod non, eum veritatis tenetur!</p>
<a href="/historia">Zobacz osiągnięcia</a>
</article>
</section>
<section class="general-stats-section">
<h2>Ogólne statystyki:</h3>
<div class="grid">
<article>
<h3>Gole:</h3>
<p>{{ goals }}</p>
</article>
<article>
<h3>Asysty</h3>
<p>{{ assists }}</p>
</article>
<article>
<h3>Liczba meczów</h3>
<p>{{ matches }}</p>
</article>
</div>
</section>
</div> </div>
{% endblock %} {% endblock %}

View File

@@ -3,23 +3,25 @@
{% block title %}Lista meczów{% endblock %} {% block title %}Lista meczów{% endblock %}
{% block content %} {% block content %}
<h2>📅 Mecze Roberta</h2> <section class="section__matches">
<table> <h2>📅 Mecze Roberta</h2>
<tr> <table>
<th>Data</th> <tr>
<th>Przeciwnik</th> <th>Data</th>
<th>Gole</th> <th>Przeciwnik</th>
<th>Asysty</th> <th>Gole</th>
<th>Minuty</th> <th>Asysty</th>
</tr> <th>Minuty</th>
{% for match in matches %} </tr>
<tr> {% for match in matches %}
<td>{{ match.date }}</td> <tr>
<td>{{ match.opponent }}</td> <td>{{ match.date }}</td>
<td>{{ match.goals }}</td> <td>{{ match.opponent }}</td>
<td>{{ match.assists }}</td> <td>{{ match.goals }}</td>
<td>{{ match.minutes }}</td> <td>{{ match.assists }}</td>
</tr> <td>{{ match.minutes }}</td>
{% endfor %} </tr>
</table> {% endfor %}
</table>
</section>
{% endblock %} {% endblock %}