Giter Site home page Giter Site logo

choctaw-nation / casino-onyx-preview Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 134.11 MB

A Repo to bundle and preview ONYX landing pages

Home Page: https://choctaw-nation.github.io/casino-onyx-preview/

License: GNU General Public License v3.0

JavaScript 1.46% Astro 62.69% SCSS 35.85%

casino-onyx-preview's Introduction

ONYX

An SSG for ONYX Events

Quick Start

  1. Download the Repo
  2. Make changes
  3. Run build
  4. Rename and zip the dist folder

Notes

  • The Deploy builds a site for preview with Github pages. The Github Pages url is not meant for distribution.
  • This repo uses bun as a package manager, but this can easily be swapped out for npm. Simply delete the bun-lock file and run npm i before continuing.

Astro Config & Env Variables

v1 and the Two Build Scripts:

In v1, there are 2 build scripts: build and build-elite. Because the client asked for two pages (with slight variations between the two), each build script is prefixed with an environment variable: IS_ELITE, which is used as a simple boolean value.

In v1, this environment toggles a few options:

  • The page title is set to "Onyx (Elite) Gift Event"
  • The main logo swaps svgs, to render "Onyx (Elite) Gift Event"
  • The Details section has a word about what type of gift event it is: "Onyx (Elite) Gift Event"

Each build script also updates Astro's base config to either be /uploads/onyx-gift-event or /uploads/onyx-elite-gift-event. This is a part of the Astro CLI.


Changelog

v1.0.0 (ONYX Gift Event)

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.