Make website work properly when opened as a file in the browser.

This commit is contained in:
2025-09-11 18:37:27 +03:00
parent e42c98866e
commit 2dd53deb70
5 changed files with 42 additions and 42 deletions

View File

@@ -4,32 +4,32 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Галерея » Веб-програмування ПР№1</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="../style.css">
<script>
const gallery = [
{
image: "/images/hero-image.png",
image: "../images/hero-image.png",
title: "Всім привіт!"
},
{
image: "/images/website-logo.png",
image: "../images/website-logo.png",
title: "Наш логотип"
},
{
image: "/images/about-image.png",
image: "../images/about-image.png",
title: "Наш офіс"
},
{
image: "/images/team-photo.webp",
image: "../images/team-photo.webp",
title: "Наша команда"
},
{
image: "/images/product-image.jpg",
image: "../images/product-image.jpg",
title: "Наш продукт"
},
{
image: "/images/event-image.jpg",
image: "../images/event-image.jpg",
title: "Подія компанії"
},
];
@@ -67,11 +67,11 @@
<!-- Navbar -->
<nav>
<div class="nav-links">
<a href="/" class="nav-logo"><img src="/images/website-logo.png" alt="Логотип компанії"></a>
<a href="/pages/gallery.html"><u>Галерея</u></a>
<a href="/pages/articles.html">Статті</a>
<a href="/pages/contacts.html">Контакти</a>
<a href="/pages/about.html">Про нас</a>
<a href="../index.html" class="nav-logo"><img src="../images/website-logo.png" alt="Логотип компанії"></a>
<a href="./gallery.html"><u>Галерея</u></a>
<a href="./articles.html">Статті</a>
<a href="./contacts.html">Контакти</a>
<a href="./about.html">Про нас</a>
</div>
</nav>