Skip to content

Commit

Permalink
Create CNAME
Browse files Browse the repository at this point in the history
For now this will live as a GitHub page to serve the assets, but we set
it up to use a CNAME so we can switch the implementation at any time.
To do this you will need to change the CNAME record in DNS.
  • Loading branch information
spjmurray committed Jan 31, 2024
0 parents commit 71287ca
Show file tree
Hide file tree
Showing 8 changed files with 339 additions and 0 deletions.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assets.nscale.com
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# NSCALE Assets

![NSCALE Logo](./img/nscale/light/logo.svg#gh-light-mode-only)
![NSCALE Logo](./img/nscale/dark/logo.svg#gh-dark-mode-only)

This repository contains all static assets used for company branding in various applications.
These include, but are not limited to, images and CSS.

## Use in Your Web Application

For now, these assets are served with GitHub pages.
To use them, use the following prefix, then the path as illustrated below:

```
https://assets.nscale.com/<path>
```

## Conventions

Files, where appropriate, are intuitively named:

* `light` - for use on light backgrounds.
* `dark` - for use on dark backgrounds.
* `adaptive` - for use on any background, the image will use the `currentColor` for black/white elements. However this requires the SVG contents to be in the DOM, so you must inject the SVG and not use an `<img>` tag. You can use [svg-inject](https://github.com/iconfu/svg-inject) to perform this task.
51 changes: 51 additions & 0 deletions img/nscale/adaptive/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions img/nscale/dark/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions img/nscale/favicon/dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions img/nscale/favicon/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 71287ca

Please sign in to comment.