Skip to content

Commit

Permalink
feat(blog): designed blogpage
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil-athiban committed Aug 2, 2023
1 parent 4bb0ee1 commit a1af17b
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 58 deletions.
Binary file added src/assets/image/anime1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/anime2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/anime3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ import loginImgGif from "./image/loginImg.png";
import googleImg from "./image/google-48.webp";
import gssoc from "./../assets/image/gssoc.webp";
import newLogo from "../assets/image/newLogo.png";
import anime1 from "../assets/image/anime1.png";
import anime2 from "../assets/image/anime2.jpeg";
import anime3 from "../assets/image/anime3.png";
export {
anime1,
anime2,
anime3,
newLogo,
hero,
ai,
Expand Down
24 changes: 19 additions & 5 deletions src/components/BlogCard/bcard.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
import React from "react";
import { anime1, anime2 } from "../../assets";
export default function Card(props) {
return (
<div className="m-4 rounded-lg flex flex-col justify-center">
<div className="m-4 flex flex-col justify-center shadow-lg shadow-indigo-500/40 p-5 bg-slate-800 rounded-lg">
<img src={props.image} className="mb-4" />
<p className="text-slate-400 text-sm lg:text-lg m-2 text-left">
T-SHIRT DESIGN TIPS
</p>
<p className="text-slate-300 font-medium text-base lg:text-lg m-2 overflow-hidden text-left">
<p className="text-slate-300 font-medium text-2xl lg:text-xl overflow-hidden text-left">
{props.title}
</p>
<p className="text-slate-300 font-thin text-xs lg:text-sm overflow-hidden text-left mt-4 mb-4">
{props.desc}
</p>
<div className="flex align-items items-center justify-between pt-3 pb-3">
<div className="flex justify-between align-items items-center ">
<img
src={props.avatar}
alt=""
className="w-[40px] h-[40px] rounded-full mr-2"
/>
<h1 className="text-xl text-gray-300">{props.author}</h1>
</div>
<div>
<p className="text-normal text-gray-300">{props.date}</p>
</div>
</div>
</div>
);
}
24 changes: 24 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,30 @@
animation: bg-spin 3s linear infinite;
}

