Skip to content

Commit

Permalink
Merge pull request #173 from sparcs-kaist/feat@refactoring-people-page
Browse files Browse the repository at this point in the history
Resolve #172, Refactoring people page
  • Loading branch information
sboh1214 authored Mar 29, 2024
2 parents 7d42261 + 4738034 commit 9e0c161
Show file tree
Hide file tree
Showing 14 changed files with 95 additions and 5 deletions.
Binary file added assets/fonts/NanumSquareB.otf
Binary file not shown.
Binary file added assets/fonts/NanumSquareEB.otf
Binary file not shown.
Binary file added assets/fonts/NanumSquareL.otf
Binary file not shown.
Binary file added assets/fonts/NanumSquareR.otf
Binary file not shown.
Binary file added assets/fonts/Raleway-Black.ttf
Binary file not shown.
Binary file added assets/fonts/Raleway-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/Raleway-ExtraBold.ttf
Binary file not shown.
Binary file added assets/fonts/Raleway-Light.ttf
Binary file not shown.
Binary file added assets/fonts/Raleway-Medium.ttf
Binary file not shown.
Binary file added assets/fonts/Raleway-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/Raleway-Thin.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions assets/icons/SPARCS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 68 additions & 5 deletions lib/pages/people_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,35 @@ class PeoplePage extends StatelessWidget {
'Developer',
];

const Map<String, dynamic> people_info = {
'yumyum': {
'name': '조유민',
},
'platypus': {
'name': '오승빈',
},
'star': {
'name': '문동우',
},
'lobe': {
'name': '정성엽',
},
'seungho': {
'name': '장승호',
},
'soongyu': {
'name': '권순규',
},
'edge': {
'name': '정재현',
},
};

const List<List<String>> people = [
['yumyum'],
['platypus'],
['yumyum'],
['platypus', 'star', 'lobe', 'seungho', 'soongyu'],
['platypus', 'star', 'lobe', 'seungho', 'soongyu', 'edge'],
];

return List.generate(
Expand All @@ -79,10 +103,49 @@ class PeoplePage extends StatelessWidget {
people[i].length,
(j) => Column(
children: [
const SizedBox(height: 4.0),
SvgPicture.asset(
'assets/people/${people[i][j]}.svg',
height: 24.0,
const SizedBox(
height: 4.0,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
SvgPicture.asset(
'assets/icons/SPARCS.svg',
height: 24.0,
),
const SizedBox(
width: 4,
),
Text(
people[i][j],
style: TextStyle(
color: Color(0xFFEBA12A),
fontSize: 15,
fontFamily: 'Raleway',
fontWeight: FontWeight.w800,
letterSpacing: 0.15,
leadingDistribution: TextLeadingDistribution.even,
),
),
const SizedBox(
width: 3,
),
Padding(
padding: const EdgeInsets.only(bottom: 2.0),
child: Text(
people_info[people[i][j]]['name'],
style: TextStyle(
color: Color(0xFFEBA12A).withOpacity(0.4),
fontFamily: 'NanumSquare',
fontSize: 9.5,
fontWeight: FontWeight.w800,
letterSpacing: 0.15,
leadingDistribution: TextLeadingDistribution.even,
),
),
),
],
)
],
),
Expand Down
26 changes: 26 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,32 @@ flutter:
weight: 700
- asset: assets/fonts/NotoSansKR-Black.otf
weight: 900
- family: Raleway
fonts:
- asset: assets/fonts/Raleway-Thin.ttf
weight: 100
- asset: assets/fonts/Raleway-Light.ttf
weight: 300
- asset: assets/fonts/Raleway-Regular.ttf
weight: 400
- asset: assets/fonts/Raleway-Medium.ttf
weight: 500
- asset: assets/fonts/Raleway-Bold.ttf
weight: 700
- asset: assets/fonts/Raleway-ExtraBold.ttf
weight: 800
- asset: assets/fonts/Raleway-Black.ttf
weight: 900
- family: NanumSquare
fonts:
- asset: assets/fonts/NanumSquareL.otf
weight: 300
- asset: assets/fonts/NanumSquareR.otf
weight: 400
- asset: assets/fonts/NanumSquareB.otf
weight: 700
- asset: assets/fonts/NanumSquareEB.otf
weight: 800

# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages

0 comments on commit 9e0c161

Please sign in to comment.