mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 13:41:32 +00:00
fix: replace ampersand + (landing page): fix image preview
This commit is contained in:
@@ -38,14 +38,7 @@ export default function Home() {
|
|||||||
|
|
||||||
<Example>
|
<Example>
|
||||||
<p style={{fontSize: "1rem", fontWeight: "bold", marginTop: "1rem"}}>Preview</p>
|
<p style={{fontSize: "1rem", fontWeight: "bold", marginTop: "1rem"}}>Preview</p>
|
||||||
{
|
<img src={`https://lanyard-profile-readme.vercel.app/api/${userId}`} alt="[Please provide a valid user ID!]" />
|
||||||
userId.length < 17
|
|
||||||
?
|
|
||||||
<p>Please provide a valid user ID!</p>
|
|
||||||
:
|
|
||||||
<img src={`https://lanyard-profile-readme.vercel.app/api/${userId}`} alt="Discord Presence Preview" />
|
|
||||||
}
|
|
||||||
|
|
||||||
</Example>
|
</Example>
|
||||||
|
|
||||||
</Container>
|
</Container>
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise<
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
color: ${theme === 'dark' ? '#ccc' : '#777'};
|
color: ${theme === 'dark' ? '#ccc' : '#777'};
|
||||||
">By ${body.data.spotify.artist.replace(/\;/g, ",")}</p>
|
">By ${body.data.spotify.artist.replace(/\;/g, ",").replace(/\&/g, "and")}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
|||||||
Reference in New Issue
Block a user