Skip to content

Commit

Permalink
Portfolio updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexitoSnow committed Feb 7, 2024
1 parent c427936 commit 117b96f
Show file tree
Hide file tree
Showing 63 changed files with 1,014 additions and 1,629 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/launch_web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Launch Web

on:
push:
branches: [ main ]
paths:
- 'snow_portfolio/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.8"
channel: "stable"
- run: flutter pub get
working-directory: snow_portfolio
- run: flutter build web --web-renderer canvaskit --release
working-directory: snow_portfolio
- run: mkdir docs
- run: cp -r snow_portfolio/build/web/* docs # Comando para copiar el contenido de build/web a docs
- run: cp snow_portfolio/assets/google51501707e62fe96b.html docs/google51501707e62fe96b.html
- run: flutter clean
working-directory: snow_portfolio
- run: git add .
- run: git config user.name AlexitoSnow # Comando para configurar el nombre de usuario de git
- run: git config user.email [email protected] # Comando para configurar el email de usuario de git
- run: git commit -m "Deploy web to GitHub Pages" # Comando para hacer un commit con un mensaje
- run: git push origin main
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
1 change: 1 addition & 0 deletions snow_portfolio/assets/google51501707e62fe96b.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-site-verification: google51501707e62fe96b.html
Binary file added snow_portfolio/assets/images/perfil.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions snow_portfolio/devtools_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extensions:
20 changes: 0 additions & 20 deletions snow_portfolio/i18n/en/extracurricular.json

This file was deleted.

35 changes: 0 additions & 35 deletions snow_portfolio/i18n/en/skills.json

This file was deleted.

6 changes: 2 additions & 4 deletions snow_portfolio/i18n/en/tabs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"about": "About",
"skills": "Skills",
"projects": "Projects",
"extracurricular": "Extracurricular",
"volunteering": "Volunteering"
"technologies": "Technologies",
"projects": "Projects"
}
6 changes: 6 additions & 0 deletions snow_portfolio/i18n/en/technologies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"languages": "Languages",
"frameworks": "Frameworks",
"databases": "Data Bases",
"tools": "Tools"
}
26 changes: 0 additions & 26 deletions snow_portfolio/i18n/en/volunteering.json

This file was deleted.

20 changes: 0 additions & 20 deletions snow_portfolio/i18n/es/extracurricular.json

This file was deleted.

35 changes: 0 additions & 35 deletions snow_portfolio/i18n/es/skills.json

This file was deleted.

6 changes: 2 additions & 4 deletions snow_portfolio/i18n/es/tabs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"about": "Sobre mí",
"skills": "Habilidades",
"projects": "Proyectos",
"extracurricular": "Extracurriculares",
"volunteering": "Voluntariado"
"technologies": "Tecnologías",
"projects": "Proyectos"
}
6 changes: 6 additions & 0 deletions snow_portfolio/i18n/es/technologies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"languages": "Lenguajes",
"frameworks": "Marcos de Trabajo",
"databases": "Bases de Datos",
"tools": "Herramientas"
}
26 changes: 0 additions & 26 deletions snow_portfolio/i18n/es/volunteering.json

This file was deleted.

1 change: 0 additions & 1 deletion snow_portfolio/lib/config/config.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export 'routes/app_pages.dart';

export 'utils/bindings_builders.dart';
export 'utils/constants.dart';
export 'utils/extensions.dart';

Expand Down
35 changes: 27 additions & 8 deletions snow_portfolio/lib/config/routes/app_pages.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:get/get.dart';
import 'package:go_router/go_router.dart';
import 'package:snow_portfolio/presentation/screens/screens.dart';
// ignore_for_file: constant_identifier_names

Expand All @@ -7,12 +7,31 @@ part 'app_routes.dart';
class AppPages {
AppPages._();

static const INITIAL = Routes.HOME;
static const INITIAL = Routes.ABOUT;

static final routes = [
GetPage(
name: _Paths.HOME,
page: () => const HomeView(),
),
];
static final router = GoRouter(
initialLocation: INITIAL,
routes: [
ShellRoute(
routes: [
GoRoute(
path: Routes.ABOUT,
name: Routes.ABOUT,
builder: (_, __) => const AboutMeView(),
),
GoRoute(
path: Routes.TECHNOLOGIES,
name: Routes.TECHNOLOGIES,
builder: (_, __) => TechnologiesView(),
),
GoRoute(
path: Routes.PROJECTS,
name: Routes.PROJECTS,
builder: (_, __) => const ProjectsView(),
),
],
builder: (_, __, child) => HomeView(page: child),
),
],
);
}
12 changes: 4 additions & 8 deletions snow_portfolio/lib/config/routes/app_routes.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
// ignore_for_file: constant_identifier_names

part of 'app_pages.dart';
// DO NOT EDIT. This is code generated via package:get_cli/get_cli.dart

abstract class Routes {
Routes._();
static const HOME = _Paths.HOME;
}

abstract class _Paths {
_Paths._();
static const HOME = '/';
static const HOME = '/alexander-nieves/';
static const ABOUT = '${HOME}about';
static const TECHNOLOGIES = '${HOME}technologies';
static const PROJECTS = '${HOME}projects';
}
21 changes: 0 additions & 21 deletions snow_portfolio/lib/config/utils/bindings_builders.dart

This file was deleted.

15 changes: 15 additions & 0 deletions snow_portfolio/lib/config/utils/extensions.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

extension WidgetExtensions on Widget {

Widget center() {
return Center(
child: this,
);
}

Widget paddingAll(double padding) {
return Padding(
padding: EdgeInsets.all(padding),
Expand Down Expand Up @@ -68,4 +76,11 @@ extension WidgetExtensions on Widget {
child: this,
);
}
}

extension EasyContext on BuildContext {
Size get mediaQuerySize => MediaQuery.of(this).size;
double get height => mediaQuerySize.height;
double get width => mediaQuerySize.width;
ThemeData get theme => Theme.of(this);
}
8 changes: 3 additions & 5 deletions snow_portfolio/lib/config/widgets/activity_list.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:snow_portfolio/config/config.dart';
import 'package:snow_portfolio/domain/models/activity_model.dart';
import 'package:snow_portfolio/config/utils/constants.dart';

class ActivityList extends GetView {
class ActivityList extends StatelessWidget {
final List<Activity> activities;
const ActivityList(
this.activities, {
Expand All @@ -13,9 +12,8 @@ class ActivityList extends GetView {
@override
Widget build(BuildContext context) {
isPhone = context.width <= 800;
textScaleFactor = context.textScaleFactor;
return SizedBox(
height: Get.height,
height: context.height,
child: ListView(
children: List.generate(
activities.length,
Expand Down
Loading

0 comments on commit 117b96f

Please sign in to comment.