Can anybody tell me how to do this ? Is this grid use case ? And the gradient too ?

Let me know if you need the figma link
No description
26 Replies
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
anybody ?
curiousmissfox
curiousmissfox•2mo ago
Need more info- is the inage if the person a png by itself? Are you using bg inage or <img> The elements look like a two col grid with a bg image to me. Col 1 is the text and col 2 has the blurred playlist .
13eck
13eck•2mo ago
What have you tried? What hasn't worked? Can you share your code? To me, though, it looks like two different sections: 1. The background 1. the playlist The background is nothing special, just text and an image (maybe the album cover?). The playlist is a skinny div that's absolutely positioned to be on top of the background. At a small enough viewport I can see the position: absolute going away so it stacks "background" on top and "playlist" below.
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
I am stuck on the gradient
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
here is the figma
No description
13eck
13eck•2mo ago
Can Figma not export to CSS? Also, a quick internet search gave me https://cssgradient.io/ that I used to make the CSS for your gradient:
background: linear-gradient(90deg,rgba(23, 60, 113, 1) 16%, rgba(11, 13, 17, 1) 35%, rgba(154, 15, 58, 1) 69%, rgba(11, 13, 17, 1) 90%);
background: linear-gradient(90deg,rgba(23, 60, 113, 1) 16%, rgba(11, 13, 17, 1) 35%, rgba(154, 15, 58, 1) 69%, rgba(11, 13, 17, 1) 90%);
I literally copied the numbers from your SS
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
I think thats a premium feature like dev mod
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
this doesnt look like it chief
No description
13eck
13eck•2mo ago
You probably need to have it in a container of some kind to keep it the right height
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
I have something like this if it helps you
No description
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
isnt this how I should approach this ?
13eck
13eck•2mo ago
What's the CSS look like? Based on your SS you didn't restrict the height
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
but wouldnt that also squish my children or will it cause overflow which is ok I guess ? i will try
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
lol how do I center this
No description
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
background-position:center isnt helping
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
I am using tailwind
No description
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
since you were asking about css
13eck
13eck•2mo ago
Here's a sample pen I came up with: https://codepen.io/13eck/pen/LEVapzR
13eck
13eck•2mo ago
Obviously it needs some tweaking, but it's a start The important thing, I think, is that the .colourful element is just there for the background. Don't put any content in it I'm sure someone better acquanted with gradients will be by sometime to put me to shame :p
Jochem
Jochem•2mo ago
@i_lost_to_loba_kreygasm please review #Asking Good Questions at some point...
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
I made it 4 grid instead one for the text , one for the image , one for offset , one for playlist
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
this is good or close right ?
No description
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
I did some tweaking to your gradient but it would be great if you could tell me what you did ?
.gradient{
background-blend-mode: multiply;
background:
linear-gradient(
to bottom,
black 0%,
black 20%,
transparent 50%,
black 80%,
black 100%
),
linear-gradient(90deg,
rgba(23, 60, 113, .5) 16%,
rgba(23, 60, 113, .5) 35%,
rgba(154, 15, 58, .5) 69%,
rgba(154, 15, 58, .5) 90%);
}
.gradient{
background-blend-mode: multiply;
background:
linear-gradient(
to bottom,
black 0%,
black 20%,
transparent 50%,
black 80%,
black 100%
),
linear-gradient(90deg,
rgba(23, 60, 113, .5) 16%,
rgba(23, 60, 113, .5) 35%,
rgba(154, 15, 58, .5) 69%,
rgba(154, 15, 58, .5) 90%);
}
here is the finished or updated css
vince
vince•2mo ago
I don't think it's a linear gradient IMO looks more like a background image gradient made in PS or something - you can see the red gradient in the bottom left I think what you have now looks good though, just curious what it looks like when you resize the screen lol
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
doesnt look bad to me 🙂 , I just checked 😛 . I will host it for you to see later when I am done with this haha
curiousmissfox
curiousmissfox•2mo ago
CSS HD Gradients
Wide gamut Color 4 compliant CSS gradient builder.

Did you find this page helpful?