diff --git a/README.md b/README.md index 9126919..70e679b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

- deptry logo + pypi-scout logo

PyPI Scout helps you find PyPI packages through natural language prompts using Large Language Models (LLM's). diff --git a/frontend/app/components/InfoBox.tsx b/frontend/app/components/InfoBox.tsx index a6cf415..f41bf90 100644 --- a/frontend/app/components/InfoBox.tsx +++ b/frontend/app/components/InfoBox.tsx @@ -8,15 +8,15 @@ const InfoBox: React.FC = ({ infoBoxVisible }) => { if (!infoBoxVisible) return null; return ( -
+

How does this work?

-

+

This application allows you to search for Python packages on PyPI using natural language. An example query would be "a package that creates plots and beautiful visualizations".


-

+

Once you click search, your query will be matched against the summary and the first part of the description of all PyPI packages with more than 50 weekly downloads. The results are then scored based on their diff --git a/frontend/app/components/SearchResultsTable.tsx b/frontend/app/components/SearchResultsTable.tsx index ce3adb6..4e866c3 100644 --- a/frontend/app/components/SearchResultsTable.tsx +++ b/frontend/app/components/SearchResultsTable.tsx @@ -27,11 +27,11 @@ const SearchResultsTable: React.FC = ({ return (

- - +
+ - - - + {results.map((result, index) => ( - - - + + - -
onSort("name")} >
@@ -39,7 +39,7 @@ const SearchResultsTable: React.FC = ({
onSort("similarity")} >
@@ -48,7 +48,7 @@ const SearchResultsTable: React.FC = ({
onSort("weekly_downloads")} >
@@ -58,25 +58,27 @@ const SearchResultsTable: React.FC = ({
+ Summary + Link
{result.name} +
+ {result.name} + {result.similarity.toFixed(3)} + {result.weekly_downloads.toLocaleString()} + {result.summary} @@ -84,7 +86,7 @@ const SearchResultsTable: React.FC = ({ href={`https://pypi.org/project/${result.name}/`} target="_blank" rel="noopener noreferrer" - className="text-blue-500 hover:underline flex items-center" + className="text-blue-400 hover:underline flex items-center" > PyPI diff --git a/frontend/app/globals.css b/frontend/app/globals.css index 875c01e..3216bc2 100644 --- a/frontend/app/globals.css +++ b/frontend/app/globals.css @@ -6,13 +6,16 @@ --foreground-rgb: 0, 0, 0; --background-start-rgb: 214, 219, 220; --background-end-rgb: 255, 255, 255; + --dark-bg-start-rgb: 10, 10, 35; /* Very dark blue almost grey */ + --dark-bg-end-rgb: 25, 25, 50; /* Dark blue */ + --dark-foreground-rgb: 255, 255, 255; } @media (prefers-color-scheme: dark) { :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; + --foreground-rgb: var(--dark-foreground-rgb); + --background-start-rgb: var(--dark-bg-start-rgb); + --background-end-rgb: var(--dark-bg-end-rgb); } } diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index 7ff6fbc..c3ce2cc 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -31,22 +31,29 @@ export default function Home() { }; return ( -
-
-

✨PyPI Scout

-

+

+
+ + pypi-scout logo + +

Enter your query to search for Python packages

-
+