|  | 
|  | 1 | +import React from 'react'; | 
|  | 2 | +import '@/app/ui/global.css'; | 
|  | 3 | + | 
|  | 4 | + | 
|  | 5 | +const HomePage = () => { | 
|  | 6 | +    return ( | 
|  | 7 | +        //紫色渐变 | 
|  | 8 | +        // <div className="min-h-screen bg-gray-900 text-white"> | 
|  | 9 | +        //     {/* 头部和搜索部分 */} | 
|  | 10 | +        //     <div className="bg-gradient-to-b from-[#4D004D] to-white"> | 
|  | 11 | +        //         <header className="p-4 flex justify-between items-center"> | 
|  | 12 | +        //             <div className="text-2xl font-bold">open/source/insights</div> | 
|  | 13 | +        //             <nav> | 
|  | 14 | +        //                 <ul className="flex space-x-5"> | 
|  | 15 | +        //                     <li><a href="#" className="hover:underline">About</a></li> | 
|  | 16 | +        //                     <li><a href="#" className="hover:underline">Documentation</a></li> | 
|  | 17 | +        //                     <li><a href="#" className="hover:underline">Blog</a></li> | 
|  | 18 | +        //                 </ul> | 
|  | 19 | +        //             </nav> | 
|  | 20 | +        //         </header> | 
|  | 21 | +        //         <div className="flex flex-col items-center justify-center h-80"> | 
|  | 22 | +        //             <h1 className="text-4xl font-bold mb-4">Understand your dependencies</h1> | 
|  | 23 | +        //             <p className="text-center mb-4">Your software and your users rely not only on the code you write, but also on the code your code depends on, the code that code depends on, and so on.</p> | 
|  | 24 | +        //             <div className="flex items-center mb-4"> | 
|  | 25 | +        //                 <input | 
|  | 26 | +        //                     type="text" | 
|  | 27 | +        //                     placeholder="Search for open source packages, advisories and projects" | 
|  | 28 | +        //                     className="p-2 border-none rounded-md text-gray-800 w-2/3 max-w-xl" | 
|  | 29 | +        //                 /> | 
|  | 30 | +        //                 <button className="bg-teal-600 text-white rounded-md p-2 ml-2 hover:bg-teal-700">Search</button> | 
|  | 31 | +        //             </div> | 
|  | 32 | +        //         </div> | 
|  | 33 | +        //     </div> | 
|  | 34 | + | 
|  | 35 | + | 
|  | 36 | +        //绿色渐变 | 
|  | 37 | +        < div className="min-h-screen bg-gray-900 text-white" > | 
|  | 38 | +            <header className="bg-teal-500 p-4 flex justify-between items-center"> | 
|  | 39 | +                <div className="text-2xl font-bold">open/source/insights</div> | 
|  | 40 | +                <nav> | 
|  | 41 | +                    <ul className="flex space-x-5"> | 
|  | 42 | +                        <li><a href="#" className="hover:underline">About</a></li> | 
|  | 43 | +                        <li><a href="#" className="hover:underline">Documentation</a></li> | 
|  | 44 | +                        <li><a href="#" className="hover:underline">Blog</a></li> | 
|  | 45 | +                    </ul> | 
|  | 46 | +                </nav> | 
|  | 47 | +            </header> | 
|  | 48 | +            {/* 搜索部分 */} | 
|  | 49 | +            <div className="flex flex-col items-center justify-center h-80 bg-gradient-to-b from-teal-500 to-gray-800"> | 
|  | 50 | +                <h1 className="text-4xl font-bold mb-4 ">Understand your dependencies</h1> | 
|  | 51 | +                <p className="text-center mb-4">Your software and your users rely not only on the code you write, but also on the code your code depends on, the code that code depends on, and so on.</p> | 
|  | 52 | +                <div className="flex items-center mb-4"> | 
|  | 53 | +                    <input | 
|  | 54 | +                        type="text" | 
|  | 55 | +                        placeholder="Search for open source crates" | 
|  | 56 | +                        className="p-2 border-none rounded-md text-gray-800 w-80 max-w-2xl" | 
|  | 57 | +                    /> | 
|  | 58 | +                    <button className="bg-teal-600 text-white rounded-md p-2 ml-2 hover:bg-teal-700">Search</button> | 
|  | 59 | +                </div> | 
|  | 60 | +            </div> | 
|  | 61 | + | 
|  | 62 | + | 
|  | 63 | +            {/* 分割线部分 */} | 
|  | 64 | +            <div className="border-t-4 border-green-500 h-1/4"></div> | 
|  | 65 | + | 
|  | 66 | +            {/* 一些介绍 */} | 
|  | 67 | +            <div className="container mx-auto p-10"> | 
|  | 68 | +                <div className="bg-gray-800 p-5 mb-6 rounded shadow-md"> | 
|  | 69 | +                    <h2 className="text-2xl font-semibold">New features in the deps.dev API</h2> | 
|  | 70 | +                    <p className="mt-2">The deps.dev API, which provides free access to the data that powers this website, now has experimental batch and pull support, as well as a new version that comes with a stability guarantee and deprecation policy.</p> | 
|  | 71 | + | 
|  | 72 | +                    <p className="mt-2">Learn more about the new features on our blog, or get started with the API documentation, and code examples.</p> | 
|  | 73 | + | 
|  | 74 | +                </div> | 
|  | 75 | + | 
|  | 76 | +                <div className="bg-gray-800 p-5 mb-6 rounded shadow-md"> | 
|  | 77 | +                    <h2 className="text-2xl font-semibold">Seeing the big picture can be difficult—but it shouldn't be</h2> | 
|  | 78 | +                    <p className="mt-2">The Open Source Insights page for each package shows the full dependency graph and updates it every day. The information provided can help you make informed decisions about using, building, and maintaining your software.</p> | 
|  | 79 | + | 
|  | 80 | +                    <p className="mt-2">With Open Source Insights, you can actually see the dependency graph for a package, then isolate the paths to a particular dependency. Or see whether a vulnerability in a dependency might affect your code. Or compare two versions of a package to see how the dependencies have changed in a new release.</p> | 
|  | 81 | + | 
|  | 82 | +                </div> | 
|  | 83 | + | 
|  | 84 | +                <div className="bg-gray-800 p-5 mb-6 rounded shadow-md"> | 
|  | 85 | +                    <h2 className="text-2xl font-semibold">How it works</h2> | 
|  | 86 | + | 
|  | 87 | +                    <p className="mt-2">The service repeatedly examines sites such as github.com, npmjs.com, and pkg.go.dev to find up-to-date information about open source software packages. Using that information, it builds for each package the full dependency graph from scratch—not just from package lock files—connecting it to the packages it depends on and to those that depend on it. This transitive dependency graph allows problems in any package to be made visible to the owners and users of any software they affect.</p> | 
|  | 88 | + | 
|  | 89 | +                </div> | 
|  | 90 | +            </div> | 
|  | 91 | +        </div > | 
|  | 92 | +    ); | 
|  | 93 | +} | 
|  | 94 | + | 
|  | 95 | +export default HomePage; | 
0 commit comments