Jump to content

So guys I have my php code and all the buttons and stuff. But it is just black text on white website so I want to make it more interactive and stuffs. Would I go around doing this in php are there better ways to do this. I have the functionality now I want to make it user friendly and look good. Things such as hovering over buttons. An animation that choses things random. How would I do this?

I like potatoes, if you don't then please just step aside and let me enjoy this potato.

Link to comment
https://linustechtips.com/topic/510591-designing-a-website/
Share on other sites

Link to post
Share on other sites

I see the keyword animations so I'll say JavaScript and jQuery.  Making the site look better in general I'll say CSS if you haven't done that already, it should help a lot.

Join the Appleitionist cause! See spoiler below for answers to common questions that shouldn't be common!

Spoiler

Q: Do I have a virus?!
A: If you didn't click a sketchy email, haven't left your computer physically open to attack, haven't downloaded anything sketchy/free, know that your software hasn't been exploited in a new hack, then the answer is: probably not.

 

Q: What email/VPN should I use?
A: Proton mail and VPN are the best for email and VPNs respectively. (They're free in a good way)

 

Q: How can I stay anonymous on the (deep/dark) webzz???....

A: By learning how to de-anonymize everyone else; if you can do that, then you know what to do for yourself.

 

Q: What Linux distro is best for x y z?

A: Lubuntu for things with little processing power, Ubuntu for normal PCs, and if you need to do anything else then it's best if you do the research yourself.

 

Q: Why is my Linux giving me x y z error?

A: Have you not googled it? Are you sure StackOverflow doesn't have an answer? Does the error tell you what's wrong? If the answer is no to all of those, message me.

 

Link to comment
https://linustechtips.com/topic/510591-designing-a-website/#findComment-6807630
Share on other sites

Link to post
Share on other sites

So guys I have my php code and all the buttons and stuff. But it is just black text on white website so I want to make it more interactive and stuffs. Would I go around doing this in php are there better ways to do this. I have the functionality now I want to make it user friendly and look good. Things such as hovering over buttons. An animation that choses things random. How would I do this?

can you show us some of the code?

btw use:

[spoiler][code]your code here[/code][/spoiler]
Link to comment
https://linustechtips.com/topic/510591-designing-a-website/#findComment-6807655
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

As the others have stated, you need to include some CSS in the <head> of your HTML code. As far as I know, you can put the ".php" extension on your file, write HTML in the file and use <? include> wherever a call to your PHP script is necessary. I'm not sure if this is the proper way to do it, because I'm not that familiar with PHP development.

 

However, whichever server side platform you use, the story for your HTML code remains the same. There is no reason to reinvent the wheel, you can use some existing frameworks for this.

 

These frameworks generally include some CSS and JavaScript (JQuery) files, and they offer you a set of custom made UI elements which require almost no effort to include in your website. They often make your pages mobile friendly without you having to do all of the heavy lifting as well. You can also add some custom CSS that overrides the CSS from the frameworks, by defining your own CSS file. I would strongly advise not to edit the CSS of the framework itself, because you will run into issues when trying to update it to a newer version.

 

You can usually download themes for these frameworks as well (free and paid ones).

 

A couple of frameworks I have personally used in projects of mine:

  • Bootstrap: as far as I know, this is the most popular one. Very stable and widely adopted, lots of tutorials, forum posts and stackoverflow posts to help you out.
  • Foundation: I have worked with Foundation once, but to me it felt a little more unfinished than Bootstrap (still good though). I've only had a short introduction to this framework, so there's not much I can say about it.
  • Materialize: personally a huge fan of this framework. It's still a bit experimental, but it tries to mimic the "material design" which is being used by Google these days in the Android OS. It includes some pretty cool stuff such as the Google cards, date pickers, dropdowns, ...

 

All of these frameworks have one thing in common: the documentation is very good, and includes a lot of usable examples. I'm sure you will easily find your way in them. The only thing I always find tricky, is knowing which JavaScript files to include and where to include them, but that's just a bit of trial and error imo. These are also not the only frameworks around. I'm sure you will find a lot more on Google (and possibly even forks of the above frameworks).

 

Good luck with your project!

Link to comment
https://linustechtips.com/topic/510591-designing-a-website/#findComment-6885050
Share on other sites

Link to post
Share on other sites

I see the keyword animations so I'll say JavaScript and jQuery.  Making the site look better in general I'll say CSS if you haven't done that already, it should help a lot.

Use CSS 3 for animations too unless you want the 5fps animations (especially on mobile).

Only use jQuery/javascript to trigger animations.

 

Note that some CSS 3 animations are slow too because they change layout properties.

A good starting list for css3 animations is this:

http://www.html5rocks.com/en/tutorials/speed/high-performance-animations/

Desktop: Intel i9-10850K (R9 3900X died 😢 )| MSI Z490 Tomahawk | RTX 2080 (borrowed from work) - MSI GTX 1080 | 64GB 3600MHz CL16 memory | Corsair H100i (NF-F12 fans) | Samsung 970 EVO 512GB | Intel 665p 2TB | Samsung 830 256GB| 3TB HDD | Corsair 450D | Corsair RM550x | MG279Q

Laptop: Surface Pro 7 (i5, 16GB RAM, 256GB SSD)

Console: PlayStation 4 Pro

Link to comment
https://linustechtips.com/topic/510591-designing-a-website/#findComment-6900815
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×