commit 18bcafe29b6c6015e6fdd7666cd83a05faaffca0 Author: Blake Ridgway Date: Sun Dec 29 20:12:21 2024 -0600 first commit diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..89eeed9 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,37 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + # Checkout the repository + - name: Checkout code + uses: actions/checkout@v3 + + # Log in to Docker Hub or GitHub Container Registry + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + # Build the Docker image + - name: Build Docker image + run: | + docker build -t rideaware-landing-page:latest . + + # Tag the image + - name: Tag Docker image + run: | + docker tag rideaware-landing-page:latest username/rideaware-landing-page:latest + + # Push the Docker image + - name: Push Docker image + run: | + docker push username/rideaware-landing-page:latest diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eba74f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +venv/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ec2f6f5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Use an official Python runtime as a parent image +FROM python:3.10-slim + +# Set the working directory in the container +WORKDIR /app + +# Copy the requirements and application files +COPY requirements.txt requirements.txt +COPY . . + +# Install Python dependencies +RUN pip install --no-cache-dir -r requirements.txt + +# Expose the port Flask runs on +EXPOSE 5000 + +# Define the command to run the app +CMD ["python", "server.py"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8ab6294 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +flask \ No newline at end of file diff --git a/server.py b/server.py new file mode 100644 index 0000000..1e0627e --- /dev/null +++ b/server.py @@ -0,0 +1,10 @@ +from flask import Flask, render_template + +app = Flask(__name__) + +@app.route("/") +def index(): + return render_template("index.html") + +if __name__ == "__main__": + app.run(debug=True) diff --git a/static/logo.png b/static/logo.png new file mode 100644 index 0000000..f385e51 Binary files /dev/null and b/static/logo.png differ diff --git a/static/styles.css b/static/styles.css new file mode 100644 index 0000000..6a28601 --- /dev/null +++ b/static/styles.css @@ -0,0 +1,52 @@ +body { + background: linear-gradient(135deg, #2E3A59, #4A6FA5); /* Deep blue and soft gray-blue */ + color: white; + font-family: 'Arial', sans-serif; + height: 100vh; /* Ensure the body takes full viewport height */ + margin: 0; + display: flex; /* Use flexbox to center the content */ + justify-content: center; /* Horizontally center */ + align-items: center; /* Vertically center */ +} + +.container { + text-align: center; /* Center-align the text */ + max-width: 600px; /* Limit the width for better readability */ +} + +.logo { + width: 150px; + height: auto; + margin-bottom: 1rem; +} + +h1, .lead { + color: #F0F0F0; /* Softer white for contrast */ +} + +.form-control { + max-width: 300px; + border: 1px solid #6FA8DC; /* Light blue border */ + border-radius: 0.25rem; +} + +.btn { + background-color: #4A6FA5; /* Soft blue */ + border: none; + color: white; + padding: 0.5rem 1.5rem; + font-size: 1rem; + font-weight: bold; + border-radius: 0.25rem; + transition: background-color 0.3s ease; +} + +.btn:hover { + background-color: #3B5998; /* Darker blue on hover */ +} + +footer { + margin-top: 2rem; + font-size: 0.9rem; + color: #D0D0D0; /* Light gray for footer text */ +} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..2fd088d --- /dev/null +++ b/templates/index.html @@ -0,0 +1,24 @@ + + + + + + RideAware - Coming Soon + + + + +
+

RideAware

+

Our journey begins soon.

+ + +
+ +