Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["answer"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
62 changes: 45 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,50 @@
# 📊 Project: Complex API
# Holiday Photo Generator

### Goal: Use data returned from one api to make a request to another api and display the data returned
An application compiling APIs to show users photos of holidays around the world.

### How to submit your code for review:
## [Live Demo](https://jj-javascript.github.io/Holiday-Photo-Generator/)

- Fork and clone this repo
- Create a new branch called answer
- Checkout answer branch
- Push to your fork
- Issue a pull request
- Your pull request description should contain the following:
- (1 to 5 no 3) I completed the challenge
- (1 to 5 no 3) I feel good about my code
- Anything specific on which you want feedback!
## Table of Contents
1. [Project Overview](#project-overview)
2. [Features](#features)
3. [Technologies Used](#technologies-used)
4. [Installation](#installation)
5. [Usage](#usage)

Example:
```
I completed the challenge: 5
I feel good about my code: 4
I'm not sure if my constructors are setup cleanly...
## Project Overview

The Holiday Photo Generator is an application that uses APIs to show users photos of holidays around the world.
<img width="1921" height="892" alt="Holiday Photo Generator" src="https://github.com/user-attachments/assets/fbeff697-f7a9-468f-adda-401e50655a3b" />

## Features

- Input date and country
- Receive photos of that holiday

## Technologies Used

<a href="https://code.visualstudio.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/visualstudiocode-colored.svg" alt="VS Code" title="VS Code" width="36" height="36" /></a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/javascript-colored.svg" alt="JavaScript" title="JavaScript" width="36" height="36" /></a> <a href="https://developer.mozilla.org/en-US/docs/Glossary/HTML5" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/html5-colored.svg" alt="HTML5" title="HTML5" width="36" height="36" /></a> <a href="https://www.w3.org/TR/CSS/#css" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/css3-colored.svg" alt="CSS3" title="CSS3" width="36" height="36"/></a> <a href="https://git-scm.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/git-colored.svg" alt="Git" title="Git" width="36" height="36" /></a>

## Installation

1. Clone the repository:

```bash
git clone https://github.com/yourusername/Holiday-Photo-Generator.git
````

2. Navigate to the project directory:

```bash
cd holiday-photo-generator
```

3. Open Project File

4. Use in browser
## Usage

1. Add a new submission by entering country and date.
2. If there is a holiday on that day, receive photos of the holiday.
3. Repeat as many times as desired.

106 changes: 106 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
*{
box-sizing: border-box;
background: #FAF0DC;

}


.directions{
text-align: center;
}

h1{
text-align: center;
margin-top: 5%
}

select{
font-size: 140%;
}





section{
display: flex;
flex-direction: row;
justify-content: center;
gap: 3%;

}

p{
overflow: auto;
white-space: nowrap;
padding: 10px;
width: 100%;
height: 600px;
display: grid;
grid-auto-columns: 2fr;
grid-template-rows: 0.1fr 1fr;
gap: 5px 0px;
text-align: center;
color: red;
font-size: 2em;
}

span{
text-decoration: underline;
}

label{
font-size: 130%;
}


.holidayname {
color: red;
font-size: 2em;
text-align: center;
}

p img {
/* display: inline-flex;
flex-direction: row; */
padding: 10px;
max-height: 600px;
object-fit: cover;
/* overflow: hidden; */
grid-row-start: 2;
background-color: #333;
}


@media (max-width: 425px){
section{
display: flex;
flex-direction: column;
justify-content: space-between;
}

select{
text-align: center;
}

input{
margin-top: 3%;
text-align: center;
height: 25px;
}

button{
margin-top: 3%;
}

p{
color: red;
font-size: 1.5em;
}

label{
text-align: center;
margin-bottom: 2%;
}

}
Loading