mirror of
https://github.com/Radiquum/radiquum.github.io.git
synced 2025-09-05 22:15:37 +05:00
Feat: add mobile (440-768px) styles
This commit is contained in:
parent
c2d825bf36
commit
5981db3626
51 changed files with 817 additions and 133 deletions
28
app/components/CharacterImage.tsx
Normal file
28
app/components/CharacterImage.tsx
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* eslint-disable @next/next/no-img-element */
|
||||
type CharacterImageProps = {
|
||||
image: string;
|
||||
name: string | null;
|
||||
species: string;
|
||||
gender: string;
|
||||
};
|
||||
|
||||
export const CharacterImage = ({
|
||||
image,
|
||||
name,
|
||||
species,
|
||||
gender,
|
||||
}: CharacterImageProps) => {
|
||||
return (
|
||||
<div className="relative rounded-4xl overflow-hidden">
|
||||
<img src={image} alt="" className="rounded-4xl" />
|
||||
<div className="absolute left-0 right-0 bottom-0 from-[#131314] to-[#131314]/0 bg-gradient-to-t">
|
||||
<div className="p-4 flex gap-2 justify-between items-end">
|
||||
<p className="text-5xl">{name}</p>
|
||||
<p className="flex-1 text-right text-3xl">
|
||||
{species}, {gender}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue