PROFILE CUSTOMIZATION TUTORIAL FOR JAI WIP !!!

by garlic18

About this guide

Im not a professional coder :) Everything im sharing here is the result of many hours spent reading other guides and experimenting on my own. Take a look at this guide which also contains many interesting tips


Ethics

PLEASE READ

Remember that your profile is visible to all users who visit it, so it needs to be optimized and appealing enough not to give anyone a headache trying to decipher the bots' names. Use colors with good contrast and not an ultra pastel pink on pure white! Use an easily readable font! Remember that some users are on a phone, and therefore, cannot pass their "mouse" over the image of a bot, so avoid it being hidden or blurred by default. In general, you should avoid overloading your profile or adding too many heavy images. Also avoid automatic audio players or at least give other users the option to pause.

Thank you :)


Come up with an idea

I believe it's a bit difficult to jump straight into coding without a real idea. What I usually do is look for sources of inspiration! It can come from anything, a poster, an album cover, ur own art, or even a billboard. The point of doing this is to have something to refer to if u feel lost or miss something. This will also enable you to determine which colors will be used, and if your source of inspiration has text, to get an idea of the font.

If you prefer to use another method, that's up to u! However, I really recommend that you have a clear idea of what you want to achieve before you start coding :D

How to use a source of inspiration

I'll use an example to give an idea of the many ideas that can be drawn from a source of inspiration.
example picture From this image i can retrieve many elements: font, color, and a general theme.

Use the color of an image

You can use websites to retrieve a color from an image and obtain its HEX code, which you can then use for coding.
https://imagecolorpicker.comhttps://redketchup.io/color-picker

Color (HEX) Usage
#000a0c background
#121d1f second background
#3f4a4e border
#9db0b6 text
#3e494d sub text

All these colors come from the image above. I've assigned them a role, so i can easily refer to them when creating the profile! :)
I don't know any site that is particularly good at recognizing fonts, so i often go to Google Fonts and Free Webfonts to look for one that matches my example. For now, just choose a font u like and keep it aside, I'll explain how to use it.

Color Hex Code

The “hex” in hex code stands for hexadecimal, a base-16 numbering system that uses sixteen symbols: 0-9 and A-F. This system allows for over 16 million possible color combinations, making it a very powerful tool for designers.
source


Preparing the profile

Once your idea is ready, before you start coding, you can personalize your profile a little.

What? How?
background click on “edit profile” on ur profile page, then choose “Change Background Image” and upload your image. I like to use solid colors, but u can use a pattern or other, the choice is yours!
text to change the text color, click again on “edit profil” on your profile page, then on “Change Background Color”. A window will appear, scroll down to “Text Color” and paste the HEX code u previously chose.
profile card background You can change the color of your profile card by going to the same menu as for the text color, but this time paste your HEX code in “Background Color”.

Let's start coding!

If ur idea is well established and you have the resources to start coding, then it's time to get coding (ᵔ⩊ᵔ)

Where to code on JAI?

There are currently two ways to code on JAI. The first is to click on your profile, go to settings, then to the “about me” section.
about me section about me section

But I think there's a more effective way. Go back to ur profile page and click on the “edit profile” button.
edit profile button edit profile button

After clicking this button, u should see an “edit css” button centered at the top of ur profile.
edit profile button edit css button

Once u have clicked on this button, u should see this:
coding interface coding interface

This is the place to code! I prefer to use this than the about me section in the parameters, because even if the result remains the same, this coding interface features auto-completion which makes coding much quicker and easier! :D


How to code on JAI?

To customize your profile on JAI, you'll need to use a programming language called “CSS” (cascading style sheet).

What is CSS?

CSS is a programming language used to assign a style to an HTML element.

An element is what makes up a web page. An image is an element, a text is an element... And every element on JAI has a class! Thanks to this, we can modify them by identifying them in our code and assigning them a style other than the predefined one. To find out the class of an element, you need to “inspect” it.
...see "find elements to modify"


How to code in CSS?

First of all, its important to have a document similar to this one:

1
2
3
<style>
    /* All your code will be between these tags! If you place code outside of them, it will be ignored. */
</style>

There is NO need to rewrite these tags multiple times!

1
2
3
4
5
6
<style>
    /* All your code will be between these tags! If you place code outside of them, it will be ignored. */
    <style>
        /* This will NOT work and will cause your code to break! */
    </style>
</style>

Keep your code clean!

Its really important to have a clean code so as not to get lost! Here are some examples:

It's an organized, commented code, u won't get lost!

<style>
     /* website header */
    .css-p641ht {
        background: black;
    }

    /* username */
    .css-2mfldf {
        font-family: 'Xanh-Mono';
        text-shadow: 0px 0px 6px white;
        text-transform: uppercase;
        font-weight: normal;
    }
</style>

This code is not very organized and not commented, you risk getting lost and doing stupid things! :<

1
2
3
4
5
6
7
8
9
<style>
    .css-p641ht { background: black;
    }

    .css-2mfldf {
        font-family: 'Xanh-Mono'; text-shadow: 0px 0px 6px white;
        text-transform: uppercase;
        font-weight: normal; }
</style>

Comments in CSS

Comments are lines of code that the computer ignores. That means u can put whatever you want in them! I HIGHLY recommend that you put as many comments as possible on each element to remember which element it is!!!

How to make a comment?

/* put ur text between the slashes and asterisks !  */

Find the elements to modify

inspect element Place your mouse over the element you want to modify (or select text) then right click and search for "inspect element".

Once you click on "inspect element" you should see something similar to this appear on your screen:
inspection interface This is where you will be able to find the class of an element.

If you were focused on an element, then this window will open highlighting the element in question. If I had selected the text "public characters" and inspected the element this is what I would have seen :
public characters The code corresponding to the selected element has a blue background to highlight it.

<h2>text</h2>, class="class name"

<h2>text</h2> is an html element corresponding to a title. The largest is H1, the smallest H6.
class="class name" is placed inside a tag (example: <h2 class="class name">text</h2>) this is what allows you to know the class of an element!


How to customize your profile card?

Here you will find pieces of pre-made code accompanied by advice.

Center your profile picture, username, follower count

