Improve home page layout
This commit is contained in:
@@ -10,7 +10,7 @@ namespace WebApp.Models
|
||||
public static string Student = Icons.Material.Filled.Person;
|
||||
public static string TeamAssignment = Icons.Material.Filled.GroupAdd;
|
||||
public static string Events = Icons.Material.Filled.Dashboard;
|
||||
public static string Scheduler = Icons.Material.Filled.CalendarViewDay;
|
||||
public static string Scheduler = Icons.Material.Filled.CalendarMonth;
|
||||
public static string LevelOfEffortIcon(int? loe)
|
||||
{
|
||||
|
||||
@@ -110,5 +110,21 @@ namespace WebApp.Models
|
||||
return num + "th";
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetOrdinalSuperscript(int number)
|
||||
{
|
||||
var suffix = number switch
|
||||
{
|
||||
11 or 12 or 13 => "th",
|
||||
_ => (number % 10) switch
|
||||
{
|
||||
1 => "st",
|
||||
2 => "nd",
|
||||
3 => "rd",
|
||||
_ => "th"
|
||||
}
|
||||
};
|
||||
return $"{number}<sup>{suffix}</sup>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user