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
4 changes: 2 additions & 2 deletions app/(pages)/about/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ const People = {
],
studentEditors: [
{
name: 'Keshav Arora',
name: 'Sachin Pathak',
role: 'Developer and Maintainer',
designation: 'UG Student, CSE 3rd year',
description: 'None',
profile: 'https://avatars.githubusercontent.com/u/124811079',
profile: 'https://avatars.githubusercontent.com/u/103988614?v=4',
links: [
{ to: 'https://www.linkedin.com/in/keshav-arora-a5a20325b', icon: 'linkedin' },
{ to: 'https://github.com/keshav7104/', icon: 'github' },
Expand Down
11 changes: 10 additions & 1 deletion app/(pages)/layout.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
'use client'
import Navbar from '@/components/navbar/';
import Footer from '@/components/footer/';
import styles from './layout.module.scss';
import { useEffect,useState } from 'react';

export default function Layout({ children }) {
const [Visitors, setVisitors] = useState(0)
useEffect(()=>{
const storedCount = localStorage.getItem("page-Visits");
const initialCount = Number(storedCount) || 0;
setVisitors(initialCount+1);
localStorage.setItem("page-Visits",initialCount+1);
},[]);
return (<>
<Navbar />
<main className={styles.main}>
{children}
</main>
<Footer />
<Footer Visits={Visitors} />
</>)
}
8 changes: 8 additions & 0 deletions components/footer/Footer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
margin-bottom: 0.4rem;
}

.visits{
margin-top: 0.4rem ;
font-size: 1rem;
span{
font-size: 1.5rem;
}
}

section {
flex-grow: 1;
margin-right: 4rem;
Expand Down
3 changes: 2 additions & 1 deletion components/footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const crimson_text = Crimson_Text({ display: 'swap', subsets: ['latin'], weight:
const cormorant = Cormorant({ display: 'swap', subsets: ['latin'], weight: ['300', '400', '500', '600', '700'], styles: ['normal', 'italic'] })
const zilla_slab = Zilla_Slab({ display: 'swap', subsets: ['latin'], weight: ['300', '400'] })

const Footer = ({ className = '' }) => {
const Footer = ({ className = '',Visits=0 }) => {
return (
<footer className={[styles.footer, crimson_text.className, className].join(' ')}>
<div className={['container', styles['info-Footer']].join(' ')}>
Expand All @@ -15,6 +15,7 @@ const Footer = ({ className = '' }) => {
<div>
<p className={[styles.tagline, cormorant.className].join(' ')}>The Technical Meraki of Arunachal</p>
<p>National Institute of Technology,<br />Arunachal Pradesh</p>
{Visits && <p className={[styles.visits,cormorant.className].join(' ')}>Our Readers:- <span>{Visits}</span></p>}
</div>
</section>
<section>
Expand Down