Hello! My name is Pedro Henriques. I'm a programmer.
I build dynamic websites and desktop applications.
Currently working as a Solution Architect.
As a showcase of my skills let me build this website...in front of you.
Lets start!
First, some basic styles.
* {
margin:
0px 0px;
padding:
0px 0px;
font-family:
'Roboto', Arial, sans-serif;
-moz-box-sizing:
border-box;
-webkit-box-sizing:
border-box;
box-sizing:
border-box;
}
html {
font-size:
18px; }
@media (
max-width:
950px)
{
html {
font-size:
15px; }
}
@media (
max-width:
800px), (
max-height:
450px)
{
html {
font-size:
13px; }
}
@media (
max-width:
680px)
{
html {
font-size:
12px; }
}
@media (
max-width:
625px)
{
html {
font-size:
11px; }
}
@media (
max-width:
350px)
{
html {
font-size:
10px; }
}
body {
font-size:
1rem;
background-color:
rgba(0, 0, 0, 0.05);
}
#work_area {
padding:
0.5rem; }
Next, lets give everything some transitions!
* {
-webkit-transition:
all 1s ease-in-out;
-moz-transition:
all 1s ease-in-out;
-o-transition:
all 1s ease-in-out;
transition:
all 1s ease-in-out;
}
Finally, lets style this text box and color code the text!
div.flex_item {
-webkit-flex:
1 1 auto;
flex:
1 1 auto;
}
div.content {
width:
22%;
border:
0.1rem solid black;
background-color:
rgb(39,40,34);
}
.css_selector {
color:
rgb(230,159,15); }
.css_property {
color:
rgb(102,217,239); }
.css_value {
color:
rgb(190,132,242); }
.css_units {
color:
rgb(249,38,114); }
.css_keyword {
color:
rgb(249,38,114); }
...Let me adjust the normal text color for you.
* {
color:
white; }
There...much better!
This text box is becoming very crowded!
Time to create a new box for the styles.
Lets test it.
Before I do the next step, I'll need a box to write JavaScript code.
And some color coding for the JavaScript text.
Time to give each box a header, so we can keep track of which box is which.
And then some functionality to those headers.
While the application is running you can't expand or collapse the text boxes, but you can pause at any time!
We are done styling, so let's collapse the style box to clear some space on the screen.
And to conclude this presentation let me tell you a little bit more about myself.
Thank you for visiting my website!
Hope you enjoyed it as much as I enjoyed making it.
Notes:
- All the code used on this website was built by me from scratch, without the use of any libraries, frameworks or other third party code.
Acknowledgements:
- CSS and Javascript text color coding based on
sublime text's "Monokai Bright" color scheme.
Feel free to expand and collapse the text boxes as you see fit! :)