Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #10

Open
wants to merge 2 commits into
base: testing
Choose a base branch
from
Open

test #10

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions components/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import styles from '../styles/Header.module.css';
export default function Header() {
return (
<div className={styles.container}>
<div className={styles.pageheader}>
<div className={styles.container}>
<div className={styles.row}>
<div className="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<div className={styles.pagecaption}>
<h1 style={{color:"white"}} className={styles.pagetitle}>x<span>Blogger</span></h1>
</div>
</div>
</div>
</div>
</div>

<div className={styles.cardsection}>
<div className={styles.container}>
<div className={styles.cardblock}>
<div className={styles.row}>
<div className="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">

<div className={styles.sectiontitle}>
<h2>All about Hike. We share our knowledge on blog</h2>
<p>Our approach is very simple: we define your problem and give the best solution. </p>
</div>

</div>
<hr></hr>
</div>
</div>

</div>
</div>
</div >
)
}
82 changes: 82 additions & 0 deletions components/Publications.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import styles from "../styles/Publications.module.css";
import Link from "next/link";
const posts = [
{
id: 1,
name: "Rohan Patidar",
title: "Full stack Developer",
image: "https://picsum.photos/130/130?image=1027",
description: "Hello everyone dwbefuw wcrwuer cweuircw er fecwue r cefwuer wefcwbe werwcer cweuiri ecwr"
},
{
id: 2,
name: "Kevin",
title: "Full stack Developer",
image: "https://picsum.photos/130/130?image=1027",
description: "Hello everyone dwbefuw wcrwuer cweuircw er fecwue r cefwuer wefcwbe werwcer cweuiri ecwr"
},
{
id: 3,
name: "Gracy Patel",
title: "Full stack Developer",
image: "https://picsum.photos/130/130?image=1027",
description: "Hello everyone dwbefuw wcrwuer cweuircw er fecwue r cefwuer wefcwbe werwcer cweuiri ecwr"
},
{
id: 4,
name: "Rohan Patidar",
title: "Full stack Developer",
image: "https://picsum.photos/130/130?image=1027",
description: "Hello everyone dwbefuw wcrwuer cweuircw er fecwue r cefwuer wefcwbe werwcer cweuiri ecwr"
},
{
id: 5,
name: "Rohan Patidar",
title: "Full stack Developer",
image: "https://picsum.photos/130/130?image=1027",
description: "Hello everyone dwbefuw wcrwuer cweuircw er fecwue r cefwuer wefcwbe werwcer cweuiri ecwr"
},
{
id: 6,
name: "Rohan Patidar",
title: "Full stack Developer",
image: "https://picsum.photos/130/130?image=1027",
description: "Hello everyone dwbefuw wcrwuer cweuircw er fecwue r cefwuer wefcwbe werwcer cweuiri ecwr"
}
]
export default function Publications() {
posts.map(post => {
if(post.description.length>=80){
post.description=post.description.substring(0,80)+"...";
}
});
return (
<div className={styles.container}>
{posts.map(post =>
(
<Link href="#">
<div className={styles.row} key={post.id}>
<div className="{styles.col-12 col-sm-6 col-md-4 col-lg-3">
<div className={styles.ourteam}>
<div className={styles.picture}>
<img className={styles.imgfluid} src={post.image} />
</div>
<div className={styles.teamcontent}>
<h3 className={styles.name}>{post.name}</h3>
<h4 className={styles.title}>{post.title}</h4>
<p className={styles.description}>{post.description}<Link href="#"><a>read more</a></Link></p>
</div>
<ul className={styles.social}>
<li><a href="#profile" className={styles.follow} id={styles.first} aria-hidden="true">View</a></li>

<li><a href="#follow" className={styles.follow} id={styles.second} aria-hidden="true">Follow</a></li>

</ul>
</div>

</div>
</div></Link>
))}
</div>
)
}
6 changes: 5 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import Layout from '../components/Layout';
import { getAllPosts } from '../lib/api';
import { PostType } from '../types/post';
import {useSession } from "next-auth/client";
import Login from './login'
import Login from './login';
import Header from '../components/Header';
import Publications from '../components/Publications';
type IndexProps = {
posts: PostType[];
};
Expand All @@ -24,6 +26,8 @@ export const Index = ({ posts }: IndexProps): JSX.Element => {
{
return (
<Layout>
<Header />
<Publications />
<h1>Home Page</h1>
<p>Next.js starter for your next blog or personal site. Built with:</p>
<ul className="list-disc pl-4 my-6">
Expand Down
50 changes: 50 additions & 0 deletions styles/Header.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.conatiner { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: 'Overpass', sans-serif; letter-spacing: 0px; font-size: 17px; color: #8d8f90; font-weight: 400; line-height: 32px; background-color: #edefef; }
.container h2{ color: #25292a; margin: 0px 0px 10px 0px; font-family: 'Overpass', sans-serif; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.container h1{ color: #25292a; margin: 0px 0px 10px 0px; font-family: 'Overpass', sans-serif; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.container h1 { font-size: 34px; }
.container h2 { font-size: 28px; line-height: 38px; }
.container h3 { font-size: 22px; line-height: 32px; }
.container h4 { font-size: 20px; }
.container h5 { font-size: 17px; }
.container h6 { font-size: 12px; }
.container p { margin: 0 0 20px; line-height: 1.7; }
.container p:last-child { margin: 0px; }

.container a { text-decoration: none; color: #8d8f90; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; }
.container a:focus{ text-decoration: none; color: #f85759; }
.container a:hover { text-decoration: none; color: #f85759; }



.pageheader {
border-radius: 0 0 30% 30%;
background: url(https://easetemplate.com/free-website-templates/hike/images/pageheader.jpg)no-repeat; position: relative; background-size: cover; }
.pagecaption { padding-top: 170px; padding-bottom: 174px; }
.pagetitle { font-size: 46px; line-height: 1; color: #fff; font-weight: 600;;

}

.cardsection { position: relative; bottom: 60px; }
.cardblock { padding: 80px; }
.sectiontitle { margin-bottom: 60px; text-align: center; }

.pagetitle span{
color:rgb(223, 212, 66);
}
.pagecaption{
position: relative;
left:25px;
top:-140px;
}
@media (max-width:600px) {
.pageheader{
border-radius: 0 0 50% 50%;
}
.sectiontitle{
font-size: 15px;
}
.sectiontitle h2{
line-height: -10px;
font-size: 25px;
}
}
157 changes: 157 additions & 0 deletions styles/Publications.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
.container {
font-family: tahoma;
display: grid;
grid-template-columns: auto auto auto;
align-items: center;
}
/* .container{
display: grid;
} */
.ourteam {
padding: 30px 0 40px;
margin-bottom: 30px;
background-color: white;
text-align: center;
overflow: hidden;
position: relative;
border: 2px solid yellow;
border-radius: 15px;
margin: 10px;
}

.ourteam .picture {
display: inline-block;
height: 130px;
width: 130px;
margin-bottom: 50px;
z-index: 1;
position: relative;
}

.ourteam .picture::before {
content: "";
width: 100%;
height: 0;
border-radius: 50%;
background-color: yellow;
position: absolute;
bottom: 135%;
right: 0;
left: 0;
opacity: 0.9;
transform: scale(3);
transition: all 0.3s linear 0s;
}

.ourteam:hover .picture::before {
height: 100%;
}

.ourteam .picture::after {
content: "";
width: 100%;
height: 100%;
border-radius: 50%;
background-color: yellow;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}

.ourteam .picture img {
width: 100%;
height: auto;
border-radius: 50%;
transform: scale(1);
transition: all 0.9s ease 0s;
}

.ourteam .picture img {
box-shadow: 0 0 0 14px #f7f5ec;
transform: scale(0.7);
}

.ourteam .title {
display: block;
font-size: 15px;
color:rgba(109, 84, 3, 0.411);
text-transform: capitalize;
position: relative;
top:-10px;
}

.ourteam .social {
width: 100%;
padding: 0;
margin: 0;
background-color: #51d630;
position: absolute;
bottom: -100px;
left: 0;
transition: all 0.5s ease 0s;
}

.ourteam:hover .social {
bottom: 0;
}

.ourteam .social li {
display: inline-block;
}

.ourteam .social li a {
display: block;
padding: 10px;
font-size: 17px;
color: white;
transition: all 0.3s ease 0s;
text-decoration: none;
}

.ourteam .social li a:hover {
color: rgb(212, 212, 32);
background-color: hsl(140, 83%, 44%);
}
@media (max-width:900px){
.container{
grid-template-columns: auto auto;
}
}
@media (max-width:650px){
.container{
grid-template-columns: auto;
}
.ourteam .picture::before {
height: 100%;
}
.ourteam .picture img {
box-shadow: 0 0 0 14px #f7f5ec;
transform: scale(0.7);
}
.ourteam .social {
bottom: 0;
}
.ourteam .social li a {
color: yellow;
}
}
.follow{
border-radius: 30px;
}
.description{
color: teal;
}
#first{
position: relative;
left: -23px;
}
#second{
position: relative;
right: -30px;
}
.name{
position: relative;
top:-15px;
color: black;
}