Skip to content

Commit

Permalink
Merge pull request #5 from testainers/dev
Browse files Browse the repository at this point in the history
Version 0.0.2.
  • Loading branch information
edufolly authored Jun 1, 2024
2 parents f102f43 + 20a3b7b commit a421171
Show file tree
Hide file tree
Showing 13 changed files with 454 additions and 263 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ jobs:
run: flutter build web

- name: Publishing to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./build/web
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: testainers.com

- name: Creating a GitHub Tag
uses: mathieudutour/github-tag-action@v6.1
uses: mathieudutour/github-tag-action@v6.2
with:
custom_tag: ${{ env.VERSION }}
tag_prefix: ''
Expand Down
14 changes: 7 additions & 7 deletions .metadata
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
# This file should be version controlled and should not be manually edited.

version:
revision: 796c8ef79279f9c774545b3771238c3098dbefab
channel: stable
revision: "a14f74ff3a1cbd521163c5f03d68113d50af93d3"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: web
create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3

# User provided section

Expand Down
Binary file added assets/images/pix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/testainers-250-transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/testainers-250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/testainers-500-transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions lib/button_widget.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher_string.dart';

///
///
///
class ButtonWidget extends StatelessWidget {
final String label;
final String iconName;
final String? url;

///
///
///
const ButtonWidget({
required this.label,
required this.iconName,
this.url,
super.key,
});

///
///
///
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(8),
child: ElevatedButton(
onPressed: url == null ? null : () => launchUrlString(url!),
child: Row(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Image.asset('assets/icons/$iconName.png', height: 16),
const SizedBox(width: 8),
Text(label),
],
),
),
);
}
}
65 changes: 65 additions & 0 deletions lib/description_widget.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import 'package:flutter/material.dart';

///
///
///
class DescriptionWidget extends StatelessWidget {
final String? imageName;
final List<String> paragraphs;

///
///
///
const DescriptionWidget({
this.imageName,
this.paragraphs = const <String>[],
super.key,
});

///
///
///
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
Flexible(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
if (imageName != null)
Image.asset(
'assets/images/$imageName.png',
)
else
Container(),
],
),
),
Flexible(
child: Column(
children: <Widget>[
if (paragraphs.isNotEmpty)
...paragraphs.map(
(String paragraph) => Padding(
padding: const EdgeInsets.all(8),
child: Text(
paragraph,
textAlign: TextAlign.center,
style: Theme.of(context)
.textTheme
.bodySmall
?.copyWith(fontSize: 20),
),
),
)
else
Container(),
],
),
),
],
);
}
}
30 changes: 30 additions & 0 deletions lib/header_widget.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import 'package:flutter/material.dart';

///
///
///
class HeaderWidget extends StatelessWidget {
final String label;

///
///
///
const HeaderWidget(
this.label, {
super.key,
});

///
///
///
@override
Widget build(BuildContext context) {
return Text(
label,
style: Theme.of(context).textTheme.titleLarge?.copyWith(
fontSize: 50,
fontWeight: FontWeight.bold,
),
);
}
}
Loading

0 comments on commit a421171

Please sign in to comment.