-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from blockscout/ui-improvements
UI improvements
- Loading branch information
Showing
22 changed files
with
3,050 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { NextResponse } from 'next/server'; | ||
import fs from 'fs/promises'; | ||
import path from 'path'; | ||
|
||
export async function GET() { | ||
try { | ||
const filePath = path.join(process.cwd(), 'data', 'featured.json'); | ||
const jsonData = await fs.readFile(filePath, 'utf8'); | ||
const featuredNetworks: string[] = JSON.parse(jsonData); | ||
|
||
return NextResponse.json(featuredNetworks); | ||
} catch (error) { | ||
console.error('Error reading featured networks data:', error); | ||
return NextResponse.json({ error: 'Failed to load featured networks data' }, { status: 500 }); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import Link from 'next/link'; | ||
|
||
const AddChainSection: React.FC = () => { | ||
return ( | ||
<div className="w-full py-5 md:py-2 px-4 bg-[#f7f8fd] border border-[#f2f4fc] rounded-lg flex flex-col md:flex-row items-center justify-center gap-4 mb-6"> | ||
<p className="text-[#1d1d1f] text-sm text-center"> | ||
Does your network use Blockscout but isn't listed here? Add your chain now! | ||
</p> | ||
<Link | ||
href="https://github.com/blockscout/chainscout?tab=readme-ov-file#contributing" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="flex items-center h-[34px] border border-[#2563eb] text-[13px] text-[#2563eb] font-semibold px-3 rounded-lg hover:opacity-75 transition-opacity duration-[400ms]" | ||
> | ||
Add your Chain | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AddChainSection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.