Skip to content
Snippets Groups Projects
modules.ts 1.21 KiB
export enum Module {
  FRAMEWORK, SYNBIO, HP, BIOSAFETY, ENTREPRENEURSHIP
}

interface ModuleProps {
  module: Module
  color: string
  title: string
  img: string
  url: string
}

// colors: {
//   white: '#FEFEFE',
//   blue: '#415CA7',
//   green: '#41B28C',
//   black: '#2D2D2D',
//   gray: '#2D2D2D',
//   pink: '#E8486C',
//   violet: '#785FA6'
// }

export const modules: ModuleProps[] = [
  {
    module: Module.FRAMEWORK,
    color: 'pink',
    title: 'Design as a framework',
    img: '',
    url: 'design-framework'
  },
  {
    module: Module.SYNBIO,
    color: 'violet',
    title: 'Synthetic biology by design',
    img: '',
    url: 'synthetic-biology-design'
  },
  {
    module: Module.HP,
    color: 'blue',
    title: 'Human practices & social impact',
    img: '',
    url: 'human-practices'
  },
  {
    module: Module.BIOSAFETY,
    color: 'babyBlue',
    title: 'Biosafety & biosecurity',
    img: '',
    url: 'biosafety'
  },
  {
    module: Module.ENTREPRENEURSHIP,
    color: 'green',
    title: 'Entrepreneurship & innovation',
    img: '',
    url: 'entrepreneurship'
  }
]

export const getModuleInfoByType = (moduleType: Module): ModuleProps | undefined => modules.find((module) => module.module === moduleType)