Skip to content

Commit

Permalink
fixed bug in project cards
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush4345 committed Mar 5, 2024
1 parent 809fa54 commit 57820df
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 95 deletions.
50 changes: 25 additions & 25 deletions src/app/help/page.jsx
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
export default function Helppage() {
return (
<section class=" min-h-[70vh] mt-20">
<div class="container px-6 py-12 mx-auto">
<div class="text-center">
<p class="font-medium text-purple-600 dark:text-purple-400">Contact us</p>
<section className=" min-h-[70vh] mt-20">
<div className="container px-6 py-12 mx-auto">
<div className="text-center">
<p className="font-medium text-purple-600 dark:text-purple-400">Contact us</p>

<h1 class="mt-2 text-2xl font-semibold text-gray-800 md:text-3xl">Get in touch</h1>
<h1 className="mt-2 text-2xl font-semibold text-gray-800 md:text-3xl">Get in touch</h1>

<p class="mt-3 text-gray-600">Our friendly team is always here to help.</p>
<p className="mt-3 text-gray-600">Our friendly team is always here to help.</p>
</div>

<div class="grid grid-cols-1 gap-6 mt-10 md:grid-cols-2 lg:grid-cols-3">
<div class="flex flex-col items-center justify-center text-center">
<span class="p-3 text-purple-600 rounded-full bg-purple-100/80">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<div className="grid grid-cols-1 gap-6 mt-10 md:grid-cols-2 lg:grid-cols-3">
<div className="flex flex-col items-center justify-center text-center">
<span className="p-3 text-purple-600 rounded-full bg-purple-100/80">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" className="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" />
</svg>
</span>

<h2 class="mt-4 text-lg font-medium text-gray-800">Email</h2>
<p class="mt-2 text-gray-600">Our team is here to help.</p>
<p class="mt-2 text-purple-600">[email protected]</p>
<h2 className="mt-4 text-lg font-medium text-gray-800">Email</h2>
<p className="mt-2 text-gray-600">Our team is here to help.</p>
<p className="mt-2 text-purple-600">[email protected]</p>
</div>
<div class="flex flex-col items-center justify-center text-center">
<span class="p-3 text-purple-600 rounded-full bg-purple-100/80">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<div className="flex flex-col items-center justify-center text-center">
<span className="p-3 text-purple-600 rounded-full bg-purple-100/80">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" className="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z" />
</svg>
</span>

<h2 class="mt-4 text-lg font-medium text-gray-800">Phone</h2>
<p class="mt-2 text-gray-600 dark:text-gray-400">Yash Jangid (Convenor)</p>
<p class="mt-2 text-purple-600 dark:text-purple-400">+91-9867466021</p>
<h2 className="mt-4 text-lg font-medium text-gray-800">Phone</h2>
<p className="mt-2 text-gray-600 dark:text-gray-400">Yash Jangid (Convenor)</p>
<p className="mt-2 text-purple-600 dark:text-purple-400">+91-9867466021</p>
</div>
<div class="flex flex-col items-center justify-center text-center">
<span class="p-3 text-purple-600 rounded-full bg-purple-100/80">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<div className="flex flex-col items-center justify-center text-center">
<span className="p-3 text-purple-600 rounded-full bg-purple-100/80">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" className="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z" />
</svg>
</span>

<h2 class="mt-4 text-lg font-medium text-gray-800">Phone</h2>
<p class="mt-2 text-gray-600 dark:text-gray-400">Ansh Bindlish (Joint Convenor)</p>
<p class="mt-2 text-purple-600 dark:text-purple-400">+91-9891350900</p>
<h2 className="mt-4 text-lg font-medium text-gray-800">Phone</h2>
<p className="mt-2 text-gray-600 dark:text-gray-400">Ansh Bindlish (Joint Convenor)</p>
<p className="mt-2 text-purple-600 dark:text-purple-400">+91-9891350900</p>
</div>
</div>
</div>
Expand Down
File renamed without changes.
19 changes: 9 additions & 10 deletions src/components/ProjectCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Link from 'next/link'

const ProjectCard = ({ project }) => {
return (
<Link href={`/projects/${project.project_slug}`}>
<div className="w-full xs:w-[320px] overflow-hidden flex justify-between flex-col h-full mx-auto bg-gray-50 rounded-lg relative hover:bg-gray-100 transition duration-300">
<div className="w-full xs:w-[320px] overflow-hidden flex justify-between flex-col h-full mx-auto bg-gray-50 rounded-lg relative hover:bg-gray-100 transition duration-300">
<Link href={`/projects/${project.project_slug}`}>
<div className="rounded-t-4">
<img className='w-full object-cover h-52' src={project.project_img_url} alt={project.title} />
</div>
Expand All @@ -15,15 +15,14 @@ const ProjectCard = ({ project }) => {
<h5 className="mb-2 text-2xl font-semibold tracking-tight text-black">{project.title}</h5>
<p className="mb-3 font-normal text-gray-700">({project.project_description.slice(0, 150) + "... see more"})</p>
</div>

</div>
<a href={project.github_url} className="inline-flex items-center px-3 py-2 mb-3 mx-3 text-sm font-medium text-center text-white bg-purple-700 rounded-lg hover:bg-purple-600 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" className="bi bi-github mr-2" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" />
</svg> Repository URL
</a>
</div>
</Link>
</Link>
<a href={project.github_url} className="inline-flex items-center px-3 py-2 mb-3 mx-3 text-sm font-medium text-center text-white bg-purple-700 rounded-lg hover:bg-purple-600 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" className="bi bi-github mr-2" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" />
</svg> Repository URL
</a>
</div>
);
};

Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 57820df

Please sign in to comment.