Skip to content

Commit

Permalink
Some css fixes
Browse files Browse the repository at this point in the history
fixed social media links are opening in the same page.
fixed speaker's social media is showing with empty link
  • Loading branch information
Farahkh committed Oct 21, 2023
1 parent 03912ab commit 5f1e836
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
23 changes: 16 additions & 7 deletions lib/layout/page_frame.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,43 +125,52 @@ class _PageFrameState extends State<PageFrame> {
classes: ['social-icon'],
src: '/images/Linkedin.svg',
)
], href: 'https://www.linkedin.com/company/flutteristas/'),
],
target: Target.blank,
href: 'https://www.linkedin.com/company/flutteristas/'),
a([
img(
classes: ['social-icon'],
src: '/images/x-logo.svg',
)
], href: 'https://twitter.com/flutteristas'),
], target: Target.blank, href: 'https://twitter.com/flutteristas'),
a([
img(
classes: ['social-icon'],
src: '/images/Mastodon.svg',
)
], href: 'https://fluttercommunity.social/@Flutteristas'),
],
target: Target.blank,
href: 'https://fluttercommunity.social/@Flutteristas'),
a([
img(
classes: ['social-icon'],
src: '/images/instagram.svg',
)
], href: 'https://www.instagram.com/flutteristas/'),
],
target: Target.blank,
href: 'https://www.instagram.com/flutteristas/'),
a([
img(
classes: ['social-icon'],
src: '/images/youtube.svg',
)
], href: 'https://www.youtube.com/@Flutteristas'),
], target: Target.blank, href: 'https://www.youtube.com/@Flutteristas'),
a([
img(
classes: ['social-icon'],
src: '/images/github-color-svgrepo-com.svg',
)
], href: 'https://github.com/TheFlutteristas'),
], target: Target.blank, href: 'https://github.com/TheFlutteristas'),
a([
img(
classes: ['social-icon'],
src: '/images/facebook-svgrepo-com.svg',
)
], href: 'https://www.facebook.com/people/Flutteristas/61552442970613/')
],
target: Target.blank,
href:
'https://www.facebook.com/people/Flutteristas/61552442970613/')
])
]);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/flutteristas_conference.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class FlutteristasConferencePage extends StatelessComponent {
'speakers-container'
], [
SpeakersList(
projectId: 'flutteristas-website-dev-default-rtdb',
projectId: 'flutteristas-website-ffa6d-default-rtdb',
)
])
]);
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/speakers_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ class _SpeakersState extends State<SpeakersList> {
}

Component social_icon(MapEntry<dynamic, dynamic> item) {
if (item.value != null) {
if (item.value == '') {
return span(classes: ['empty-span'], []);
} else {
switch (item.key as String) {
case 'x':
return a(
Expand Down Expand Up @@ -114,8 +116,6 @@ class _SpeakersState extends State<SpeakersList> {
default:
return span([]);
}
} else {
throw Exception('no social value found');
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions web/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,10 @@ div #welcome-items {
fill: #000;
}

.social-bar .empty-span{
display:none;
}

.SpeakerItem .speaker-bio {
width: 250px;
background-color: #F2DAFF;
Expand Down

0 comments on commit 5f1e836

Please sign in to comment.