Skip to content

SNoeCode/SNoeCode.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Horoscope Daily

A daily horoscope web app for all 12 zodiac signs with element-based color themes, sign detail overlays, and AI-generated horoscopes that refresh every day automatically.


How It Works

This Repo — SNoeCode.github.io

The frontend app. Built with HTML, CSS, and vanilla JavaScript. Reads from horoscope.json at runtime using the browser's fetch() API.

Horoscope Generator Repo — horoscope_generator https://github.com/SNoeCode/horoscope_generator

A Python script run daily by GitHub Actions. It uses the Groq AI API to generate new horoscopes, updates , and pushes the file to the horoscope.json in the SNoeCode.github.io repo.

Groq API
     ↓
update_horoscope.py generates 12 horoscopes
     ↓
horoscope.json saved to GitHub Actions runner (temporary)
     ↓
Workflow rotates horoscope.json → horoscope_yesterday.json
     ↓
Workflow copies & pushes both files → SNoeCode.github.io/main
     ↓

Tech Stack

  • HTML5 - semantic structure and accessibility
  • CSS3 - responsive grid, element-based color themes, animations
  • Vanilla JavaScript - fetch API, DOM manipulation, theme management
  • No frameworks or libraries are used in the repos

Features

  • 12 zodiac signs with images and date ranges
  • Daily AI-generated horoscopes, refreshed every morning
  • Yesterday's horoscopes preserved and accessible via horoscope_yesterday.json
  • Element-based color themes fire, earth, water, and air signs each have unique colors
  • 4 selectable page background themes (fire, earth, water, air)
  • Sign detail overlay traits, strengths, weaknesses, lucky numbers, compatibility, and more
  • Loading animations between interactions
  • Responsive - works on desktop, tablet, and mobile
  • Accessible - all images have alt text, close buttons included on all overlays

Horoscope Data

Horoscope text is original AI-generated content produced daily by the Groq API using the Llama 3.3 70B model. The content is generated fresh each day and is not copied or scraped from any third-party website. No attribution to external astrology sites is required.

The generation prompt is crafted per sign using each sign's elemental traits, producing unique and encouraging daily readings covering love, career, and personal growth.


Repo Structure

SNoeCode.github.io/
├── index.html          # main app structure
├── styles.css          # all styling and responsive layout
├── script.js           # all app logic and interactivity
├── horoscope.json           # today's horoscopes, auto-updated daily by GitHub Action
├── horoscope_yesterday.json # previous day's horoscopes, rotated automatically
├── zodiac.json              # static sign data (traits, symbols, etc.)
└── pictures/           # all media assets
    ├── rain.gif            # default background
    ├── video.gif           # loading animation
    ├── wheel.png           # nav color wheel icon
    ├── dev.png             # portfolio footer icon
    ├── linkedin.gif        # LinkedIn footer icon
    ├── github.gif          # GitHub footer icon
    ├── zodiac-signs/       # sign card images (.webp)
    ├── themes/             # element background gifs (fire, earth, water, air)
    └── season/             # sign season loading gifs (.webp)

Automation Setup — horoscope_generator

Daily horoscope generation is handled automatically via GitHub Actions. Two secrets must be configured in the horoscope_generator repo to make it work: a GitHub Personal Access Token and a Groq API key.


Attributions

Color Switch icon by Icons8

GitHub icon by Icons8

LinkedIn icon by Icons8

Sign images and GIFs

Sourced from project assets in pictures/zodiac-signs/

Fonts


Author

Shanna NoeSNoeCode

About

A horoscope app made in vanilla.js, html, and css

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors