From a0dc2c0e266521fd25d761d7b9cfe31c567423cf Mon Sep 17 00:00:00 2001 From: Rohit T P Date: Tue, 3 Oct 2023 12:46:12 +0530 Subject: [PATCH 1/2] fixes --- src/sections/Hero/Hero.jsx | 12 ++++++------ src/sections/Hero/Mobilenav.jsx | 6 +++--- src/sections/Hero/Nav.jsx | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/sections/Hero/Hero.jsx b/src/sections/Hero/Hero.jsx index e0ff8b3..ed1a49d 100644 --- a/src/sections/Hero/Hero.jsx +++ b/src/sections/Hero/Hero.jsx @@ -1,4 +1,4 @@ -import React, { Fragment, useState, useEffect } from 'react'; +import React, {Fragment, useState, useEffect} from 'react'; import Image from "next/image"; import Nav from "@/sections/Hero/Nav"; import Countdown from "@/sections/Hero/Countdown"; @@ -20,26 +20,26 @@ const Hero = () => { return ( -
+
- {isMobile ? :
- {"logo"} + {"logo"}

Make-A-Ton6.0

A 24 HOUR HACKATHON TO EMBRACE THE SPIRIT OF INNOVATION

4th - 5th November, 2023

- {"location"} + {"location"}

Cochin University of Science and Technology

- +
diff --git a/src/sections/Hero/Mobilenav.jsx b/src/sections/Hero/Mobilenav.jsx index cf88bc0..c2d65d1 100644 --- a/src/sections/Hero/Mobilenav.jsx +++ b/src/sections/Hero/Mobilenav.jsx @@ -62,10 +62,10 @@ const Mobilenav = () => { {navItems.map((item, index) => (
{item.name} diff --git a/src/sections/Hero/Nav.jsx b/src/sections/Hero/Nav.jsx index 3a19321..7f5b8bf 100644 --- a/src/sections/Hero/Nav.jsx +++ b/src/sections/Hero/Nav.jsx @@ -20,10 +20,10 @@ const Nav = () => { {navItems.map((item, index) => (
{item.name} From 0003bdbe9c438a8aa001d62913899f4acbe27907 Mon Sep 17 00:00:00 2001 From: Rohit T P Date: Tue, 3 Oct 2023 12:54:37 +0530 Subject: [PATCH 2/2] deploy --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ next.config.js | 4 ++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..517a9cb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: deploy-workflow +on: + push: + branches: ["main", "master"] + workflow_dispatch: +jobs: + deploy-job: + runs-on: ubuntu-latest + steps: + - name: Checks out repo + uses: actions/checkout@v3 + - name: Setup Node + id: setup-node + uses: actions/setup-node@v2 + with: + node-version: '18' + cache: 'npm' + # cache: 'npm' # https://github.com/actions/setup-node#caching-packages-dependencies + - name: Install Dependancies + run: npm ci + - run: npm run build + - name: Push Build + uses: s0/git-publish-subdir-action@develop + env: + REPO: self + BRANCH: build # The branch name where you want to push the assets + FOLDER: out # The directory where your assets are generated + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token + MESSAGE: "Build: {msg}" # The commit message diff --git a/next.config.js b/next.config.js index a843cbe..5e3c4a1 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + output: "export", + images: { + unoptimized: true, + } } module.exports = nextConfig