Coder Social home page Coder Social logo

gettingstuffdone / website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from temujindang/website-1

0.0 1.0 0.0 55.76 MB

Source code for website.

Home Page: https://oxide.computer

HTML 3.97% CSS 95.66% JavaScript 0.30% Makefile 0.03% Dockerfile 0.01% Shell 0.03%

website's Introduction

Oxide Computer Company website

make shellcheck make test make broken-link-checker

Table of Contents

Prerequisites

Stack

Running locally

# install the project dependencies
npm install

# run the build and server locally
npm run watch

Adding new content

Blog posts

Add a new markdown file to src/site/blog. Make sure it has the following metadata at the top of the file. To make things easy on yourself, duplicate an existing post.

---
title: 'Post title'
subtitle: 'Post subtitle (if any)'
date: 2020-02-03T23:00:00
tags: ['post', 'announcements']
authors: ["first-last", "first-last", "first-last"]
description: |
    A description that is used in snippets.
---

The authors field can hold more than one author and is the name of the json file for the specific author in _data/team.

Make sure to add a description to your post for the main pages as well as social media cards.

Team members

Add a json file to _data/team in the following format:

{
  "weight": 1,
  "name": "Jessie Frazelle",
  "title": "CPO",
  "twitter": "jessfraz",
  "github": "jessfraz",
  "linkedin": "https://www.linkedin.com/in/jessie-frazelle/",
  "blog": "https://jess.dev"
}

The order for the team page is currently set in _date/team/members.json.

Previewing the production build

When building for production, an extra build step will strip out all CSS classes not used in the site. This step is not performed during the automatic rebuilds which take place during dev.

# run the production build
npm run build

Styling with TailwindCSS

This site uses TailwindCSS to offer utility CSS classes and provide a rapid means to styling the site. This means that most styling can be done without writing any additional CSS. Instead, utility classes can be added directly to the HTML. This may not be to everyone's tastes, but it can provide some very rapid development and also offer surprising levels of familiarity for those used to working in this way (since the conventions and classes are not per site.)

While running/developing locally, the npm run start command will recompile the site as files are saved and this includes the CSS pipeline from Tailwind.

Global CSS utilities.

A small number of bespoke CSS rules are provided for efficiency of repeated or global classes. These reside in src/site/_includes/css/tailwind.css

website's People

Contributors

jessfraz avatar plainspace avatar bcantrill avatar geordi avatar life-at-its-purest avatar github-actions[bot] avatar pfmooney avatar bnaecker avatar imgbotapp avatar justinazoff avatar mx-shift avatar rmustacc avatar todo-actions[bot] avatar temujindang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.