mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-05 04:28:12 +08:00
@@ -1,6 +1,6 @@
|
|||||||
export const datasets = {
|
export const datasets = {
|
||||||
pbmc3k: {
|
pbmc3k: {
|
||||||
title: "cellxgene: pbmc3k",
|
title: "pbmc3k",
|
||||||
dataframe: {
|
dataframe: {
|
||||||
nObs: "2638",
|
nObs: "2638",
|
||||||
nVar: "1838",
|
nVar: "1838",
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import React from "react";
|
||||||
|
import * as globals from "../../globals";
|
||||||
|
|
||||||
|
const Logo = props => {
|
||||||
|
const { size } = props;
|
||||||
|
return (
|
||||||
|
<svg width={size} height={size} viewBox={`0 0 48 48`} fill="none">
|
||||||
|
<rect width="48" height="48" fill="white" />
|
||||||
|
<rect width="48" height="48" fill={globals.logoColor} />
|
||||||
|
<rect x="19" y="19" width="22" height="22" fill="white" />
|
||||||
|
<rect x="24" y="24" width="12" height="12" fill={globals.logoColor} />
|
||||||
|
<rect x="7" y="19" width="7" height="22" fill="white" />
|
||||||
|
<rect x="19" y="7" width="22" height="7" fill="white" />
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Logo;
|
||||||
@@ -6,6 +6,7 @@ import Continuous from "./continuous/continuous";
|
|||||||
import GeneExpression from "./geneExpression";
|
import GeneExpression from "./geneExpression";
|
||||||
import * as globals from "../globals";
|
import * as globals from "../globals";
|
||||||
import DynamicScatterplot from "./scatterplot/scatterplot";
|
import DynamicScatterplot from "./scatterplot/scatterplot";
|
||||||
|
import Logo from "./framework/logo.js";
|
||||||
|
|
||||||
@connect(state => ({
|
@connect(state => ({
|
||||||
responsive: state.responsive,
|
responsive: state.responsive,
|
||||||
@@ -27,7 +28,6 @@ class LeftSideBar extends React.Component {
|
|||||||
if cellxgene logo or tabs change, this must as well
|
if cellxgene logo or tabs change, this must as well
|
||||||
*/
|
*/
|
||||||
const metadataSectionPadding = 0;
|
const metadataSectionPadding = 0;
|
||||||
// scatterplotXXaccessor && scatterplotYYaccessor ? 450 : 0;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@@ -39,20 +39,39 @@ class LeftSideBar extends React.Component {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
data-testid="header"
|
|
||||||
style={{
|
style={{
|
||||||
position: "fixed",
|
position: "fixed",
|
||||||
top: globals.cellxgeneTitleTopPadding,
|
top: globals.cellxgeneTitleTopPadding,
|
||||||
left: globals.leftSidebarWidth + globals.cellxgeneTitleLeftPadding,
|
left: globals.leftSidebarWidth + globals.cellxgeneTitleLeftPadding,
|
||||||
margin: 0,
|
margin: 0
|
||||||
fontSize: globals.largestFontSize,
|
|
||||||
color: globals.darkerGrey,
|
|
||||||
width: "100%"
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
cellxgene: {datasetTitle}
|
<Logo size={32} />
|
||||||
|
<span
|
||||||
|
style={{
|
||||||
|
fontSize: 28,
|
||||||
|
position: "relative",
|
||||||
|
top: -4,
|
||||||
|
fontWeight: "bold",
|
||||||
|
marginLeft: 5,
|
||||||
|
color: globals.logoColor
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
cellxgene
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
data-testid="header"
|
||||||
|
style={{
|
||||||
|
fontSize: 16,
|
||||||
|
display: "block",
|
||||||
|
position: "relative",
|
||||||
|
marginTop: 10,
|
||||||
|
top: -4
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{datasetTitle}
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
height: responsive.height - metadataSectionPadding,
|
height: responsive.height - metadataSectionPadding,
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ export const darkGreen = "#448C4D";
|
|||||||
|
|
||||||
export const nonFiniteCellColor = lightGrey;
|
export const nonFiniteCellColor = lightGrey;
|
||||||
export const defaultCellColor = "rgb(0,0,0,1)";
|
export const defaultCellColor = "rgb(0,0,0,1)";
|
||||||
|
export const logoColor = "black"; /* logo pink: "#E9429A" */
|
||||||
|
|
||||||
/* typography constants */
|
/* typography constants */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user