Ai create a blog

just for ai practice
I moved to reset

3 Likes

That’s very cool.

I’m wondering how exactly that works and if it’s actually something you could push further and deploy to a live site (eventually)? :face_with_monocle:

@dan see below

https://we.tl/t-VPqjEsrFss

I have now asked cursor to split between blog and another page password protected

I have put both parts of the code in this file marked each section

this link is to the code used in the video above I suppose if you put back into cursor you can ask it check and add to

https://we.tl/t-tTKOnFgxyn```
1 Like

I asked this request, re the second link above

‘the blog entry needs to be on another page and password protected’

no idea if it works no time now til later this afternoon, its tailwind so could smarten up

if you the run the first file it drops straight into the password bit

I was going to ask it to date the big posts after this you will probably put this into Elements better than I can

[type or paste code here](https://we.tl/t-RkRfkWWjh9)

the admin works in this code straight from cursor, the previous one didnt

just run admin and index

it put a login and log into the code

need to ask it to encrypt password

You can see the password in the file admin123

asked this question - the password in the admin file needs to be hidden to protect encrypt, changed the file see answer below
not tried it yet

You’re absolutely right. Storing passwords in plain text, even on the client side, is a security risk. In a real-world application, authentication should be handled server-side. However, since we’re working with a client-side only solution, we can improve security by using a hashed version of the password.

Here’s an updated version of the admin.html file that uses a hashed password:

time stamp edit posts and change password - password protected

I put the two html files on my website and these work well first try

1 Like

@dan progress so far

works from a folder keeps my posts from the start

in Elements need to work out path need some help

Elements project
elementsapp://downloadDocument/pluCmmoUYvX9

this was the structure I used, files folder

https://we.tl/t-3TvDgzHi6A

just dropped into another folder run

more confused now how it works with page0

this version has return to blog page and a couple of ui colour controls in admin
works from published page if use page0
still confused on page0

elementsapp://downloadDocument/koYVhn5y0xyL

think it works now needs testing from others

here is the Elements file

elementsapp://downloadDocument/KOFGLCWMmKgY

will need to modify menu bit to fit in with Elements menu I expect

Just publish using Elements the run either index or admin html files, works on my website

need to change the image size add a few more ui controls etc

That was interesting practice, using AI and Elements, enjoyed doing that my mistake at the end with links, back to normal coding now to practice something else

initial password - admin123

1 Like

need the new menu options before messing with menu, I placed a menu in the page and it does work jumping to these two pages

ok didn’t like when no image is loaded the title is displayed to this

new Elements project

elementsapp://downloadDocument/o8FjFoLF2vvk

ignore this one above

search added to admin area and blog page

elementsapp://downloadDocument/Lrtrg3MBmcW8

2 Likes

You’re getting there. Pretty cool for a beta version of the app.

1 Like

never used a blog not sure what is required