Skip to content

Commit a1e6599

Browse files
committed
spaces adjustments
1 parent 26844e4 commit a1e6599

File tree

4 files changed

+52
-6
lines changed

4 files changed

+52
-6
lines changed

lib/pages/home.dart

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class Home extends StatelessComponent {
2222
css('.home-body')
2323
.box(
2424
width: 100.vw,
25-
padding: EdgeInsets.symmetric(horizontal: 50.px),
2625
)
2726
.background(
2827
color: Colors.black,

lib/sections/about_me.dart

+4-3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ class AboutMeSection extends StatelessComponent {
159159
)
160160
.box(
161161
padding: EdgeInsets.only(top: 5.vh),
162+
width: 100.percent,
162163
),
163164
css('.play-icon').text(color: primaryColor),
164165
css('.title').text(
@@ -169,12 +170,12 @@ class AboutMeSection extends StatelessComponent {
169170
css('.section-body')
170171
.flexbox(
171172
direction: FlexDirection.row,
172-
alignItems: AlignItems.center,
173-
justifyContent: JustifyContent.center,
173+
// alignItems: AlignItems.center,
174+
// justifyContent: JustifyContent.center,
174175
)
175176
.box(
176177
margin: EdgeInsets.only(top: 50.px),
177-
width: 100.percent,
178+
// width: 100.percent,
178179
),
179180
css('.profile-picture')
180181
.background(

lib/sections/basic_info.dart

+47-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,33 @@ class BasicInfoSection extends StatelessComponent {
77

88
@override
99
Iterable<Component> build(BuildContext context) sync* {
10+
final List<Map<String, dynamic>> socials = [
11+
{
12+
'icon': 'fa-brands fa-square-facebook',
13+
'url': 'https://www.facebook.com/mhmzdev',
14+
},
15+
{
16+
'icon': 'fa-brands fa-linkedin',
17+
'url': 'https://www.linkedin.com/in/mhmzdev/',
18+
},
19+
{
20+
'icon': 'fa-brands fa-github',
21+
'url': 'https://github.com/mhmzdev',
22+
},
23+
{
24+
'icon': 'fa-brands fa-x-twitter',
25+
'url': 'https://twitter.com/mhmzdev',
26+
},
27+
{
28+
'icon': 'fa-brands fa-instagram',
29+
'url': 'https://www.instagram.com/mhmzdev/',
30+
},
31+
{
32+
'icon': 'fa-brands fa-medium',
33+
'url': 'https://mhmzdev.medium.com',
34+
},
35+
];
36+
1037
yield section(classes: 'info-section', [
1138
div(classes: 'info', [
1239
div(classes: 'welcome', [
@@ -27,7 +54,15 @@ class BasicInfoSection extends StatelessComponent {
2754
text('Flutter Enthusiast'),
2855
])
2956
]),
30-
div(classes: 'socials', []),
57+
div(classes: 'socials', [
58+
for (final social in socials)
59+
a(
60+
classes: 'social-icon',
61+
href: social['url'],
62+
target: Target.blank,
63+
[i(classes: social['icon'], [])],
64+
),
65+
]),
3166
]),
3267
div(classes: 'main-image', []),
3368
]);
@@ -86,8 +121,18 @@ class BasicInfoSection extends StatelessComponent {
86121
.flexbox(
87122
direction: FlexDirection.row,
88123
alignItems: AlignItems.center,
89-
justifyContent: JustifyContent.spaceBetween,
90124
),
125+
css('.social-icon')
126+
.text(
127+
fontSize: 25.px,
128+
color: Colors.white,
129+
)
130+
.box(
131+
padding: EdgeInsets.only(right: 25.px),
132+
),
133+
css('.social-icon:hover').text(
134+
color: primaryColor,
135+
),
91136

92137
/// MEDIA QUERY 1100px
93138
css.media(MediaQuery.screen(maxWidth: 1100.px), [

lib/sections/services.dart

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class ServicesSection extends StatelessComponent {
7272
)
7373
.box(
7474
margin: EdgeInsets.only(top: 50.px),
75+
width: 100.percent,
7576
),
7677
];
7778
}

0 commit comments

Comments
 (0)