From b113c83a82d05bd63773406b6bf84b65427c93e7 Mon Sep 17 00:00:00 2001 From: Sebastian Rosengren Date: Sat, 27 Jan 2024 11:32:39 +0100 Subject: [PATCH] #51: Polished team page, link to team page --- Pages/Team.cshtml | 74 +++++++++++++++++++++++------------ Pages/_Layout.cshtml | 3 +- Pages/_Layout.cshtml.css | 1 - Pages/sthlm-2024/Index.cshtml | 3 ++ 4 files changed, 53 insertions(+), 28 deletions(-) diff --git a/Pages/Team.cshtml b/Pages/Team.cshtml index 0759172..0f5bfd0 100644 --- a/Pages/Team.cshtml +++ b/Pages/Team.cshtml @@ -1,63 +1,84 @@ @page @{ - var contentGbg = "Content Gbg"; - var contentSthlm = "Content Sthlm"; - var website = "Website"; - var tech = "Tech"; - var sponsors = "Sponsors"; - var finance = "Finance"; - var locationSthlm = "Location Sthlm"; - var locationGbg = "Location Gbg"; - var speakers = "Speakers"; + var boardMember = "board member"; + var PLGbg = "PL gbg"; + var sponsors = "sponsors"; + var website = "website"; + var PLSthlm = "PL sthlm"; + var content = "content"; + var chairman = "chairman"; + var volunteers = "volunteers"; + var boardAlternate = "board alternate"; + var nominatingCommittee = "nominating committee"; + var treasurer = "treasurer"; + var tech = "tech"; + var socialMedia = "social media"; + var speakers = "speakers"; + var party = "party"; var team = new (string name, string image, string linkedIn, string twitter, IEnumerable responsibilities)[] { ("Cecilia Wirén", "C4E03AQHfFAuaaeA2QA/profile-displayphoto-shrink_200_200/0/1555274870054?e=1707350400&v=beta&t=OWqq5wtVHdEcOoKExSRFNjoDzOvNz1gMJI19qn2VFLo", -"ceciliasharp", "CeciliaSHARP", new string[]{contentSthlm, website}), +"ceciliasharp", "CeciliaSHARP", new string[]{boardMember, PLGbg, sponsors, website}), ("Fabian Miiro", "C5603AQHGVJxdAf6zVA/profile-displayphoto-shrink_200_200/0/1517477264128?e=1707350400&v=beta&t=7QjyZBE_rUtTxdAMfNo-8WM8LgPjxwZuWxtWYQw6NuA", -"iloabn", "iloabn", new string[]{}), +"iloabn", "iloabn", new string[]{treasurer, tech}), ("Andrea Klintelius", "D4D35AQHMDiSzBx2-Mw/profile-framedphoto-shrink_200_200/0/1700741498408?e=1706299200&v=beta&t=7UKtZhLTq-BLByL850WWmNIBpdLckbC2iqdYfbqfHJ8", -"andrea-klintelius-22445b9", "drea1112", new string[]{}), +"andrea-klintelius-22445b9", "drea1112", new string[]{boardMember, volunteers}), ("Mattias Karlsson", "C5603AQHhVQaGxs4YTw/profile-displayphoto-shrink_200_200/0/1521304813735?e=1707350400&v=beta&t=MyjX6uF1AqJmC6Wk-6EGe5I7NoQzdZH8NW86HVE1eUU", "devlead", "devlead", new string[]{}), +("Ulrika Bladh", +"D4D03AQGqVbsfjtzISw/profile-displayphoto-shrink_200_200/0/1694293026391?e=1711584000&v=beta&t=9iT3fV8Ew7Tmzu8o5NgAtDnf_Hx9jC68DySMuA_JVOw", +"ulrika-bladh", "devlead", new string[]{nominatingCommittee}), +("Anders Ljusberg", +"D4D03AQE5oa_d8Tq6ZQ/profile-displayphoto-shrink_200_200/0/1678289367667?e=1711584000&v=beta&t=nz6BHxd23Z3Ee6qz8jJuujusKtGKffq9WQxqV4DFwZ8", +"ljusberg", "CodingInsomnia", new string[]{nominatingCommittee}), ("Jimmy Engström", "C5603AQFS4gsPsmgZzQ/profile-displayphoto-shrink_200_200/0/1520864864081?e=1707350400&v=beta&t=ENHPa92wxpXly7r_9hfVkQPvubEA31Wldzd1RXtbQvk", -"engstromjimmy", "EngstromJimmy", new string[]{}), +"engstromjimmy", "EngstromJimmy", new string[]{content, party}), +("Jessica Engström", +"D4D03AQE68gwKZPzzWg/profile-displayphoto-shrink_200_200/0/1688657824075?e=1711584000&v=beta&t=1JkuX02JmG_7wgJJ-iGqxX7bIJ7ZTIOcwpsGypwpmXU", +"engstromjess", "grytlappen", new string[]{boardMember, PLSthlm, content, party}), ("Rickard öh", "C4E03AQEQ7GAd3varvg/profile-displayphoto-shrink_200_200/0/1566821273761?e=1707350400&v=beta&t=_vO3syWTFPcX8mZHCXMRD-TLqdcT8VvlcOGcADhZuzY", -"rickardoh", "kalasp", new string[]{}), +"rickardoh", "kalasp", new string[]{content}), ("Sebastian Rosengren", "C5603AQH6ykyqTec9uQ/profile-displayphoto-shrink_200_200/0/1584707294273?e=1707350400&v=beta&t=7MeXlOTqBSh64-W-S5bpd3cpQz2tWiJ1cWmsRpKf56Q", "srosengren", "srrosengren", new string[]{website}), ("Magnus Timner", "D4D03AQFIWGmzkDDjuA/profile-displayphoto-shrink_200_200/0/1700720800042?e=1707350400&v=beta&t=io34xfOLXjmSr5AQg5TJzbvpIGInz7tSPmDHU4eKDmE", -"magnustimner", "MTimner", new string[]{}), +"magnustimner", "MTimner", new string[]{speakers}), ("Mattias Lögdberg", "D4D03AQH2wwzOmXO8OA/profile-displayphoto-shrink_200_200/0/1686999949960?e=1707350400&v=beta&t=4rjIw2PHku6cvxmseqRrb9TMJriesXtRwRsBYf-KTEw", -"logdberg", "mlogdberg", new string[]{}), +"logdberg", "mlogdberg", new string[]{content}), ("Viktor Karlström", "C4D03AQFZzzP3cDZQ_Q/profile-displayphoto-shrink_200_200/0/1652276243149?e=1707350400&v=beta&t=XpPJdDirE0AI2TMeSmyn3pwD32zPtiG3qpDVwFqLGtM", -"viktor-karlstrom", "karlstroems", new string[]{}), +"viktor-karlstrom", "karlstroems", new string[]{socialMedia}), ("Johan Normén", "C4D03AQERLMj6sDykmA/profile-displayphoto-shrink_200_200/0/1517366286122?e=1707350400&v=beta&t=q9-QRnOUIPGfFLnqY-kEndWg62o_9o8puP3chCgy7Ds", -"johannormen", "Johannormen", new string[]{}), +"johannormen", "Johannormen", new string[]{boardAlternate}), ("Jim Elfving", "C4E03AQF-9z1qe75Y7g/profile-displayphoto-shrink_200_200/0/1642364527126?e=1707350400&v=beta&t=V1sOve08hJ_k2yx-tPjUy-DWmUaoLQ9lqkGWJl5VOJg", -"jim-elfving-9b545842", "jim_elfving", new string[]{}), +"jim-elfving-9b545842", "jim_elfving", new string[]{tech}), +("Sigge Sax", +"C5603AQELD_16lLEmog/profile-displayphoto-shrink_200_200/0/1567428294038?e=1711584000&v=beta&t=5s4rgC8CYw2pwnKJW_YtUc-uDdtZHEdT_wuW1rdmWMg", +"sigge-sax-187ab0128", "SiggeSax", new string[]{chairman}), ("Mathias Olausson", "C4E03AQFxNzzu3HSbpw/profile-displayphoto-shrink_200_200/0/1516291006595?e=1707350400&v=beta&t=eVJa50oGdGiqGXNtqys27jmb2dEJv8jBHcaiFDaoSCM", -"mathiasolausson", "molausson", new string[]{}), +"mathiasolausson", "molausson", new string[]{speakers, content}), ("Manuel Ericstam", "D5603AQGwU4vfk7RzKw/profile-displayphoto-shrink_200_200/0/1673989706454?e=1707350400&v=beta&t=uyXdErpQrRD0Q73Xeb0H7jfQsiw6XQQm6TfbL_rrbGw", -"manuel-ericstam", "EricstamManuel", new string[]{}), +"manuel-ericstam", "EricstamManuel", new string[]{tech, content}), +("Eric Johansson", +"D4E03AQF3X6Xp-FdCuA/profile-displayphoto-shrink_200_200/0/1692287404519?e=1711584000&v=beta&t=X9bj-1xtuEBrRCgwpm6x1lfqm6jzixsphCusdFoqcrA", +"eric-r-johansson", "ericjohansson", new string[]{website, content, party}), ("Abdirahman Farah", "C5603AQHis_BaY1MvCg/profile-displayphoto-shrink_200_200/0/1583769838019?e=1707350400&v=beta&t=gLaQ5658G2Ahy65kEODjqIMre-Ho8I7lTTVMwjljdhU", -"abdirahman-farah-5b405b87", "", new string[]{}) - }.OrderBy(member => member.name); +"abdirahman-farah-5b405b87", "", new string[]{sponsors}) + }.OrderBy(member => member.name.Split(' ').Last()); }
@@ -70,7 +91,8 @@ The profile photo of @member.name

@member.name

-

@String.Join(", ", member.responsibilities.OrderBy(x => x))

+

@(member.responsibilities.Any() ? String.Join(", ", + member.responsibilities.OrderBy(x => x)) : "member")