dotfortun
dotfortun
KPCKevin Powell - Community
Created by rikisann on 10/18/2023 in #back-end
Having problem with cors - Flask
Not a problem!
19 replies
KPCKevin Powell - Community
Created by Boeroe on 10/19/2023 in #front-end
How to stop the animation at the end of the h4.
Ooof, yeah. I don't have a good answer for that without resorting to JS.
12 replies
KPCKevin Powell - Community
Created by Boeroe on 10/19/2023 in #front-end
How to stop the animation at the end of the h4.
Your codepen isn't quite what I described. This is the change I made to the h4 tag:
<h4 class="textani">
<div class="title-row">Frontend Developer</div>
<div class="title-row">Blockchain Developer</div>
</h4>
<h4 class="textani">
<div class="title-row">Frontend Developer</div>
<div class="title-row">Blockchain Developer</div>
</h4>
This changes the structure to group each individual line within the h4, so that when we make the CSS changes, they will continue to be lines. And it is supported by adding a width property to the .homepave h4.textani selector:
.homepage h4.textani {
...
width: min-content;
}
.homepage h4.textani {
...
width: min-content;
}
This change constrains the h4 to only be exactly as wide as it needs to be to hold its contents. Finally, we add this CSS rule:
.title-row {
width: max-content;
}
.title-row {
width: max-content;
}
This change makes it so each row is at least wide enough to keep all the text on one line. Hope this helps!
12 replies
KPCKevin Powell - Community
Created by rikisann on 10/18/2023 in #back-end
Having problem with cors - Flask
CORS is intended to protect end users from leaking their cookies all over the internet, so it isn't actually a robust security measure for protecting your backend. For that you'd probably want to implement some sort of auth flow (flask-jwt-extended is pretty straightforward to implement), or at least use the API key method you described.
19 replies
KPCKevin Powell - Community
Created by rikisann on 10/18/2023 in #back-end
Having problem with cors - Flask
No description
19 replies
KPCKevin Powell - Community
Created by rikisann on 10/18/2023 in #back-end
Having problem with cors - Flask
Hrm, one sec.
19 replies
KPCKevin Powell - Community
Created by Boeroe on 10/19/2023 in #front-end
How to stop the animation at the end of the h4.
No description
12 replies
KPCKevin Powell - Community
Created by Boeroe on 10/19/2023 in #front-end
How to stop the animation at the end of the h4.
My experimenting lead me to this restucture of the html:
<h4 class="textani"><div style="width: max-content;">Frontend Developer</div> <div style="width: max-content;">Blockchain Developer</div></h4>
<h4 class="textani"><div style="width: max-content;">Frontend Developer</div> <div style="width: max-content;">Blockchain Developer</div></h4>
And I gave the .textani selector a width of min-content.
12 replies
KPCKevin Powell - Community
Created by rikisann on 10/18/2023 in #back-end
Having problem with cors - Flask
That just got me thinking, and I don't know if this is up to date, but evidently Postman doesn't respect CORS.
19 replies
KPCKevin Powell - Community
Created by Boeroe on 10/19/2023 in #front-end
How to stop the animation at the end of the h4.
No description
12 replies
KPCKevin Powell - Community
Created by rikisann on 10/18/2023 in #back-end
Having problem with cors - Flask
Sounds like a plan!
19 replies
KPCKevin Powell - Community
Created by rikisann on 10/18/2023 in #back-end
Having problem with cors - Flask
No description
19 replies