Skip to content

Commit

Permalink
spaces adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmzdev committed Sep 17, 2024
1 parent 26844e4 commit a1e6599
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/pages/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class Home extends StatelessComponent {
css('.home-body')
.box(
width: 100.vw,
padding: EdgeInsets.symmetric(horizontal: 50.px),
)
.background(
color: Colors.black,
Expand Down
7 changes: 4 additions & 3 deletions lib/sections/about_me.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class AboutMeSection extends StatelessComponent {
)
.box(
padding: EdgeInsets.only(top: 5.vh),
width: 100.percent,
),
css('.play-icon').text(color: primaryColor),
css('.title').text(
Expand All @@ -169,12 +170,12 @@ class AboutMeSection extends StatelessComponent {
css('.section-body')
.flexbox(
direction: FlexDirection.row,
alignItems: AlignItems.center,
justifyContent: JustifyContent.center,
// alignItems: AlignItems.center,
// justifyContent: JustifyContent.center,
)
.box(
margin: EdgeInsets.only(top: 50.px),
width: 100.percent,
// width: 100.percent,
),
css('.profile-picture')
.background(
Expand Down
49 changes: 47 additions & 2 deletions lib/sections/basic_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,33 @@ class BasicInfoSection extends StatelessComponent {

@override
Iterable<Component> build(BuildContext context) sync* {
final List<Map<String, dynamic>> socials = [
{
'icon': 'fa-brands fa-square-facebook',
'url': 'https://www.facebook.com/mhmzdev',
},
{
'icon': 'fa-brands fa-linkedin',
'url': 'https://www.linkedin.com/in/mhmzdev/',
},
{
'icon': 'fa-brands fa-github',
'url': 'https://github.com/mhmzdev',
},
{
'icon': 'fa-brands fa-x-twitter',
'url': 'https://twitter.com/mhmzdev',
},
{
'icon': 'fa-brands fa-instagram',
'url': 'https://www.instagram.com/mhmzdev/',
},
{
'icon': 'fa-brands fa-medium',
'url': 'https://mhmzdev.medium.com',
},
];

yield section(classes: 'info-section', [
div(classes: 'info', [
div(classes: 'welcome', [
Expand All @@ -27,7 +54,15 @@ class BasicInfoSection extends StatelessComponent {
text('Flutter Enthusiast'),
])
]),
div(classes: 'socials', []),
div(classes: 'socials', [
for (final social in socials)
a(
classes: 'social-icon',
href: social['url'],
target: Target.blank,
[i(classes: social['icon'], [])],
),
]),
]),
div(classes: 'main-image', []),
]);
Expand Down Expand Up @@ -86,8 +121,18 @@ class BasicInfoSection extends StatelessComponent {
.flexbox(
direction: FlexDirection.row,
alignItems: AlignItems.center,
justifyContent: JustifyContent.spaceBetween,
),
css('.social-icon')
.text(
fontSize: 25.px,
color: Colors.white,
)
.box(
padding: EdgeInsets.only(right: 25.px),
),
css('.social-icon:hover').text(
color: primaryColor,
),

/// MEDIA QUERY 1100px
css.media(MediaQuery.screen(maxWidth: 1100.px), [
Expand Down
1 change: 1 addition & 0 deletions lib/sections/services.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class ServicesSection extends StatelessComponent {
)
.box(
margin: EdgeInsets.only(top: 50.px),
width: 100.percent,
),
];
}

0 comments on commit a1e6599

Please sign in to comment.