📋Build Steps
Basic building steps to easily build your CSS text portrait.
Let's build your CSS text portrait and showcase it to the world! 🥰
Instant Build Steps
Rename your image into
bg.jpg
and make sure it is in JPG/JPEG format.Navigate to
src/img
and upload your image, just replace the existing image.Next, open
config.json
file by just clicking it, an editor will open.Edit the contents of
config.json
file to match your needs. For the objectname
this is the name of your portrait, it can be a name of your subject. For the objecttext
this is the text you want to see in the portrait. It can be a lyrics, a passage from a book, or a sweet message to your subject or loved one.Now let's edit the visual appearance of your portrait. Navigate to
src/scss
and open the file_vars.scss
to edit the visual settings. It is up to you to use the default settings or customize it.Once you are satisfied with the configurations and visual settings, then look in the command-line interface and hover your mouse to the
https://localhost:1234
pressctrl
+left click
to open it to a new tab. You'll see your builds in real-time.
Manual Build Steps
Inside the builder's directory, navigate to
src/img
and place your image. Rename it intobg.jpg
which is required. 🚨 Replace any image inside it's fine.Next, open
config.json
file using code editor like VS Code.Edit the contents of
config.json
file to match your needs. For the objectname
this is the name of your portrait, it can be a name of your subject. For the objecttext
this is the text you want to see in the portrait. It can be a lyrics, a passage from a book, or a sweet message to your subject or loved one.Now let's edit the visual appreance of your portrait. Navigate to
src/scss
and open the file_vars.scss
to edit the visual settings. It is up to you to use the default settings or customize it.Once you are satisfied with the configurations and visual settings, then let's build it! Type
yarn build
to start the building process.Lastly, type
yarn serve
to preview your build. A local server will be open at port1234
. Copy and paste that to your favorite browser and you're done!
For further customization, proceed to the Customization section. 😁
Last updated