-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
798d3aa
commit ac9e4b1
Showing
21 changed files
with
316 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
I recently graduated in _**Computer Engineering**_, where I discovered my passion for _**Programming**_ and _**Artificial Intelligence**_. I am looking for opportunities to deepen my knowledge of these topics and apply it to real-world applications. In my free time, you will find me with my friends, doing sports or playing video games. | ||
|
||
If you are interested in my work, I invite you to check my [resume](/cv), my [projects](/projects), or the [research](/research) I have done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
I recently graduated in _**Computer Engineering**_, where I discovered my passion for _**Programming**_ and _**Artificial Intelligence**_. I am looking for opportunities to deepen my knowledge of these topics and apply it to real-world applications. In my free time, you will find me with my friends, doing sports or playing video games. | ||
|
||
If you are interested in my work, I invite you to check my [resume](/cv), my [projects](/projects), or the [research](/research) I have done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const aboutMe = 'about_me.md'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,119 @@ | ||
import 'dart:math'; | ||
|
||
import 'package:auto_route/auto_route.dart'; | ||
import 'package:flutter/gestures.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../data/home_data.dart'; | ||
import '../theme/window_class.dart'; | ||
import '../widgets/markdown_content.dart'; | ||
import '../widgets/page_scaffold.dart'; | ||
|
||
@RoutePage() | ||
class HomePage extends StatelessWidget { | ||
const HomePage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) => const PageScaffold( | ||
title: 'Home | Alejandro Fernández Alburquerque', | ||
socialMediaRail: true, | ||
slivers: [ | ||
SliverToBoxAdapter(child: HeroSection()), | ||
], | ||
); | ||
} | ||
|
||
class HeroSection extends StatelessWidget { | ||
const HeroSection({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final colorScheme = Theme.of(context).colorScheme; | ||
final textTheme = Theme.of(context).textTheme; | ||
|
||
return Container( | ||
decoration: BoxDecoration( | ||
gradient: LinearGradient( | ||
begin: Alignment.topCenter, | ||
end: Alignment.bottomCenter, | ||
colors: [Colors.transparent, colorScheme.primary.withOpacity(0.05)], | ||
), | ||
), | ||
padding: EdgeInsets.symmetric(horizontal: _getPadding(context)), | ||
child: WindowClass.of(context) >= WindowClass.large | ||
? const Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: [ | ||
Flexible(flex: 10, child: _Greeting()), | ||
SizedBox(width: 20), | ||
Flexible(flex: 10, child: _Portrait()), | ||
], | ||
) | ||
: const Column( | ||
children: [ | ||
_Greeting(), | ||
_Portrait(), | ||
], | ||
), | ||
); | ||
} | ||
|
||
static double _getPadding(BuildContext context) { | ||
final screenWidth = MediaQuery.of(context).size.width; | ||
return switch (WindowClass.of(context)) { | ||
WindowClass.compact => 30, | ||
WindowClass.medium => 50, | ||
WindowClass.expanded => 100, | ||
_ => max(100, (screenWidth - WindowClass.expanded.minDP) / 5), | ||
}; | ||
} | ||
} | ||
|
||
return PageScaffold( | ||
title: 'Home | Alejandro Fernández Alburquerque', | ||
socialMediaRail: true, | ||
slivers: [ | ||
SliverFillRemaining( | ||
hasScrollBody: true, | ||
child: Padding( | ||
padding: EdgeInsets.all(screenWidth * 0.1), | ||
child: Center( | ||
child: RichText( | ||
textAlign: TextAlign.center, | ||
text: TextSpan( | ||
style: textTheme.displaySmall, | ||
children: [ | ||
const TextSpan( | ||
text: 'Work in progress. Take a look at my ', | ||
), | ||
TextSpan( | ||
text: 'Curriculum Vitae', | ||
style: TextStyle( | ||
color: colorScheme.secondary, | ||
decoration: TextDecoration.underline, | ||
decorationColor: colorScheme.secondary, | ||
), | ||
recognizer: TapGestureRecognizer() | ||
..onTap = () async => context.navigateNamedTo('/cv'), | ||
), | ||
const TextSpan( | ||
text: ' in the meantime.', | ||
), | ||
], | ||
), | ||
class _Portrait extends StatelessWidget { | ||
const _Portrait(); | ||
|
||
@override | ||
Widget build(BuildContext context) => Padding( | ||
padding: const EdgeInsets.only(top: 50), | ||
child: Image.asset('assets/images/portrait.png'), | ||
); | ||
} | ||
|
||
class _Greeting extends StatelessWidget { | ||
const _Greeting(); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final textTheme = Theme.of(context).textTheme; | ||
final colorScheme = Theme.of(context).colorScheme; | ||
|
||
return Padding( | ||
padding: const EdgeInsets.only(top: 50, bottom: 10), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Text( | ||
'Hello, I’m ', | ||
style: textTheme.displayMedium, | ||
), | ||
Text( | ||
'Alejandro Fernández', | ||
style: textTheme.displayLarge?.copyWith( | ||
fontWeight: FontWeight.bold, | ||
color: colorScheme.primary, | ||
), | ||
), | ||
const SizedBox(height: 20), | ||
MarkdownContent( | ||
file: aboutMe, | ||
styleSheet: MarkdownTheme.of(context).copyWith( | ||
p: textTheme.titleLarge?.copyWith( | ||
fontFamily: textTheme.bodyLarge?.fontFamily, | ||
height: 1.5, | ||
), | ||
), | ||
), | ||
), | ||
], | ||
], | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.