diff --git a/public/favicon.svg b/public/favicon.svg index 8c87d61..9e6366f 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1,9 +1,17 @@ - - - - - - - - + + Hauser Group — Sevenfold with outlined ligand + + + + + + + + + + + + + + diff --git a/public/gpcr-particles.js b/public/gpcr-particles.js index c85510b..082fad9 100644 --- a/public/gpcr-particles.js +++ b/public/gpcr-particles.js @@ -64,7 +64,7 @@ export function initParticleHero(hero) { for (var i = b.p.length / 7; i < N; i++) { var d = sph(), r = 0.9 + R() * 1.1; - b.add(d[0] * r * 1.35, d[1] * r * 0.9, d[2] * r, 4, 0.8, 0.26); + b.add(d[0] * r * 1.35, d[1] * r * 0.9, d[2] * r, 5, 0.8, 0.26); } var idx = new Uint32Array(N), k, @@ -127,7 +127,7 @@ export function initParticleHero(hero) { p[0] + j(0.03), p[1] + j(0.03), p[2] + j(0.03), - k ? 0 : 1, + k ? 0 : 3, 1.4, 0.95, ); @@ -146,7 +146,7 @@ export function initParticleHero(hero) { p[0] + (q[0] - p[0]) * u, p[1] + (q[1] - p[1]) * u, p[2] + (q[2] - p[2]) * u, - 2, + 1, 2, 1, ); @@ -272,7 +272,7 @@ export function initParticleHero(hero) { 0.03 * sin(x * 3) * cos(z * 2.5) + j(0.024), z, - 4, + 5, 1, 0.5, ); @@ -431,7 +431,7 @@ export function initParticleHero(hero) { A.forEach(function (a) { var het = a[2] !== "C", rad = het ? 0.07 : 0.05, - tone = a[2] === "O" ? 2 : a[2] === "N" ? 0 : 3; + tone = a[2] === "O" ? 1 : a[2] === "N" ? 0 : 3; for (k = per; k--;) { var d = sph(), q = rad * Math.pow(R(), 0.3); @@ -556,7 +556,7 @@ export function initParticleHero(hero) { var LV = 8, col = [], - labelCol = "#17171a", + labelCol = "#1d1d1d", labelFont = '"IBM Plex Mono",ui-monospace,monospace'; var solid = true; function hex(value) { @@ -568,17 +568,23 @@ export function initParticleHero(hero) { } function readColors() { const style = getComputedStyle(hero); - const tokens = ["--green", "--yellow", "--red", "--blue", "--ink-2"]; - const fallback = ["#178553", "#f6c51b", "#d92d1c", "#1e4fc2", "#6a6a70"]; - tokens.forEach(function (token, tone) { - const rgb = hex(style.getPropertyValue(token) || fallback[tone]); + const tones = [ + ["--ku-blue-400", "#103f65"], + ["--ku-red", "#901a1e"], + ["--ku-green-300", "#446c5a"], + ["--ku-teal-300", "#2a7481"], + ["--ink-2", "#666666"], + ["--ku-green-200", "#b0cabe"], + ]; + tones.forEach(function ([token, fallback], tone) { + const rgb = hex(style.getPropertyValue(token) || fallback); col[tone] = Array.from( { length: LV }, (_, level) => "rgba(" + rgb.join(",") + "," + (level / (LV - 1)).toFixed(3) + ")", ); }); - labelCol = style.getPropertyValue("--ink").trim() || "#17171a"; + labelCol = style.getPropertyValue("--ink").trim() || "#1d1d1d"; labelFont = style.getPropertyValue("--f-mono").trim() || labelFont; } function resize() { @@ -588,7 +594,7 @@ export function initParticleHero(hero) { W = cv.width = Math.round(bounds.width * DPR); H = cv.height = Math.round(bounds.height * DPR); cx = W * 0.5; - cy = H * (cur === 1 ? 0.51 : 0.47); + cy = H * (cur === 1 ? 0.55 : 0.47); U = sceneScale(); readColors(); solid = true; @@ -598,13 +604,13 @@ export function initParticleHero(hero) { } function sceneScale() { return cur === 1 - ? Math.min(W * 0.43, H * 0.45) + ? Math.min(W * 0.48, H * 0.45) : Math.min(W * 0.36, H * 0.39); } /* ---------- render ---------- */ function draw(advance, snap) { const targetScale = sceneScale(); - const targetCenter = H * (cur === 1 ? 0.51 : 0.47); + const targetCenter = H * (cur === 1 ? 0.55 : 0.47); if (advance) { U += (targetScale - U) * 0.08; cy += (targetCenter - cy) * 0.08; @@ -702,7 +708,7 @@ export function initParticleHero(hero) { var al = sh.al[i] * (0.35 + 0.65 * clamp(0.5 - z2 * 0.45)) + bst * 0.6; var lv = (Math.min(1, al) * (LV - 1) + 0.5) | 0; if (!lv) continue; - var c = col[sh.tone[i]][lv]; + var c = col[cur === 1 && sh.role[i] ? 1 : sh.tone[i]][lv]; if (c !== last) { ctx.fillStyle = c; last = c; diff --git a/src/components/Logo.astro b/src/components/Logo.astro index ddd5438..d981661 100644 --- a/src/components/Logo.astro +++ b/src/components/Logo.astro @@ -1,38 +1,8 @@ --- -// Seven tilted bars: the seven helices of a G protein-coupled receptor. interface Props { width?: number; } const { width = 34 } = Astro.props; -const bars = [ - { fill: "#1E4FC2", angle: -8 }, - { fill: "#F6C51B", angle: 6 }, - { fill: "#D92D1C", angle: -4 }, - { fill: "#178553", angle: 9 }, - { fill: "#1E4FC2", angle: -6 }, - { fill: "#D92D1C", angle: 4 }, - { fill: "#F6C51B", angle: -10 }, -]; --- - + diff --git a/src/components/ParticleReceptor.astro b/src/components/ParticleReceptor.astro index 1131842..58dadb4 100644 --- a/src/components/ParticleReceptor.astro +++ b/src/components/ParticleReceptor.astro @@ -38,11 +38,11 @@ const scenes = ["Genomics", "Structure", "Pharmacology", "Health care"]; diff --git a/src/components/Receptor.astro b/src/components/Receptor.astro index 2542de7..7e190b3 100644 --- a/src/components/Receptor.astro +++ b/src/components/Receptor.astro @@ -1,15 +1,15 @@ --- // Cut-paper G protein-coupled receptor: seven helices crossing the membrane, -// a drug arriving from outside. Colors are the four primaries. +// a drug arriving from outside. const lipidX = Array.from({ length: 25 }, (_, i) => 11 + i * 22); const helices = [ - { x: 70, angle: -7, fill: "#1E4FC2" }, - { x: 140, angle: 5, fill: "#F6C51B" }, - { x: 210, angle: -3, fill: "#D92D1C" }, - { x: 280, angle: 8, fill: "#178553" }, - { x: 350, angle: -6, fill: "#1E4FC2" }, - { x: 420, angle: 3, fill: "#D92D1C" }, - { x: 490, angle: -9, fill: "#F6C51B" }, + { x: 70, angle: -7, fill: "var(--ku-blue-400)" }, + { x: 140, angle: 5, fill: "var(--ku-teal-300)" }, + { x: 210, angle: -3, fill: "var(--ku-blue-300)" }, + { x: 280, angle: 8, fill: "var(--ku-teal-400)" }, + { x: 350, angle: -6, fill: "var(--ku-blue-400)" }, + { x: 420, angle: 3, fill: "var(--ku-teal-300)" }, + { x: 490, angle: -9, fill: "var(--ku-blue-300)" }, ]; const loops = [ "M55 152 C55 100 14 112 22 72 S62 34 40 12", @@ -55,7 +55,7 @@ const loops = [ markerHeight="7" orient="auto-start-reverse" > - + @@ -64,10 +64,10 @@ const loops = [ y="182" width="560" height="166" - fill="#fff" + fill="var(--ku-green-100)" fill-opacity=".55" > - + {lipidX.map((cx) => ( ))} @@ -76,7 +76,7 @@ const loops = [ ))} - + {loops.map((d) => ( ))} @@ -108,7 +108,7 @@ const loops = [ - + - + diff --git a/src/components/ResearchIcon.astro b/src/components/ResearchIcon.astro new file mode 100644 index 0000000..881d890 --- /dev/null +++ b/src/components/ResearchIcon.astro @@ -0,0 +1,98 @@ +--- +interface Props { + kind: "variant" | "peptide" | "signalling"; +} +const { kind } = Astro.props; +--- + + diff --git a/src/components/ResearchLines.astro b/src/components/ResearchLines.astro new file mode 100644 index 0000000..2423001 --- /dev/null +++ b/src/components/ResearchLines.astro @@ -0,0 +1,88 @@ +--- +import ResearchIcon from "./ResearchIcon.astro"; +import { researchLines } from "../data/site"; +--- + +
+
+

Three Lines Of Work

+
+
+ {researchLines.map((line) => ( + + ))} +
+
+ + diff --git a/src/components/Scales.astro b/src/components/Scales.astro deleted file mode 100644 index fae228a..0000000 --- a/src/components/Scales.astro +++ /dev/null @@ -1,116 +0,0 @@ ---- -// From one residue to one patient: a variant drawn as a swapped brick, then -// the four scales the group follows it through. -import { scales } from "../data/site"; - -const { standalone = false } = Astro.props; -const Heading = standalone ? "h1" : "h2"; -const sequence = [ - { aa: "I", pos: "3.46" }, - { aa: "A", pos: "3.47" }, - { aa: "V", pos: "3.48" }, - { aa: "D", pos: "3.49" }, - { aa: "C", pos: "R3.50C", swap: true }, - { aa: "Y", pos: "3.51" }, - { aa: "L", pos: "3.52" }, - { aa: "A", pos: "3.53" }, -]; ---- - -
-
- From One Residue To One Patient -

- A single swapped amino acid can change how well a drug works, or which - pathway it switches on. We follow that change across four scales. -

-
- -
    - {scales.map((s) => ( -
  1. - -

    {s.name}

    -

    {s.text}

    -

    {s.example}

    -
  2. - ))} -
-
- - diff --git a/src/components/Software.astro b/src/components/Software.astro index 87edd7a..c42e057 100644 --- a/src/components/Software.astro +++ b/src/components/Software.astro @@ -15,16 +15,16 @@ const { standalone = false } = Astro.props; - + @@ -63,16 +63,16 @@ const { standalone = false } = Astro.props; - + - + diff --git a/src/data/site.ts b/src/data/site.ts index 0965ee2..741df6c 100644 --- a/src/data/site.ts +++ b/src/data/site.ts @@ -61,32 +61,29 @@ export const joinOptions = [ export const GROUP_PAGE = "https://drug.ku.dk/research-sections/pharmaceutical-informatics/pharmacoinformatics/"; -// The four scales a receptor variant is followed through, from residue to -// patient. `example` names concrete work at that scale. -export const scales = [ +export const researchLines = [ { - name: "in silico", + title: "Pharmacogenomics and personalised medicine", + text: "Two people can carry different versions of the same drug target. We study which GPCR variants change receptor function and how those differences relate to human health.", + icon: "variant", color: "b", - text: "Predict how a variant changes drug response.", - example: - "Structure prediction and co-evolution, also to find peptide–receptor pairs across species.", + link: "GIP receptor variants and metabolic traits", + href: "https://doi.org/10.1038/s42255-024-01061-4", }, { - name: "in vitro", - color: "r", - text: "Measure that change in cells.", - example: "Binding, selectivity and signalling assays with approved drugs.", - }, - { - name: "in human", + title: "Peptide–receptor pairs across species", + text: "Which receptor recognises a peptide from another species? We look for sequences that evolved together and model how the peptide fits into the receptor.", + icon: "peptide", color: "y", - text: "Link variants to disease and to changes in therapy.", - example: "Missense variants in UK Biobank and the Danish registries.", + link: "Predicting peptide binding to GPCRs", + href: "https://doi.org/10.1093/bib/bbaf186", }, { - name: "in field", - color: "g", - text: "Make it a shared resource for personalised medicine.", - example: "A public platform that phenotypes GPCR variants.", + title: "Molecular pharmacology of GPCRs", + text: "A ligand can activate several signalling pathways through the same receptor. We measure G protein activation and β-arrestin recruitment to see how ligands and receptor variants change the response.", + icon: "signalling", + color: "r", + link: "Mapping GPCR–G protein coupling", + href: "https://doi.org/10.7554/eLife.74107", }, -] satisfies { name: string; color: Primary; text: string; example: string }[]; +] as const; diff --git a/src/pages/about.astro b/src/pages/about.astro index d65fa22..74a7a1a 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -1,7 +1,7 @@ --- import Base from "../layouts/Base.astro"; import Mission from "../components/Mission.astro"; -import Scales from "../components/Scales.astro"; +import ResearchLines from "../components/ResearchLines.astro"; import { breadcrumbJsonLd, organizationJsonLd } from "../data/structuredData"; const siteOrigin = Astro.site ?? new URL("https://hausergroup.org"); @@ -9,7 +9,7 @@ const siteOrigin = Astro.site ?? new URL("https://hausergroup.org");
- +
diff --git a/src/pages/index.astro b/src/pages/index.astro index 780aaa5..1cfe8a8 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,7 +2,7 @@ import Base from "../layouts/Base.astro"; import ParticleReceptor from "../components/ParticleReceptor.astro"; import Statement from "../components/Statement.astro"; -import Scales from "../components/Scales.astro"; +import ResearchLines from "../components/ResearchLines.astro"; import Software from "../components/Software.astro"; import LatestPapers from "../components/LatestPapers.astro"; import PeopleSection from "../components/PeopleSection.astro"; @@ -17,24 +17,20 @@ const siteOrigin = Astro.site ?? new URL("https://hausergroup.org");
-

- - 34% - of approved drugs act on a G protein-coupled receptor. -

-

Every Genome Reads The Same Drug Differently

+

What shapes a receptor’s response?

- At the University of Copenhagen we combine genomics, structural biology, - pharmacology and health-care data to learn how human genetic variation - changes the way receptors respond to drugs. + At the University of Copenhagen, we study G protein-coupled receptors. + We map peptide–receptor pairs across species, measure the signals they + trigger in cells, and investigate how genetic differences affect drug + response.

- + diff --git a/src/pages/llms.txt.ts b/src/pages/llms.txt.ts index 266d083..8b596e6 100644 --- a/src/pages/llms.txt.ts +++ b/src/pages/llms.txt.ts @@ -2,7 +2,7 @@ import type { APIRoute } from "astro"; import { groupEmail } from "../data/contact"; import { profiles } from "../data/profiles"; import { publicationSections } from "../data/publications"; -import { GROUP_PAGE, joinOptions, scales } from "../data/site"; +import { GROUP_PAGE, joinOptions, researchLines } from "../data/site"; import { DEFAULT_DESCRIPTION } from "../data/structuredData"; export const GET: APIRoute = ({ site }) => { @@ -24,14 +24,17 @@ export const GET: APIRoute = ({ site }) => { "", "The Hauser Group (Pharmacoinformatics) is led by Associate Professor Alexander Sebastian Hauser at the Department of Drug Design and Pharmacology, University of Copenhagen (Universitetsparken 2, 2100 Copenhagen, Denmark).", "", - "## Research scales", + "## Three lines of work", "", - ...scales.map((s) => `- **${s.name}:** ${s.text} ${s.example}`), + ...researchLines.map( + (line) => + `- **${line.title}:** ${line.text} [${line.link}](${line.href})`, + ), "", "## Key pages", "", - `- [Home](${url("/")}) — Overview, research scales, recent papers, software and team`, - `- [About](${url("/about/")}) — Mission and four-scale research approach`, + `- [Home](${url("/")}) — Overview, research themes, recent papers, software and team`, + `- [About](${url("/about/")}) — Mission and three lines of research`, `- [Publications](${url("/publications/")}) — Peer-reviewed papers and preprints with DOIs`, `- [Software](${url("/software/")}) — Open-source tools (CurveBook, scikit-opls)`, `- [People](${url("/people/")}) — Current researchers, fellows and students`, diff --git a/src/styles/site.css b/src/styles/site.css index 3d53958..4dd3cc9 100644 --- a/src/styles/site.css +++ b/src/styles/site.css @@ -5,20 +5,38 @@ small software windows. */ :root { - --white: #ffffff; - --bg: #fbfbf9; - --ink: #17171a; - --ink-2: #6a6a70; - --line: #e3e2de; - --blue: #1e4fc2; - --red: #d92d1c; - --yellow: #f6c51b; - --green: #178553; - --blue-t: #e5ecfb; - --red-t: #fbe7e3; - --yellow-t: #fdf4d2; - --green-t: #e1f1e8; - --yellow-text: #b58a00; + /* University of Copenhagen digital colour palette. */ + --ku-red: #901a1e; + --ku-red-100: #f4e9ea; + --ku-red-200: #edcfd4; + --ku-red-300: #c73028; + --ku-red-400: #a5000c; + --ku-blue-100: #f0f4f7; + --ku-blue-200: #afcde3; + --ku-blue-300: #2c6694; + --ku-blue-400: #103f65; + --ku-teal-100: #e2eef1; + --ku-teal-200: #b7d7de; + --ku-teal-300: #2a7481; + --ku-teal-400: #0e5969; + --ku-green-100: #e9f0ed; + --ku-green-200: #b0cabe; + --ku-green-300: #446c5a; + --ku-green-400: #244c3a; + --white: #fff; + --bg: var(--white); + --ink: #1d1d1d; + --ink-2: #666; + --line: var(--ku-green-200); + --blue: var(--ku-blue-300); + --red: var(--ku-red-400); + --yellow: var(--ku-teal-400); + --green: var(--ku-green-400); + --blue-t: var(--ku-blue-100); + --red-t: var(--ku-red-100); + --yellow-t: var(--ku-teal-100); + --green-t: var(--ku-green-100); + --yellow-text: var(--ku-teal-400); --f-sans: "Inter Tight Variable", system-ui, -apple-system, "Segoe UI", sans-serif; --f-display: @@ -103,7 +121,7 @@ code { color: var(--ink-2); } .cap.accent { - color: var(--red); + color: var(--ku-green-300); } /* Halftone field: the stud grid, fading upward. */ @@ -201,7 +219,7 @@ code { /* Buttons: hard-shadow bricks that seat when pressed. */ .btn { - --c: var(--blue); + --c: var(--ku-green-400); display: inline-flex; align-items: center; gap: 10px; @@ -227,6 +245,7 @@ code { font-weight: 500; } .btn.y { + --c: var(--ku-teal-200); --fg: var(--ink); } .btn.lg { @@ -235,6 +254,9 @@ code { } /* Header and footer. */ +.top .btn { + --c: var(--ku-red); +} .top { display: flex; justify-content: space-between; @@ -374,36 +396,32 @@ code { ); } -/* A strip of tape, used on the post-it. */ -.tape { - position: absolute; - width: 76px; - height: 24px; - background: rgb(255 255 255 / 0.55); - box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); - pointer-events: none; -} - -/* Hero: the receptor animation, with one post-it stuck to its corner. */ +/* Hero animation and introductory text. */ .hero { padding-block: 8px 0; } .sky { - padding: 56px 32px 72px; + padding: 16px 32px 72px; display: flex; flex-direction: column; align-items: center; gap: 32px; } .sim { - position: relative; - width: min(650px, 100%); -} -.hero .sim .particle-hero { - width: 100%; + width: min(1020px, 100%); +} +.sky.dots { + background: linear-gradient( + 120deg, + var(--ku-blue-200), + var(--ku-blue-100) 44%, + var(--ku-teal-100) 72%, + var(--ku-green-200) + ); } /* In the hero the dots sit behind the animation and fade out toward the text. */ .sky.dots::before { + opacity: 0.22; -webkit-mask-image: linear-gradient( to bottom, #000 0%, @@ -417,34 +435,8 @@ code { transparent 70% ); } -.sticker { - position: absolute; - z-index: 2; - top: -34px; - right: -52px; - width: 172px; - padding: 18px 16px 14px; - background: var(--yellow); - color: var(--ink); - font: 500 14px/1.3 var(--f-sans); - transform: rotate(6deg); - box-shadow: - 0 2px 0 rgb(0 0 0 / 0.08), - 0 10px 18px rgb(0 0 0 / 0.14); -} -.sticker b { - display: block; - font: 500 54px/0.9 var(--f-display); - font-variation-settings: "SHRP" 100; - letter-spacing: -0.05em; - padding-bottom: 6px; -} -.sticker .tape { - top: -12px; - left: 50%; - transform: translateX(-50%) rotate(-5deg); -} .sky h1 { + color: var(--ku-blue-400); text-align: center; max-width: 13ch; } @@ -541,7 +533,7 @@ code { } .tool { display: grid; - grid-template-columns: 128px minmax(0, 1fr); + grid-template-columns: 144px minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 22px; @@ -642,7 +634,7 @@ code { @media (max-width: 1000px) { .sky { - padding: 40px 18px 64px; + padding: 12px 18px 64px; } .tools { grid-template-columns: minmax(0, 1fr); @@ -675,18 +667,15 @@ code { padding: 48px 18px 24px; min-height: 0; } - .sticker { - top: -40px; - right: -6px; - width: 140px; - padding: 14px 12px 12px; - font-size: 13px; + .sky { + padding: 8px 0 56px; } - .sticker b { - font-size: 40px; + .sky h1, + .hero-lead { + padding-inline: 14px; } .tool { - grid-template-columns: 88px minmax(0, 1fr); + grid-template-columns: 100px minmax(0, 1fr); gap: 16px; } }