Skip to content

Commit

Permalink
Added a new font.
Browse files Browse the repository at this point in the history
  • Loading branch information
alyxshang committed Sep 23, 2024
1 parent dbd8d66 commit 9237b32
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ The following fonts are available:
- `NeueMontrealBold`
- `NeueMontrealLight`
- `NeueMontrealMedium`
- `Mogena`

To use these fonts in your own projects specify the font you would like to use like this in your stylesheets:

Expand All @@ -79,6 +80,23 @@ font-family: "name-of-font";

`name-of-font` specifies any of the names from the list above. These fonts should work across multiple browsers since this "CDN" contains the fonts in the WOFF, WOFF2, TTF, and OTF formats, respectively.

## JAVASCRIPT :gear:

This CDN also contains some Javascript code to build different types of navigation drawers. To include a link to this file in the code for your own website, include the following line of HTML in your HTML code:

```HTML
<script async src="https://alyxshang.boo/spark-cdn/css/navigation.js" type="text/javascript"></script>
```

The functions this script includes are as follows:

- `slideOutHorizontalOpenNav(elementId: string)`: Slides out a navigation drawer element with the ID `elementId` horizontally.
- `slideOutHorizontalCloseNav(elementId: string)`: Closes a navigation drawer element with the ID `elementId` horizontally.
- `slideOutVerticalOpenNav(elementId: string)`: Slides out a navigation drawer element with the ID `elementId` vertically.
- `slideOutVerticalCloseNav(elementId: string)`: Closes a navigation drawer element with the ID `elementId` vertically.
- `slideOutFromCornerOpenNav(elementId: string)`: Slides out a navigation drawer element with the ID `elementId` vertically and horizontally.
- `slideOutFromCornerCloseNav(elementId: string)`: Closes a navigation drawer element with the ID `elementId` vertically and horizontally.

## IMAGES :camera:

The images in the `images` directory contain art made by me. Copying, tracing or selling these images is strictly prohibited.
Expand Down
Binary file added fonts/otf/Mogena.otf
Binary file not shown.
Binary file added fonts/ttf/Mogena.ttf
Binary file not shown.
Binary file added fonts/woff/Mogena.woff
Binary file not shown.
Binary file added fonts/woff2/Mogena.woff2
Binary file not shown.

0 comments on commit 9237b32

Please sign in to comment.