Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/image optimization #8

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed public/images/favicon-16x16.png
Binary file not shown.
Binary file added public/images/favicon-16x16.webp
Binary file not shown.
Binary file removed public/images/favicon-32x32.png
Binary file not shown.
Binary file added public/images/favicon-32x32.webp
Binary file not shown.
Binary file removed public/images/favicon-96x96.png
Binary file not shown.
Binary file added public/images/favicon-96x96.webp
Binary file not shown.
Binary file removed public/images/p2p-assisted-media-delivery.png
Binary file not shown.
Binary file added public/images/p2p-assisted-media-delivery.webp
Binary file not shown.
Binary file removed public/images/p2p-media-loader-network.png
Binary file not shown.
Binary file added public/images/p2p-media-loader-network.webp
Binary file not shown.
16 changes: 15 additions & 1 deletion src/components/demo-page-components/P2PDemo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
>
</form>
<div id="graph"></div>
<h3>Trackers:</h3>
<span class="h2">Trackers:</span>
<div id="announce"></div>
</div>
</div>
Expand Down Expand Up @@ -1308,3 +1308,17 @@
demo.init();
</script>
<!-- End demo copy paste -->

<style>
.h2 {
display: block;
font-size: 1.17em;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
font-weight: bold;
margin: 0;
padding: 0;
}
</style>
10 changes: 7 additions & 3 deletions src/components/index-page-components/ServicesList.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
import "../../styles/services-list.css";
---

<div class="page container content">
<div class="services-container">
<div class="services">
<div class="title"><h3><span>P2P Solutions</span></h3></div>
<div class="title"><h2><span>P2P Solutions</span></h2></div>
<div class="list">
<ul>
<li>
Expand All @@ -21,7 +25,7 @@
</div>
</div>
<div class="services">
<div class="title"><h3><span>Web Development</span></h3></div>
<div class="title"><h2><span>Web Development</span></h2></div>
<div class="list">
<ul>
<li>Full stack web development</li>
Expand All @@ -39,7 +43,7 @@
</div>
</div>
<div class="services">
<div class="title"><h3><span>Software Development</span></h3></div>
<div class="title"><h2><span>Software Development</span></h2></div>
<div class="list">
<ul>
<li>Product design</li>
Expand Down
6 changes: 4 additions & 2 deletions src/components/shared/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
class="brand-logo"
src="/images/novage-logo.svg"
alt="Novage logo"
height="48px"
width="173px"
/>
</a>
<button class="navbar-toggle" aria-label="Toggle navigation"
Expand All @@ -14,7 +16,7 @@
</div>
<ul class="menu">
<li class="menu-item arrow">
<a><span>P2P Media Loader</span></a>
<a href="/"><span>P2P Media Loader</span></a>
<ul class="sub-menu">
<li class="sub-menu-item">
<a href="/p2p-media-loader/demo"><span>Demo</span></a>
Expand Down Expand Up @@ -43,7 +45,7 @@
<a href="/blog"><span>Blog</span></a>
</li>
<li class="menu-item arrow">
<a><span>Contact</span></a>
<div class="anchor"><span>Contact</span></div>
<ul class="sub-menu">
<li class="sub-menu-item"><a href="" id="email"><span></span></a></li>
</ul>
Expand Down
15 changes: 6 additions & 9 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,26 @@ const { title } = Astro.props;
rel="icon"
type="image/png"
sizes="96x96"
href="/images/favicon-96x96.png"
href="/images/favicon-96x96.webp"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/images/favicon-32x32.png"
href="/images/favicon-32x32.webp"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/images/favicon-16x16.png"
href="/images/favicon-16x16.webp"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" content="Consulting & Full Development Cycle" />

<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-123521518-1"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8XFLFKSSL7"
></script>
<script is:inline>
window.dataLayer = window.dataLayer || [];

Expand All @@ -60,7 +57,7 @@ const { title } = Astro.props;
}

gtag("js", new Date());
gtag("config", "UA-123521518-1");
gtag("config", "G-8XFLFKSSL7");
</script>

<meta name="description" content="Consulting & Full Development Cycle" />
Expand Down
1 change: 1 addition & 0 deletions src/pages/p2p-media-loader/demo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import "../../styles/demo.css";
<PageHeader htmlTitle="P2P Media Loader<br>Demo" />
<div id="demo" class="container content">
<iframe
title="GitHub"
src="https://ghbtns.com/github-btn.html?user=novage&repo=p2p-media-loader&type=star&count=true&size=large"
style="width: 160px; height: 30px; border: none; overflow: scroll;"
></iframe>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/p2p-media-loader/overview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Layout from "../../layouts/Layout.astro";
<PageHeader htmlTitle="P2P Media Loader<br/> Overview" />
<div class="page container content">
<ImageBlock
imgSrc="/images/p2p-assisted-media-delivery.png"
imgSrc="/images/p2p-assisted-media-delivery.webp"
alt="P2P assisted media delivery"
>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/p2p-media-loader/technical-overview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Layout from "../../layouts/Layout.astro";
<div class="page container content">
<h2>Key components of the P2P network</h2>
<ImageBlock
imgSrc="/images/p2p-media-loader-network.png"
imgSrc="/images/p2p-media-loader-network.webp"
alt="P2P Media Loader network"
>
<p>All the components of the P2P network are free and open-source.</p>
Expand Down
Loading
Loading