Improving software delivery in every organisation

Getting Started

Made Tech Frontend is a collection of components and resources for creating Made Tech branded sites and applications.

We created this library to make it easier for teams to create their own sites, whether that be for careers, events or learning materials. It has been created to handle a number of use cases including GitHub Pages powered sites and React powered web apps.

Quick start

The quickest way to get going with Made Tech Frontend is with the compiled assets including CSS, fonts, images and JavaScript. All you need to do is download the latest release and then start using the assets.

Presuming you are starting from scratch:

  1. Download latest madetech-frontend.zip from Made Tech Frontend releases
  2. Create a new directory for your project
  3. Create an index.html file in that directory and copy the contents of this example into it
  4. Now create an assets/ directory and put the contents of dist/ in it

Now view the index.html in your browser. Cool huh?

Using with GitHub Pages

If you are creating a documentation site using GitHub Pages, we again recommend using a similar route to the above.

We recommend the following steps are take with a themeless install of Jekyll:

  1. Download latest copy of Made Tech Frontend
  2. Create or replace _layouts/default.html with this example
  3. Now create an assets/ directory and put the contents of dist/ in it

If you have installed github-pages gem locally you can now run bundle exec jekyll s and you will see a Made Tech theme.

Made Tech Frontend’s documentation site is built with GitHub Pages so take a look at the docs/ directory for another example.

Using as component library

If you are building a React based application or site then you can take advantage of the React components provided by this kit.

In order to use as a component library you first need to add @madetech/frontend NPM module to your application:

npm i @madetech/frontend

Once it’s installed you can get to work:

import { Header } from '@madetech/frontend'

export default function Layout ({ children }) {
  return (
    <div>
      <Header
        logoHref='/'
        logoText='Learn Tech'
      >
        <a href='/' className='nav-link'>
          Getting Started
        </a>

        <a href='/help' className='nav-link'>
          Ask for Help
        </a>
      </Header>

      {children}
    </div>
  )
}

To find out what components are available, take a look at the style guide. You can use the style guide to play with components and find out how to use them.

Importing styles

  • Import @madetech/frontend/all.scss if your build process supports compiling Sass
  • Import @madetech/frontend/dist/madetech-frontend.css if your build process supports CSS
  • Link to the static asset with by copying @madetech/frontend/dist/madetech-frontend.css into your public/ dir

Using with Create React App

If you are building an app with create-react-app, it’s easy to get started.

In order to use as a component library you first need to add @madetech/frontend NPM module to your application:

npm i @madetech/frontend

Now you can use components in your App.js for example:

import React from 'react'
import { Header } from '@madetech/frontend'
import '@madetech/frontend/all.scss'

export default function App () {
  return (
    <Header />
  )
}

Importing styles

You have a number of options for importing styles with Create React App:

  • Import @madetech/frontend/all.scss (as seen above) as Create React App supports compiling Sass
  • Import @madetech/frontend/dist/madetech-frontend.css as Create React App supports compiling CSS
  • Link to the static asset with by copying @madetech/frontend/dist/madetech-frontend.css into your public/ dir

If you need a further example for using create-react-app, check this out.

Next steps

We recommend you read about how this library works under the hood.