1
2
3
4
5
6
7
8
<style>
    /* center profile picture, username, follower count  */
    .css-1uodvt1 {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
</style>

Inpired by Rosewing's code.


Make a "wide" profile picture

1
2
3
4
5
6
7
<style>
    /* profile picture  */
    .css-hsi2ui {
      height: NUMBERpx; /* adjust the values so that your profile picture stands out well. */
      width: NUMBERpx; /* adjust the values so that your profile picture stands out well. */
    }
</style>

I highly recommend centering ur profile picture and putting the username and follower counter below the picture for a better look!

<style>
    /* profile picture  */
    .css-hsi2ui {
      height: NUMBERpx; /* adjust the values so that your profile picture stands out well. */
      width: NUMBERpx; /* adjust the values so that your profile picture stands out well. */
    }

    /* profile picture, username, follower count  */
    .css-1uodvt1 {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
</style>

Add this code or the one below if u don't want the text to be centered.

<style>
    /* profile picture */
    .css-hsi2ui {
      height: NUMBERpx; /* adjust the values so that your profile picture stands out well. */
      width: NUMBERpx; /* adjust the values so that your profile picture stands out well. */
      margin: 0 auto;
    }

    /* profile picture, username, follower count  */
    .css-1uodvt1 {
        display: block;
    }
</style>

Add a mask to your profile picture

Choose an image, but be aware that it will have to be transparent!
circle pngsecond circle pnganother mask These three work because they have a transparent background. It's a bit awkward, but basically, what isn't transparent will become transparent, and that's what makes the mask. The background, on the other hand, needs to be transparent, as it will delimit the mask. You can find lots of amazing masks on pinterest or other sites :D

Make the background transparent

If u find an image that suits u perfectly, but the background isn't transparent, I recommend using sites that remove it for u!
https://www.remove.bg

Once you've decided on your image, you'll need to upload it to an image hosting site. It's a bit tricky to find a good image hosting site, so I recommend you do your own research or use catbox or imgur.

If you're using imgur, once you've uploaded the image, right-click on it and click on “copy image address” to get a direct link.

A direct link ends with the file name (jpeg, png...)

When you're good with the image and have a direct link, you can move on to coding.

<style>
    /* profile picture */
    .css-hsi2ui {
        -webkit-mask-image: url(direct link to your image);
        mask-image: url(direct link to your image);
        -webkit-mask-position:center;
        -webkit-mask-repeat:no-repeat;
        mask-position:center;
        mask-repeat:no-repeat;
        mask-size: NUMBERpx; /* It's up to you to adjust the mask size so that it's not too big or too small. */
    }
</style>

Credits to maddieismystar's code.


Follow button

There are ample resources about the follow button on CSS for JAI, I recommend u go there to personalize ur button.


Using fonts, working on text in CSS

If you haven't made your choice of font yet, I recommend these sites to find a good font! (^‿^)


How to Google Fonts

To use a font from Google Fonts, here are the steps to follow :

  • Click on the font you have chosen then on "get font"
    get font button
  • You should see a menu appear, click on "get embed code"
    get font button
  • After clicking on "get embed code" you should arrive at this submenu, click on @import
    get font button
  • Simply copy the code and put it at the top of your CSS document.
    get font button
  • This is how your document should look :
    get font button
  • Now go back to google font and copy this part :
    get font button
  • This is how your document should look :
    get font button

Now, if u want to change the font of anything, take the class of the element in question and add :

font-family: "FONT NAME";

Like that :

<style>
    @import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

    .dotgothic16-regular {
      font-family: "DotGothic16", sans-serif; /* copy this line and paste it into the element to change its font */
      font-weight: 400;
      font-style: normal;
    }

    /* username */
    .css-2mfldf {
        font-family: "DotGothic16", sans-serif; /* like that ! :D */
    }

</style>

An @import rule must be defined at the top of the stylesheet or it will be ignored.

Of course, you can add as many @import as you want. Just make sure they are always at the top.


How to Free Webfonts

There are fewer choices than on Google Fonts, but the use is a little simpler. Go to the site, search for a font that suits you, then copy the code.
copy the code

Now, u just have to put it in your document :

<style>
    @font-face {                  
      font-family: 'CabinetGrotesk'; /* copy this line and paste it into the element to change its font */
      src: url(https://humantooth.neocities.org/fonts/CabinetGrotesk-Regular.woff) format('woff'); 
      font-weight: normal;
      font-style: normal;
    } 

    /* username */
    .css-2mfldf {
      font-family: 'CabinetGrotesk'; /* like that ! :D */
    }

</style>

Choose a font for all text on your profile

Universal selector

The universal selector : * is a special selector that applies style to every elements on your page.

1
2
3
4
5
<style>
   * {
        font-family: "FONT NAME";
    }
</style>

However, some text may not be affected, you will need to retrieve their class and apply 'font-family' to them anyway.


Working with text with CSS

Its possible to change text beyond just color or font with CSS, here are some examples.

code result
text-transform: uppercase; CAPITALIZES ALL LETTERS OF AN ELEMENT
text-transform: lowercase; puts all letters of an element in lowercase
font-weight: normal; if you have bold text by default, this allows you to remove it
font-weight: bold; bold text
font-size: NUMBERpx; change text size
font-variant: small-caps; small caps
font-style: italic; italicizes a text
text-decoration: line-through solid #COLOR; strikeout
letter-spacing: NUMBERpx; c h a n g eㅤ l e t t e r ㅤ s p a c i n g

Create a “neon” effect

To create a neon effect, simply use text-shadow.

1
2
3
4
5
6
7
<style>
    /* username */
    .css-2mfldf {
      text-shadow: 0px 0px NUMBERpx #COLOR; /* change the number to widen the effect */
    }

</style>

Result :
result

Edit
Pub: 22 Sep 2024 17:33 UTC
Edit: 23 Sep 2024 16:11 UTC
Views: 175