Skip to content

Commit

Permalink
fa library added
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmzdev committed Sep 17, 2024
1 parent b83c4f7 commit 26844e4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
7 changes: 7 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ void main() {
// with the provided parameters and components.
runApp(Document(
title: 'Hamza',
head: <Component>[
link(
href:
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css',
rel: 'stylesheet',
),
],
styles: [
// Special import rule to include to another css file.
css.import('https://fonts.googleapis.com/css?family=Montserrat'),
Expand Down
1 change: 1 addition & 0 deletions lib/pages/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Home extends StatelessComponent {
css('.home-body')
.box(
width: 100.vw,
padding: EdgeInsets.symmetric(horizontal: 50.px),
)
.background(
color: Colors.black,
Expand Down
5 changes: 3 additions & 2 deletions lib/sections/about_me.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class AboutMeSection extends StatelessComponent {
div(classes: 'tech-stack', [
for (final t in tech)
span([
img(src: StaticAssets.playIcon, height: 10),
i(classes: 'fa-solid fa-play play-icon', []),
span(classes: 'tech-item', [
text(t),
]),
Expand Down Expand Up @@ -158,8 +158,9 @@ class AboutMeSection extends StatelessComponent {
justifyContent: JustifyContent.start,
)
.box(
padding: EdgeInsets.only(top: 5.vh, right: 5.vw),
padding: EdgeInsets.only(top: 5.vh),
),
css('.play-icon').text(color: primaryColor),
css('.title').text(
fontFamily: FontFamily('Montserrat'),
fontWeight: FontWeight.w100,
Expand Down
4 changes: 3 additions & 1 deletion lib/sections/basic_info.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:devfolio/constants/theme.dart';
import 'package:devfolio/utils/assets.dart';
import 'package:jaspr/jaspr.dart';

Expand All @@ -21,7 +22,7 @@ class BasicInfoSection extends StatelessComponent {
h1(classes: 'first-name', [text('Muhammad')]),
h1(classes: 'last-name', [text('Hamza')]),
span(classes: 'subtitle', [
img(classes: 'play-icon', src: StaticAssets.playIcon, height: 20),
i(classes: 'fa-solid fa-play play-icon', []),
span(classes: 'dynamic-subtitles', [
text('Flutter Enthusiast'),
])
Expand Down Expand Up @@ -72,6 +73,7 @@ class BasicInfoSection extends StatelessComponent {
image: ImageStyle.url(StaticAssets.bwImage),
size: BackgroundSize.cover,
),
css('.play-icon').text(color: primaryColor),
css('.subtitle')
.flexbox(direction: FlexDirection.row, alignItems: AlignItems.center),
css('.dynamic-subtitles')
Expand Down
3 changes: 1 addition & 2 deletions lib/sections/services.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ServicesSection extends StatelessComponent {
justifyContent: JustifyContent.start,
)
.box(
padding: EdgeInsets.only(top: 5.vh, right: 5.vw),
padding: EdgeInsets.symmetric(vertical: 5.vh),
),
css('.title').text(
fontFamily: FontFamily('Montserrat'),
Expand All @@ -72,7 +72,6 @@ class ServicesSection extends StatelessComponent {
)
.box(
margin: EdgeInsets.only(top: 50.px),
width: 100.percent,
),
];
}
1 change: 0 additions & 1 deletion web/icons/play-solid.svg

This file was deleted.

0 comments on commit 26844e4

Please sign in to comment.