diff --git a/src/App/App.css b/src/App/App.css index bb2af885b5ea7382637db51a82ba54b02d39c285..3344f91b7283d8202bc6f22cefb8e05a0fdf7a30 100644 --- a/src/App/App.css +++ b/src/App/App.css @@ -3,6 +3,7 @@ /* * * * * * * */ :root { /* our colours*/ + --ourgradient: linear-gradient(90deg, rgba(147,94,184,1) 0%, rgba(160,167,243,1) 100%); --text-primary: #850F78 ; --mediumpurple: #bc15aa; --lightpurple: #B85BD1; @@ -264,8 +265,8 @@ color: var(--text-primary); max-width: 100% !important; } .header-container{ - padding-top: 380px; - padding-bottom: 60px; + padding-top: 100px; + padding-bottom: 10px; background-color: var(--ourbeige); } .null{ @@ -1095,8 +1096,11 @@ svg{ .container_document{ max-width: 40%; } +.download-butt{ + color: var(--ourbeige) !important; +} .download-butt{ /* @media unnötig */ - background-color: var(--text-primary); + background: var(--ourgradient); padding: 0.5vh !important; border-radius: 5px; margin: auto !important; @@ -3223,7 +3227,7 @@ div[class*="boxy"] { } .boxy-1 { - background-color: var(--text-primary); + background: var(--ourgradient); max-width: fit-content; } .boxy-2 { @@ -3307,7 +3311,7 @@ div[class*="boxy"] { text-decoration: none; padding: 10px; color:var(--ourbeige) !important; - background: var(--text-primary); + background: var(--ourgradient); border-radius: 100px; white-space: nowrap; margin-left: 40px; @@ -3537,12 +3541,12 @@ svg a:hover text{ } .active-sideitem { - background-color: var(--text-primary) !important; + background: var(--ourgradient); color: var(--ourbeige) !important; border-radius: 5px; display: block; border-width: 5px; - border-color: #850F78; + border-color: var(--lightblue); padding-right: 5px; padding-left: 5px; } @@ -4017,7 +4021,17 @@ figure img{ border-radius: 10px; } +.nav-item, .nav-dropdown, .dropdown-toggle{ + border-radius: 10px !important; +} + .sponsor-text-left h4{ text-align: right; +} + +#hphead{ + background-image: url("https://static.igem.wiki/teams/5247/photos/header/human-practices.webp"); + background-size: 1650px auto; + background-repeat: no-repeat; } \ No newline at end of file diff --git a/src/components/HeaderBox.tsx b/src/components/HeaderBox.tsx index 338d509db87dda00666bfe90b32e8d3f812e0dec..df37004106f875d04b46a6351c0ed7028ee54973 100644 --- a/src/components/HeaderBox.tsx +++ b/src/components/HeaderBox.tsx @@ -4,9 +4,10 @@ interface Props{ title: string , title2?: string, children?: React.ReactNode, + id: string } -export default function HeaderBox({children, title, title2}: Props ){ +export default function HeaderBox({children, title, title2, id}: Props ){ var ti: string = ""; if (title2) { ti = title2; @@ -15,7 +16,7 @@ export default function HeaderBox({children, title, title2}: Props ){ <> <div className="col"> <div className="col header-container"> - <div className="row header-title"> + <div className="row header-title" id={id}> <Hwave text={title}></Hwave> <Hwave text={ti}></Hwave> diff --git a/src/headers/hp-h.tsx b/src/headers/hp-h.tsx index 9b8fa9ce32d931b2c6e47a11fcb31d90e16c2fda..738482031bbf675bb8734876816a5a34b8213053 100644 --- a/src/headers/hp-h.tsx +++ b/src/headers/hp-h.tsx @@ -1,7 +1,7 @@ export function HPH() { return ( - <HeaderBox title="Human" title2="Practices"> + <HeaderBox title="Human" title2="Practices" id="hphead"> </HeaderBox> ); diff --git a/src/utils/Highlight-functions.ts b/src/utils/Highlight-functions.ts index b02e3486d237bd93a49f4d0a4a723572fe596e9d..c009d08bc9ad5f3d84b4b0f707139b4ee5720215 100644 --- a/src/utils/Highlight-functions.ts +++ b/src/utils/Highlight-functions.ts @@ -11,7 +11,6 @@ export function NewHighlight({el}: {el: HTMLElement | null}, {subtitle}:{subtitl // console.log(el.getBoundingClientRect()) if (el.getBoundingClientRect().top < TopDistance + 1 && el.getBoundingClientRect().bottom > TopDistance){ subtitle.style.color = "var(--ourbeige)"; - subtitle.style.backgroundColor = "rgb(133, 15, 120, 0.8)"; subtitle.style.borderColor = "#850F78"; subtitle.style.marginLeft = "5px"; subtitle.style.paddingRight = "5px";