.blog {
--border-size: 3px;
--border-angle: 0turn;
background-image: conic-gradient(from var(--border-angle), #213, #112 50%, #213),
conic-gradient(from var(--border-angle), transparent 20%, #08f, #f03);
background-size: calc(100% - (var(--border-size) * 2))
calc(100% - (var(--border-size) * 2)),
cover;
background-position: center center;
background-repeat: no-repeat;
animation: bg-spin 3s linear infinite;
}

.blogtitle {
--border-size: 3px;
--border-angle: 0turn;
background-image: conic-gradient(from var(--border-angle), #213, #112 50%, #213),
conic-gradient(from var(--border-angle), transparent 20%, #08f, #f03);
background-size: calc(100% - (var(--border-size) * 2))
calc(100% - (var(--border-size) * 2)),
cover;
background-position: center center;
}

@keyframes bg-spin {
to {
--border-angle: 1turn;
Expand Down
96 changes: 62 additions & 34 deletions src/pages/Blog/Blog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,73 @@ function Blog() {
return <Card key={item.id} {...item} />;
});
return (
<div style={{ fontFamily: "Poppins, sans-serif" }} className="bg-black">
<div className="grid justify-center text-white p-6 text-center pt-[10%]">
<p className="text-lg md:text-xl lg:text-3xl text-purple-400 m-4">
<div
style={{ fontFamily: "Poppins, sans-serif" }}
className="bg-black bg-[#110F0F] blogtitle"
>
<div className="grid justify-center p-6 text-center pt-[2%] ">
<p className="text-lg md:text-xl lg:text-3xl m-4 text-[#9400D3] font-bold">
Our Blog
</p>
<p className="text-3xl md:text-4xl lg:text-5xl font-semibold">
<p className="text-3xl md:text-4xl lg:text-5xl font-semibold text-[#D8BFD8]">
Resouces and Insights
</p>
<p className="text-sm md:text-lg lg:text-xl mt-4 font-thin">
<p className="text-sm md:text-lg lg:text-xl mt-4 font-thin text-[#D8BFD8]">
The latest industry news, interviews, technologies, and resources.
</p>
</div>
<div className="flex justify-center">

<div className="flex justify-center lg:m-6 items-center p-2 align-items items-center gap-5">
<img src={blogImage1} alt="blogImage 1" className="md:m-2 m-3" />
<div className="flex flex-col rounded-md md:backdrop-blur-md text-white font-medium max-w-[760px]">
<p className="text-sm lg:text-lg m-2 border-2 p-2 max-w-[200px] items-center text-center rounded-lg mt-5">
Ecosystem
</p>
<p className="text-lg md:text-xl lg:text-4xl m-2 font-semibold text-[#9400D3]">
Introducing the captivating ecosystem of T-shirt design
</p>
<p className="font-light text-xs lg:text-lg m-2 text-[#D8BFD8]">
Embark on an exciting journey to master the art of crafting mesmerizing
T-shirt designs that ignite imaginations and steal glances. Prepare to
unleash your creative prowess, armed with indispensable tips that will
elevate your designs to new heights of excellence.
</p>
<div className="inline-flex md:mb-6 mt-4 align-items items-center">
<img src={ceo} alt="ceo image" className="ml-4 h-[10%] w-[10%]" />
<div className="flex flex-col m-6">
<p className="font-bold text-white">AMAN JAIMAN</p>
<p className="font-light text-slate-100">Founder & CEO</p>
</div>
</div>
</div>
</div>

{/* blog subsription */}
<div className="blog flex justify-between mt-10 mb-10 border align-items items-center p-5 ml-60 mr-60 rounded-2xl blogtitle">
<div className="text ml-2">
<h1 className="text-xl p-2 text-[#D8BFD8]">
{" "}
<span className="font-semibold text-2xl text-[#9400D3]">
Subscribe
</span>{" "}
to our blog!
</h1>
<p className="text-xl p-2 text-[#D8BFD8]">
Get our fresh, new content straight to your inbox
</p>
</div>
<div className="mr-2">
<button className="border-2 rounded-3xl p-3 bg-gradient-to-r from-violet-600 to-purple-500 border-2 border-gray-400">
Subscribe now
</button>
</div>
</div>

<div className="flex justify-center mt-20 blogtitle">
<div className="inline-flex bg-white shadow-md shadow-slate-600 rounded-xl w-[70%]">
<img src={searchIcon} alt="search icon" className="p-3 w-12 lg:w-16" />
<input
className="w-[50vw] lg:w-[40vw] lg:h-16 rounded-xl p-2 outline-none"
className="w-[40vw] lg:w-[40vw] lg:h-16 rounded-xl p-2 outline-none"
label="Search"
placeholder="Search for articles"
type="search"
Expand All @@ -41,45 +91,23 @@ function Blog() {
<div className="w-auto h-auto text-slate-300 p-2 hover:bg-purple-300 hover:font-semibold hover:text-slate-800 border rounded-2xl border-slate-500 m-2">
All posts
</div>
<div className="w-auto h-auto text-slate-300 p-2 hover:bg-purple-300 hover:font-semibold hover:text-slate-800 border rounded-2xl border-slate-500 m-2">
<div className="w-auto h-auto text-slate-300 p-3 hover:bg-purple-300 hover:font-semibold hover:text-slate-800 border rounded-2xl border-slate-500 m-2">
T-shirt design tips
</div>
<div className="w-auto h-auto text-slate-300 p-2 hover:bg-purple-300 hover:font-semibold hover:text-slate-800 border rounded-2xl border-slate-500 m-2">
<div className="w-auto h-auto text-slate-300 p-3 hover:bg-purple-300 hover:font-semibold hover:text-slate-800 border rounded-2xl border-slate-500 m-2">
Printing Techniques
</div>
<div className="w-auto h-auto text-slate-300 p-2 hover:bg-purple-300 hover:font-semibold hover:text-slate-800 border rounded-2xl border-slate-500 m-2">
<div className="w-auto h-auto text-slate-300 p-3 hover:bg-purple-300 hover:font-semibold hover:text-slate-800 border rounded-2xl border-slate-500 m-2">
Fashion Trends
</div>
</div>
</div>
<div className="flex flex-col justify-center lg:m-6 items-center">
<img src={blogImage1} alt="blogImage 1" className="md:m-2 m-4 w-9/12" />
<div className="flex flex-col md:-mt-[15rem] lg:-mt-[18rem]p-4 m-2 w-9/12 rounded-md md:backdrop-blur-md text-white font-medium">
<p className="text-sm lg:text-lg m-2">T-SHIRT DESIGN TIPS</p>
<p className="text-lg md:text-xl lg:text-4xl m-2 font-semibold">
Essential Tips for Creating Eye-Catching T-shirts
</p>
<p className="font-light text-xs lg:text-lg m-2">
Discover the essential tips and techniques you need to master the art of
creating eye-catching T-shirt designs.
</p>
<div className="inline-flex md:mb-6 mt-4 ">
<img src={ceo} alt="ceo image" className="w-auto ml-4" />
<div className="flex flex-col m-6">
<p className="font-bold text-white">AMAN JAIMAN</p>
<p className="font-light text-slate-100">Founder & CEO</p>
</div>
</div>
</div>
</div>
<div className="items-center">
<p className="text-slate-100 font-semibold text-2xl lg:text-4xl m-4 mb-14 grid justify-center items-center">
<p className="font-semibold text-2xl lg:text-4xl m-2 mb-4 mt-4 grid justify-center items-center text-[#9400D3]">
Our Articles
</p>
<div className="flex justify-center">
<div className="grid lg:grid-cols-3 md:grid-cols-2 w-9/12">
{blogCard}
</div>
<div className="grid lg:grid-cols-3 md:grid-cols-2 w-9/12">{blogCard}</div>
</div>
</div>
<NewsLetter />
Expand Down
52 changes: 33 additions & 19 deletions src/store/blogData.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,56 @@
import tips from "./../assets/image/tips.webp";
import design from "./../assets/image/design.webp";
import pro from "./../assets/image/pro.webp";

import { anime1, anime2, anime3 } from "../assets";
export default [
{
id: 1,
image: tips,
title:
"From Concept to Creation: Proven Tips for Crafting Striking T-shirt Designs",
avatar: anime1,
desc: "Unlock the secrets of crafting eye-catching T-shirt designs with this comprehensive guide. Discover proven tips and techniques that take you from concept to creation,.....",
author: "Morgan",
date: "Jan 30, 2023",
},

{
id: 2,
image: design,
title: "A Guide to T-shirt Design Success: Tips and Techniques You Need to Know",
avatar: anime2,
desc: "Embark on a journey to T-shirt design success with this indispensable guide. Learn essential tips and techniques that will elevate your designs to new heights.... ",
author: "Henry",
date: "May 1, 2023",
},
{
id: 3,
image: pro,
title:
"Design Like a Pro: 10 Essential Tips for Creating Professional T-shirt Artwork",
avatar: anime3,
desc: "Elevate your T-shirt designs to professional levels with these ten essential tips. Unravel the secrets that seasoned designers use to create stunning T-shirt artwork..... ",
author: "Rosy",
date: "July 7, 2023",
},
{
id: 4,
image: tips,
title:
"From Concept to Creation: Proven Tips for Crafting Striking T-shirt Designs",
},
// {
// id: 4,
// image: tips,
// title:
// "From Concept to Creation: Proven Tips for Crafting Striking T-shirt Designs",
// avatar: {anime2},
// },

{
id: 5,
image: design,
title: "A Guide to T-shirt Design Success: Tips and Techniques You Need to Know",
},
{
id: 6,
image: pro,
title:
"Design Like a Pro: 10 Essential Tips for Creating Professional T-shirt Artwork",
},
// {
// id: 5,
// image: design,
// title: "A Guide to T-shirt Design Success: Tips and Techniques You Need to Know",
// avatar: {anime2},
// },
// {
// id: 6,
// image: pro,
// title:
// "Design Like a Pro: 10 Essential Tips for Creating Professional T-shirt Artwork",
// avatar: {anime2},
// },
];

0 comments on commit a1af17b

Please sign in to comment.