Skip to content

Commit

Permalink
fix: fixed no-link text(#424)
Browse files Browse the repository at this point in the history
* Fixed Coming Soon.tsx.Added styles to globals.css

* added suggestions

* added media responsivness
  • Loading branch information
JA-26-01 authored Apr 14, 2023
1 parent 77084e8 commit 522e8cf
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 16 deletions.
15 changes: 0 additions & 15 deletions components/ComingSoon/ComingSoon.tsx

This file was deleted.

15 changes: 15 additions & 0 deletions components/NewIssue/NewIssue.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { FC } from "react";

const NewIssue:FC<{}> = () => {

return (
<p className="pt-6 md:p-0 coming-soon">
<span className="text-2xl">Be the first to add by creating a GitHub issue</span>{" "}
<span className="animate-pulse text-2xl text-purple-500">
<a href="https://github.com/rupali-codes/LinksHub/issues/new?assignees=&labels=add+link&template=add_link.yml&title=%5BAdd%5D+%3Cname%3E" target="_blank"><u>here</u></a>
</span>
</p>
)
}

export default NewIssue;
2 changes: 1 addition & 1 deletion pages/[subcategory]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useRouter } from "next/router";
import Head from "next/head";
import useFilterDB from "hooks/useFilterDB";
import CardsList from "components/Cards/CardsList";
import ComingSoon from "components/ComingSoon/ComingSoon";
import ComingSoon from "components/NewIssue/NewIssue";

const SubCategory = () => {
const router = useRouter();
Expand Down
19 changes: 19 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,22 @@ body {
.scrollColorLight::-webkit-scrollbar-thumb:hover {
background: #aaa;
}


@media (min-width: 992px) {
.coming-soon
{
text-align: center;
top:220px;
position: relative;
}
}

@media (max-width: 800px) {
.coming-soon
{
text-align: center;
top:150px;
position: relative;
}
}

1 comment on commit 522e8cf

@vercel
Copy link

@vercel vercel bot commented on 522e8cf Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

linkshub – ./

linkshub-rupali-codes.vercel.app
linkshub.vercel.app
linkshub-git-main-rupali-codes.vercel.app

Please sign in to comment.