Compare commits

...

3 commits
1.1.0 ... main

Author SHA1 Message Date
Matyáš Caras 3b3ee59dfb fix: add loading circle and format html 2022-11-08 17:39:02 +01:00
Matyáš Caras c0516b3395 fix: learn how to replace URLs lol 2022-11-08 17:37:53 +01:00
Matyáš Caras 81e6853dfe fix: malá vylepšení + ikonky 2022-11-08 17:32:46 +01:00
13 changed files with 106 additions and 28 deletions

View file

@ -151,6 +151,9 @@ class _DomovskaStranaState extends State<DomovskaStrana> {
], ],
), ),
), ),
const SizedBox(
height: 10,
),
TextButton( TextButton(
onPressed: () => generuj(), onPressed: () => generuj(),
style: Vzhled.tlacitkoStyl, style: Vzhled.tlacitkoStyl,

View file

@ -139,7 +139,7 @@ class _ReseniState extends State<Reseni> {
Row( Row(
children: [ children: [
Text( Text(
"Zadaná IP:", "Zadaná IP (sítě):",
style: Vzhled.tableContent(context), style: Vzhled.tableContent(context),
), ),
const SizedBox( const SizedBox(

View file

@ -3,7 +3,7 @@ description: Generátor příkladu k výuce subnetování
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.1.0+2 version: 1.1.1
environment: environment:
sdk: '>=2.18.2 <3.0.0' sdk: '>=2.18.2 <3.0.0'

1
web/CNAME Normal file
View file

@ -0,0 +1 @@
pavouk.caras.cafe

BIN
web/banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 917 B

BIN
web/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

View file

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<!-- <!--
If you are serving your web app in a path other than the root, change the If you are serving your web app in a path other than the root, change the
@ -18,18 +19,40 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A new Flutter project."> <meta name="theme-color" content="#ff4c4c">
<!-- Primary Meta Tags -->
<meta name="title" content="Pavouk | subnetování">
<meta name="description"
content="S pavoukem si můžete nechat vygenerovat náhodnou síť s náhodným počtem subnetů/podsítí, každý s náhodným počtem hostů, případně nechat vyřešit vlastní příklad.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://pavouk.caras.cafe/">
<meta property="og:title" content="Pavouk | subnetování">
<meta property="og:description"
content="S pavoukem si můžete nechat vygenerovat náhodnou síť s náhodným počtem subnetů/podsítí, každý s náhodným počtem hostů, případně nechat vyřešit vlastní příklad.">
<meta property="og:image" content="https://pavouk.caras.cafe/banner.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://pavouk.caras.cafe/">
<meta property="twitter:title" content="Pavouk | subnetování">
<meta property="twitter:description"
content="S pavoukem si můžete nechat vygenerovat náhodnou síť s náhodným počtem subnetů/podsítí, každý s náhodným počtem hostů, případně nechat vyřešit vlastní příklad.">
<meta property="twitter:image" content="https://pavouk.caras.cafe/banner.png">
<!-- iOS meta tags & icons --> <!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="pavouk"> <meta name="apple-mobile-web-app-title" content="pavouk">
<link rel="apple-touch-icon" href="icons/Icon-192.png"> <link rel="apple-touch-icon" href="icon.png">
<!-- Favicon --> <!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/> <link rel="icon" type="image/png" href="icon.png" />
<title>pavouk</title> <title>Pavouk | subnetování</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script> <script>
@ -38,21 +61,84 @@
</script> </script>
<!-- This script adds the flutter initialization JS code --> <!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script> <script src="flutter.js" defer></script>
<style>
.lds-ring {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ring div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 8px solid #fff;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #000 transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes lds-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.center {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%)
}
</style>
</head> </head>
<body> <body>
<div class="center">
<div class="lds-ring">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<script> <script>
window.addEventListener('load', function(ev) { window.addEventListener('load', function (ev) {
// Download main.dart.js // Download main.dart.js
_flutter.loader.loadEntrypoint({ _flutter.loader.loadEntrypoint({
serviceWorker: { serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion, serviceWorkerVersion: serviceWorkerVersion,
} }
}).then(function(engineInitializer) { }).then(function (engineInitializer) {
return engineInitializer.initializeEngine(); return engineInitializer.initializeEngine();
}).then(function(appRunner) { }).then(function (appRunner) {
return appRunner.runApp(); return appRunner.runApp();
}); });
}); });
</script> </script>
</body> </body>
</html>
</html>

View file

@ -1,35 +1,23 @@
{ {
"name": "pavouk", "name": "Pavouk - Subnetování",
"short_name": "pavouk", "short_name": "Pavouk",
"start_url": ".", "start_url": ".",
"display": "standalone", "display": "standalone",
"background_color": "#0175C2", "background_color": "#0175C2",
"theme_color": "#0175C2", "theme_color": "#ff4c4c",
"description": "A new Flutter project.", "description": "Generátor a řešitel příkladů vytváření podsítí/subnetů z větší sítě.",
"orientation": "portrait-primary", "orientation": "portrait-primary",
"prefer_related_applications": false, "prefer_related_applications": false,
"icons": [ "icons": [
{ {
"src": "icons/Icon-192.png", "src": "icon.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "icons/Icon-512.png", "src": "icon.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png" "type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
} }
] ]
} }