Change layout
Changing the project layout is as easy as stealing a child's candy.
Just browse to your .env
file and change the layout name.
By default, ElectroAAC so far provides 2 layouts. tibia-default and tibia-custom
But you don't have to be attached to them. You can create your own layout. We will try?
Create your layout
The first thing to do is think of a name. For the example, we will use the name electro-test.
Now that we have the name chosen, we need to create our .css file. For this, we will go to the assets/css
folder and we will create a file called electro-test.css
Configure css
Now you can put any css code here that you think is necessary, you can also use our example that we are going to use as a base. We will put some css code that we think is important to have to configure it our way :)
Create image folder
If you noticed the code, we are importing some images from a directory that doesn't exist yet. So let's create it:
In assets/images
create a folder with the name of your project, in our case of the example, we will create a folder called electro-test
.
In this folder, we want to place our own background image for both the website and our header.
Register in .env file
Now that we've created our css class and we've added our own images. Let's add it to our .env file
LAYOUT='electro-test'
Ready!! We created our own layout.
Last updated