M
M
Mark Rosenthal2015-01-15 23:54:06
css
Mark Rosenthal, 2015-01-15 23:54:06

Do you use ready-made solutions, or do everything from scratch?

Hey!
I don’t have a dozen orders a week, I often don’t keep up with new technologies in the field of code, design and layout, I also suck at understanding the terms that all sorts of fashionable dudes like to throw around.
In general, for the time being, it’s easier for me to see it this way: to start each project from scratch, each site. Styles - manually, hypertext - too (it's good that emmet has mastered a little)
In general, the question is this.
Maybe there are some templates for ready-made CSS, and there you edit along the way, include js and all that?

Answer the question

In order to leave comments, you need to log in

9 answer(s)
H
htmleater, 2015-01-16
@htmleater

Well, there are 100,500 frameworks for this, and there are templates for almost every one. Probably the most common is Bootstrap.
I tried different ones, but, in the end, I returned to the fact that creating from scratch is closer to me and the controllability of the process is disproportionately higher + the absence of unnecessary junk

I
IceJOKER, 2015-01-16
@IceJOKER

I always write the style from scratch ** I lied, I often use the charms of bootstrap, usually in my projects **, it’s easier for me, because I know where and what I wrote, and when you edit someone else’s code, you’ll understand why something works wrong. .rewriting rules and much more.
and from ready-made ones - js buns and frameworks / cms, because it's stupid to stamp sites every time from scratch - I mean when the same type of tasks.
and for exceptions - exceptional approaches)

K
Konstantin Kitmanov, 2015-01-16
@k12th

For example, html5boilerplate.com (although there, IMHO, there is a lot of garbage). Also take a look at yeoman.io/. In general, google boilerplates and generators :)

I
Ivan Novikov, 2015-01-16
@novik90

You just need to sit down and spend 3-4 hours optimally setting up the finished framework.
Adjust as they say for yourself (Bootstram can do this when compiling on the site),
plus turn off the trash that is not needed (again, if less and sass are not needed, then just uncheck it).
Next, compile and you're done!
You have
1. Reset styles
2. Normal GridSystem
3. And some styles that you always use by default. (For example, I prefer a slightly slightly grayish background to a white background, and the text is not black, but lighter.)

A
Alexey Pavlov, 2017-07-09
@lexxpavlov

It is necessary to store all translatable strings in a separate array. And in a template to use the necessary array.
An example with a php template and using a global variable (to simplify the example code):

$ru = array(
    'site.title' => "Мой сайт",
    'author.name' => "Иванов И.И.",
);
$en = array(
    'site.title' => "My site",
    'author.name' => "John Doe",
);
$LANG = $_GET['lang'] === 'ru' ? $ru : en;

// где-то в шаблоне:
<html>
<head>
    <title><?=$LANG['site.title']?></title>
</head>
<body>
    <p><?=$LANG['author.name']?></p>
</body>
</html>

Similarly, it is done on any framework and / or template engine. Decent frameworks already have ready-made tools for creating such dictionaries.

E
Exploding, 2017-07-09
@Exploding

Why not? Of course available! Put a front-page or some analogue and go! But this is if there are a couple of pages. Otherwise, it’s better to take some kind of engine! You will still buy hosting, and there, as a rule, you can put everything by pressing one button. Yes, or tell the techpod - they will do it.
For static is insidious! But reliable...

S
Sergey, 2017-07-09
@gangstarcj

Create a folder eng copy all the content of the site there and do the translation there.
You can generally connect Google translator and then a 100+ language site will be

A
Anatoly Kryanga, 2017-07-09
@afc59

Alternatively, you can use the gettext() function, but this is a complicated enough option to be answered within the framework of the forum. This is material for a good article. And there are several good articles on the Internet on this subject.

I
islombek_gofurov, 2020-06-04
@islombek_gofurov

Easy Multi Language Websites in Javascript
https://www.youtube.com/watch?v=PaJrDAmrOB4
Multiple languages ​​using Jquery and Json
https://www.youtube.com/watch?v=Tjt_u_OSh40

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question