Skip to content

Commit 991a4b4

Browse files
committed
add .centered-article
1 parent b328345 commit 991a4b4

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

css/presentation-section.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
color: var(--default-font-color);
33
font-family: var(--default-font-family);
44
padding: 1em;
5+
56
}
67

78
#presentation-title {
89
font-size: 2.6rem;
910
color: var( --default-secundary-font-color);
1011
animation: 1s show-presentation ease;
12+
margin-top: 0.7rem;
13+
margin-bottom: 0.7rem;
1114
}
1215

1316
#presentation-main-skill {
@@ -18,6 +21,8 @@
1821
animation-duration: 1s;
1922
animation-delay: 0.2s;
2023
animation-fill-mode: forwards;
24+
margin-top: 0.7rem;
25+
margin-bottom: 0.7rem;
2126
}
2227

2328
#presentation-description {
@@ -27,5 +32,7 @@
2732
animation-duration: 1s;
2833
animation-delay: 0.4s;
2934
animation-fill-mode: forwards;
35+
margin-top: 0.7rem;
36+
margin-bottom: 0.7rem;
3037
}
3138

css/styles.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,12 @@ nav {
102102
font-size: 1.7rem;
103103

104104
}
105-
106-
/* Ids */
107-
105+
.centered-article{
106+
display: flex;
107+
flex-direction: column;
108+
justify-content: center;
109+
height: 90%;
110+
}
108111

109112
@keyframes show-presentation {
110113
0% {

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</nav>
5454
</header>
5555
<section>
56-
<div class="presentation">
56+
<div class="presentation centered-article">
5757
<h1 id="presentation-title">Hi, I am <br class='br-show'>Carlos Jorge!</h1>
5858
<h3 id="presentation-main-skill">I'm an <br class='br-show'>full-stack engineer</h3>
5959
<p id="presentation-description">
@@ -63,7 +63,7 @@ <h3 id="presentation-main-skill">I'm an <br class='br-show'>full-stack engineer<
6363
</div>
6464
</section>
6565
<section>
66-
<article id="aboutMe">
66+
<article id="aboutMe" class="centered-article">
6767
<h2 class="subtitle reveal">
6868
About me
6969
</h2>

0 commit comments

Comments
 (0)