Skip to content

Commit

Permalink
Merge branch 'main' into Sowdarjya
Browse files Browse the repository at this point in the history
  • Loading branch information
Mujtabaa07 authored Jan 2, 2025
2 parents c41ba7b + acbe8e7 commit 575378e
Show file tree
Hide file tree
Showing 16 changed files with 586 additions and 223 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/greetings.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/preview.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/production.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/pull-request.yaml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/welcome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Welcome New Contributors

on:
issues:
types: [opened]
pull_request_target:
types: [opened]

jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.COFFEE_SHOP_GITHUB_TOKEN }}
issue-message: |
Congratulations! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work!
pr-message: |
Great job! 🎉 Thank you for submitting your pull request. Your contribution is valuable and we appreciate your efforts to improve our project.
32 changes: 32 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Stage 1: Build the React application
FROM node:18 AS builder

# Set working directory inside the container
WORKDIR /app

# Copy package.json and package-lock.json
COPY package.json ./

# Install dependencies
RUN npm install

# Copy all source code
COPY . .

# Build the React app
RUN npm run build

# Stage 2: Serve the application with Nginx
FROM nginx:stable-alpine

# Copy the built files from the previous stage
COPY --from=builder /app/build /usr/share/nginx/html

# Copy the Nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf

# Expose the port
EXPOSE 80

# Start the Nginx server
CMD ["nginx", "-g", "daemon off;"]
15 changes: 15 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server {
listen 80;

server_name localhost;

root /usr/share/nginx/html;

index index.html;

location / {
try_files $uri /index.html;
}

error_page 404 /index.html;
}
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react-locomotive-scroll": "^0.2.2",
"react-redux": "^9.1.2",
"react-router-dom": "^6.26.2",
"react-scripts": "5.0.1",
"react-scripts": "^5.0.1",
"scrolltrigger": "^1.0.1",
"styled-components": "^6.1.13",
"web-vitals": "^2.1.4"
Expand Down
7 changes: 7 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<link href="./App.css" rel="stylesheet">
<link href="./index.css" rel="stylesheet">
<title>MsCafe</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
</head>
Expand All @@ -44,6 +45,12 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->

<!-- Scroll to Top Button -->
<button id="scrollToTop" title="Go to top">
<i class="fa-solid fa-arrow-up fa-lg"></i>
</button>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>
18 changes: 9 additions & 9 deletions src/Pages/Home.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* CafeHome.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap");

:root {
--primary-coffee: #8B4513;
--secondary-coffee: #D2691E;
--cream: #FFE4B5;
--light-cream: #FDF5E6;
--dark-coffee: #2C130B;
--primary-coffee: #8b4513;
--secondary-coffee: #d2691e;
--cream: #ffe4b5;
--light-cream: #fdf5e6;
--dark-coffee: #2c130b;
}

/* Custom Scrollbar */
Expand Down Expand Up @@ -79,11 +79,11 @@ html {
.hero-section {
background-attachment: scroll;
}

.feature-card {
margin: 1rem;
}

.specialty-image {
width: 250px;
height: 250px;
Expand All @@ -95,4 +95,4 @@ html {
::selection {
background: var(--secondary-coffee);
color: var(--cream);
}
}
17 changes: 17 additions & 0 deletions src/Pages/Home.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import React, { useEffect, useRef } from "react";
import { Link } from "react-router-dom";
import { gsap } from "gsap";
Expand All @@ -7,6 +8,16 @@ import { motion } from "framer-motion";
import Button from "../componets/Button";
import "./Home.css";

import { motion } from 'framer-motion';
import { gsap } from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
import React, { useEffect, useRef } from 'react';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import Button from '../componets/Button';
import './Home.css';


gsap.registerPlugin(ScrollTrigger);

const HomeContainer = styled.div`
Expand Down Expand Up @@ -284,6 +295,7 @@ function Home() {
</Link>
<ScrollIndicator></ScrollIndicator>
</HeroSection>

<FeaturesSection
ref={featuresRef}
className="grid md:grid-cols-3 sm:grid-cols-2 gap-4 grid-cols-1"
Expand All @@ -293,6 +305,11 @@ function Home() {
src="https://img.freepik.com/free-photo/side-view-fresh-coffee-beans-falling-out-black-basket-red-background_141793-27586.jpg?t=st=1727759694~exp=1727763294~hmac=661c2c2b8c561df98b21f74effb9bb02a0875b0584c062f076bceafa5d6f7eda&w=1380"
alt="Quality Beans"
/>

<FeaturesSection ref={featuresRef} className="hover:cursor-pointer">
<FeatureCard >
<FeatureIcon src="https://img.freepik.com/free-photo/side-view-fresh-coffee-beans-falling-out-black-basket-red-background_141793-27586.jpg?t=st=1727759694~exp=1727763294~hmac=661c2c2b8c561df98b21f74effb9bb02a0875b0584c062f076bceafa5d6f7eda&w=1380" alt="Quality Beans" />

<FeatureTitle>Premium Beans</FeatureTitle>
<FeatureDescription>
We source the finest coffee beans from around the world.
Expand Down
Loading

0 comments on commit 575378e

Please sign in to comment.