generated from gdsc-nits-org/next-js-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the footer static variables to dyanmic variables
- Loading branch information
Showing
31 changed files
with
917 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
{ | ||
"extends": ["next/core-web-vitals", "prettier"], | ||
"plugins": ["prettier"], | ||
"ignorePatterns": ["node_modules/", ".next/", "next.config.js", ".linterstagedrc.js"] | ||
"ignorePatterns": [ | ||
"node_modules/", | ||
".next/", | ||
"next.config.js", | ||
".linterstagedrc.js" | ||
] | ||
} |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from "react"; | ||
import styles from "./Footer.module.scss"; | ||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
|
||
const Footer = () => { | ||
return ( | ||
<footer className={styles.footer}> | ||
<div className={styles.logoAndquick}> | ||
<div className={styles.logo}> | ||
<Link href="/"> | ||
<Image src="/logo.svg" alt="logo" width={200} height={200} /> | ||
</Link> | ||
</div> | ||
|
||
<div className={styles.quickLinks}> | ||
<div className={styles.footerLinks}> | ||
<h3 className={styles.footerQuickLinks}>Quick Links</h3> | ||
<li> | ||
<Link href="/about">About Us</Link> | ||
</li> | ||
<li> | ||
<Link href="/contact">Editor</Link> | ||
</li> | ||
<li> | ||
<Link href="/contact">Team</Link> | ||
</li> | ||
</div> | ||
</div> | ||
</div> | ||
<div className={styles.gdsclogo}> | ||
<Link href="https://gdsc.community.dev/national-institute-of-technology-nit-silchar/"> | ||
<Image src="/Gdsc logo.svg" width={250} height={100} /> | ||
</Link> | ||
</div> | ||
<div className={styles.footerLine}></div> | ||
<p className={styles.footerCopyright}> | ||
©Copyright 2024, National Institute Of Technology, Silchar | ||
</p> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); | ||
|
||
.footer { | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
font-family: "Poppins", sans-serif; | ||
align-items: center; | ||
border-radius: 2rem 2rem 0 0; | ||
background-color: white; | ||
color: black; | ||
border-top: 1px solid rgba(0, 0, 0, 0.1); | ||
flex-wrap: wrap; | ||
width: 100%; | ||
position: fixed; | ||
bottom: 0; | ||
left: 0; | ||
padding: 1rem; | ||
|
||
a { | ||
color: black; | ||
text-decoration: none; | ||
font-size: 1.15rem; | ||
} | ||
.logoAndquick { | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.logo { | ||
width: 100%; | ||
height: auto; | ||
margin-left: 10rem; | ||
} | ||
|
||
.quickLinks { | ||
width: 100%; | ||
margin-top: 3rem; | ||
margin-left: 10rem; | ||
} | ||
.footerLinks { | ||
list-style: none; | ||
} | ||
|
||
.footerQuickLinks { | ||
font-weight: 300; | ||
text-decoration: underline; | ||
} | ||
|
||
.footerLinks a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.footerLine { | ||
width: 100%; | ||
height: 0.05rem; | ||
background: linear-gradient(to right, transparent, black, transparent); | ||
} | ||
|
||
.footerCopyright { | ||
display: flex; | ||
justify-content: center; | ||
color: black; | ||
margin-top: 2rem; | ||
transform: translate(-5%, 0%); | ||
text-align: center; | ||
} | ||
|
||
.gdsclogo { | ||
width: 100%; | ||
align-items: center; | ||
text-align: center; | ||
margin-top: -2rem; | ||
height: 4rem; | ||
} | ||
|
||
@media (max-width: 1024px) { | ||
.logoAndquick { | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.quickLinks { | ||
margin-top: 1.5rem; | ||
margin-left: 0; | ||
} | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.logoAndquick { | ||
margin-left: 0; | ||
} | ||
|
||
.quickLinks { | ||
margin-top: 1.5rem; | ||
margin-left: 0; | ||
} | ||
} | ||
|
||
@media (max-width: 480px) { | ||
.logoAndquick { | ||
padding: 0; | ||
} | ||
|
||
.logo { | ||
margin-left: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { useState } from "react"; | ||
import { Icon } from "@iconify/react"; | ||
import closeIcon from "@iconify/icons-mdi/close-circle-outline"; | ||
import styles from "./Landing.module.scss"; | ||
import { Editor } from "@monaco-editor/react"; | ||
|
||
const Landing = () => { | ||
const [hash, setHash] = useState(""); | ||
function clearHash() { | ||
setHash(""); | ||
} | ||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.welcome}> | ||
<span className={styles.welcome_text}>Welcome to CodeShare</span> | ||
<div className={styles.welcome_description}> | ||
Gorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc | ||
vulputate libero et velit interdum, ac aliquet odio mattis.Gorem ipsum | ||
dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et | ||
velit interdum, ac aliquet odio mattis. | ||
</div> | ||
<div className={styles.buttons_search}> | ||
<button className={styles.button}>Search</button> | ||
<div className={styles.input_container}> | ||
<input | ||
type="text" | ||
placeholder="Input" | ||
value={hash} | ||
className={styles.input} | ||
onChange={(e) => { | ||
setHash(e.target.value); | ||
}} | ||
/> | ||
<Icon | ||
icon={closeIcon} | ||
className={styles.cross} | ||
onClick={clearHash} | ||
/> | ||
<span className={styles.text}>Hash Code</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div className={styles.welcome}> | ||
<span className={styles.welcome_text}>About Us</span> | ||
<div className={styles.welcome_description}> | ||
Gorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc | ||
vulputate libero et velit interdum, ac aliquet odio mattis.Gorem ipsum | ||
dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et | ||
velit interdum, ac aliquet odio mattis. | ||
</div> | ||
</div> | ||
<div className={styles.editor} id="editor"> | ||
<span className={styles.heading}>Save Your Code</span> | ||
<Editor height="60vh" width="70vw" theme="vs-dark" /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Landing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
.container { | ||
height: 100vh; | ||
background-color: var(--gdsc-bg-2-100); | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 5rem 4rem 0 4rem; | ||
color: var(--white-text-1-100); | ||
.welcome { | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
.welcome_text { | ||
font-size: 3rem; | ||
flex: 2; | ||
} | ||
.welcome_description { | ||
font-size: 1.5rem; | ||
flex: 6; | ||
margin-top: 3rem; | ||
width: 60%; | ||
padding-bottom: 2rem; | ||
@media (max-width: 768px) { | ||
width: 95%; | ||
} | ||
} | ||
.buttons_search { | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: center; | ||
margin-bottom: 5rem; | ||
.button { | ||
width: 11.5%; | ||
cursor: pointer; | ||
background-color: var(--black-text-1-100); | ||
color: var(--white-text-1-100); | ||
font-size: 1.2rem; | ||
margin-right: 2rem; | ||
padding: 1.6rem 1.8rem; | ||
border-radius: 1rem; | ||
border: none; | ||
min-width: 160px; | ||
@media (max-width: 768px) { | ||
width: 30%; | ||
} | ||
} | ||
.input_container { | ||
position: relative; | ||
width: 20%; | ||
min-width: 200px; | ||
.input { | ||
width: 100%; | ||
padding: 1.6rem 1.2rem 1rem 1.2rem; | ||
border-radius: 12px; | ||
color: var(--black-text-1-100); | ||
font-size: 1.4rem; | ||
padding-left: 1.5rem; | ||
border: none; | ||
} | ||
.text { | ||
position: absolute; | ||
font-size: 0.8rem; | ||
left: 1.5rem; | ||
top: 0.4rem; | ||
color: var(--grey-text-2-100); | ||
} | ||
.cross { | ||
position: absolute; | ||
font-size: 2rem; | ||
top: 1rem; | ||
right: 1rem; | ||
cursor: pointer; | ||
z-index: 2; | ||
color: var(--gdsc-bg-2-100); | ||
} | ||
@media (max-width: 768px) { | ||
width: 50%; | ||
} | ||
} | ||
} | ||
} | ||
.editor { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2rem; | ||
justify-content: center; | ||
.heading { | ||
font-size: 3rem; | ||
flex: 2; | ||
} | ||
} | ||
} |
Oops, something went wrong.