i have one question your blog site <@U02AB5P2XU6>....
# kobweb
m
i have one question your blog site @David Herman. i see your blog list assume that 30-40 blog list available. after you page scroll 31 blog card you click it bottom to top animation use it page is open it if possible directly page open to load without any animation. may be i confused that website see it. can you suggestion give me for single page but larger content
d
Apologies, I didn't understand the question.
m
sorry for that i share screen so more idea
here first page blog list show it after i first blog open it after i blog screen end of scroll it. after that i back to blog list page so, why blog list bottom to top animation show it. i hope you understand
i dont know this animation good or bad.
d
That animation isn't me -- that just comes from the browser. It happens because I enabled smooth scrolling on my site, but that's not done by default.
m
Ok understand thanks
I have one more question actually I building my website I use little chatgpt for kobweb website but problem is chatgpt mix code response jetpack compose+kobweb like text composable not style properly available in kobweb but chatgpt give me this response. If possible documention how can use page, route, ui styling. I see some example kobweb website but It hard to understand
d
Unfortunately chatgpt probably won't help with Kobweb at this point
I'm afraid you'll have to go through the README (beginner and intermediate sections at least) and look at the examples we share (
kobweb list
and my open source blog site as you are doing)
m
Ok you mean kobweb readme Documention?
d
There are also some tutorial videos made by the community: https://github.com/varabyte/kobweb?tab=readme-ov-file#tutorial-videos
Those were made in earlier days so it's possible that some of the advice is a little stale (anything that talks about
ComponentStyle
is now
CssStyle
, mainly), but the general advice should absolutely still be true
m
Yes I see it thanks for sharing. I hope End of year complete my website
d
Good luck! Oh yes also I did a high level talk as well: https://www.droidcon.com/2024/07/17/kobwebcreating-websites-in-kotlin-leveraging-compose-html/ The examples from the tutorial videos go deeper into actual code than my talk does, but a high level overview can be useful too.
m
Ok thanks
hi i have one question how can create static navigation bar after some content if content is scroll navigation bar is fixed and i check your example it works prefectly but you use margin top for content any alternative solution
d
First tell me -- how do traditional sites using html / js / css do it?
m
I don't know I directly kobweb started
d
You should think of Compose HTML and Kobweb as type-safe Kotlin bindings around HTML, JavaScript, and CSS. Whenever you want to learn how to do something, the best place to start is to search how to do it in HTML/JS/CSS.
Sometimes there's multiple ways to do something, and you might find a better way than I did it.
m
Ok thanks. I have many questions sorry to disturb
d
I'm actually about to run and won't be able to answer too much for the next two days
Someone else may be able to answer, but yeah it's still kind of early in Kobweb's life so unfortunately it feels like there's a lot of work to do in documentation and examples online
My recommendation if you haven't already is to create an empty project (
kobweb create app/empty
) and use that as a playground to play with web concepts
m
Which is better static image or server image url. I have many image to page
d
I don't know what those two options are
m
It just normal image like project screenshot
d
I'm sorry Meet I'm really not sure what you're asking
But look at other sites online and see what they do
Right click > inspect
Poke around and start to get familiar with the DOM
m
Ok ok I research that if not understand I message you
d
Yeah. It's not a great answer I know. But for these early days of Kobweb, it will be usually more effective to ask "I'm doing X and tried Y and Z but it's not working, can anyone help me understand my issue?" than "Can someone tell me how to do X?"
It can also help if you can find a site doing what you want to do and either use screenshots or share links to ask more specific questions
m
Ok ok