Skip to content

Commit

Permalink
✨ Set up npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed May 17, 2021
1 parent 1f7c183 commit 6e42c9e
Show file tree
Hide file tree
Showing 15 changed files with 3,865 additions and 61 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.idea/
node_modules/
.DS_Store
apple-tv-card-*.tgz
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,40 @@
# Apple TV Card (with JavaScript and CSS)

[![Gitmoji](https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg)](https://gitmoji.dev)

An Apple TV Card/Widget with hover animation written in JavaScript and CSS.


## Demo

[Live-Demo](https://marcreichel.github.io/apple-tv-card/)
![Animation](docs/demo.gif)

[Live-Demo](https://marcreichel.github.io/apple-tv-card/)

## Run Locally

Clone the project
## Installation

Install via npm:
```bash
git clone https://github.com/marcreichel/apple-tv-card.git
npm install apple-tv-card
```

Go to the project directory
or yarn:

```bash
cd apple-tv-card
yarn add apple-tv-card
```

Open `index.html` in your browser.

## Setup


_More info coming soon_


## Authors

- [@marcreichel](https://www.github.com/marcreichel)


## Contributing
Expand Down
50 changes: 0 additions & 50 deletions apple-tv-cards.css

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions dist/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes
Binary file added docs/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<link href="apple-tv-cards.css" rel="stylesheet">
<link href="app.css" rel="stylesheet">
<script src="apple-tv-cards.js" defer></script>
<link href="dist/main.css" rel="stylesheet">
<link href="demo.css" rel="stylesheet">
<script src="dist/main.js" defer></script>
</head>
<body>
<div class="container">
Expand All @@ -20,7 +20,7 @@
<div class="content" style="background-image:linear-gradient(to bottom, #555, #000);padding-bottom: 58.33333333%;"></div>
<div class="paralax-content">
<div style="font-size:6rem;">
<img src="Apple_logo_white.svg" style="height:.75em;margin-right:-.15em;" alt="Apple Logo">
<img src="docs/Apple_logo_white.svg" style="height:.75em;margin-right:-.15em;" alt="Apple Logo">
tv
</div>
</div>
Expand Down
Loading

0 comments on commit 6e42c9e

Please sign in to comment.