Skip to content

Commit

Permalink
move graphic intro from page into member graphic component
Browse files Browse the repository at this point in the history
  • Loading branch information
SortHvit committed Sep 9, 2024
1 parent d31d6a5 commit fce1a6b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 37 deletions.
41 changes: 39 additions & 2 deletions src/app/_components/OrganisationMembersGraphic.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"use client"
import { OrganisationMembersInfo } from "@/app/_components/OrganisationMemberInfo"
import { CircleDashed } from "lucide-react"
import { useEffect, useState } from "react"

/*
Expand Down Expand Up @@ -228,13 +230,48 @@ export function OrganisationMembersGraphic() {
})

return (
<div className="mt-5">
<figure className="relative mt-5">
<svg viewBox="0 0 170 170" xmlns="http://www.w3.org/2000/svg">
<circle fill="orange" cx="85" cy="85" r={memberRadius} />
{pgCircles}
{otCircles}
{hostCircles}
</svg>
</div>
<figcaption className="absolute bottom-0 opacity-90">
<OrganisationMembersInfo title="Infographics guide">
The graphics below contain our current organisation structure.
<ul>
<li>
<CircleDashed
size={20}
className="mr-1 inline-block text-green-700"
/>
Hosts
</li>
<li>
<CircleDashed
size={20}
className="mr-1 inline-block text-green-300"
/>
Operation team
</li>
<li>
<CircleDashed
size={20}
className="mr-1 inline-block text-red-500"
/>
Project group
</li>
<li>
<CircleDashed
size={20}
className="mr-1 inline-block text-orange-400"
/>
Project manager
</li>
</ul>
</OrganisationMembersInfo>
</figcaption>
</figure>
)
}
35 changes: 0 additions & 35 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { OrganisationMembersInfo } from "@/app/_components/OrganisationMemberInfo"
import { OrganisationMembersGraphic } from "@/app/_components/OrganisationMembersGraphic"
import { P } from "@/app/_components/Paragraph"
import { PhotoSlideCarousel } from "@/app/_components/PhotoSlideCarousel"
import { Page } from "@/components/shared/Page"
import { CircleDashed } from "lucide-react"
import { Metadata } from "next"
import Link from "next/link"

Expand Down Expand Up @@ -56,39 +54,6 @@ export default async function RecruitmentPage() {
, the student union at KTH, any profit Armada makes goes back to the
students, funding THS initiatives for a better student life.
</P>
<OrganisationMembersInfo title="Infographics guide">
The graphics below contain our current organisation structure.
<ul>
<li>
<CircleDashed
size={20}
className="mr-1 inline-block text-green-700"
/>
Hosts
</li>
<li>
<CircleDashed
size={20}
className="mr-1 inline-block text-green-300"
/>
Operation team
</li>
<li>
<CircleDashed
size={20}
className="mr-1 inline-block text-red-500"
/>
Project group
</li>
<li>
<CircleDashed
size={20}
className="mr-1 inline-block text-orange-400"
/>
Project manager
</li>
</ul>
</OrganisationMembersInfo>
<OrganisationMembersGraphic />
</Page.Boundary>
</Page.Background>
Expand Down

0 comments on commit fce1a6b

Please sign in to comment.