Skip to content

Commit b57cc78

Browse files
Merge pull request #279 from DiogoRibeiro7/codex/melhorar-css-e-corrigir-erros
Enhance site style
2 parents f3eb0c4 + 19dc399 commit b57cc78

File tree

4 files changed

+23
-21
lines changed

4 files changed

+23
-21
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,9 @@ GitHub Actions already runs these commands automatically during deployments.
7373

7474
# ToDo
7575

76-
Have a consistency in the font and font sizes (ideally you want to use 2 fonts. One for the header/subtitle and one for the text. You can use this kind of website https://fontjoy.com/ which allow you to pair fonts).
77-
7876
Choose a few main colours for your site (I would suggest black/white/grey but not in solid. You can also use this kind of site: https://coolors.co/palettes/popular/2a4849).
7977

80-
Reduce then size of the homepage top image (ideally you want your first articles to be visible on load and not hidden below the fold).
81-
82-
Restyle your links (ideally the link should be back with no underline and you add a css style on hover)
83-
84-
Center pagination
85-
86-
Restyle your article detail page breadcrumbs. You want them to be less visible (I would suggest a light grey colour here)
87-
8878
Right now at the top of the detail page, you have your site breadcrumbs, a title then another title and the font sizes are a bit off and it is hard to understand the role of the second title. I would reorganise this to provide a better understanding to the reader
89-
9079
On the detail page, I would suggest you put the `You may also enjoy` straight at the end of the article. Right now it is after comments and you can lose engagement on your site.
91-
9280
I would suggest you remove your description from the detail page. I think having it on the home page is enough. You can have a smaller introduction if needed with a read more button or link that will take the reader to a full page description of yourself and your skillset. That will allow you to tell more about yourself and why you do what you do
93-
9481
I will create card article with a hover animation (add some shape and background colour and ideally a header image for the card. The graphs you show me last week for example.)

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<!-- Google Fonts -->
2121
<link rel="preconnect" href="https://fonts.googleapis.com">
2222
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
23-
<link href="https://fonts.googleapis.com/css2?family=Cardo&display=swap" rel="stylesheet">
23+
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Montserrat:wght@700&display=swap" rel="stylesheet">
2424

2525
{% if site.head_scripts %}
2626
{% for script in site.head_scripts %}

_sass/minimal-mistakes/_variables.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ $calisto: "Calisto MT", serif !default;
3232
$garamond: Garamond, serif !default;
3333

3434
// Setting the fonts
35-
$global-font-family: "Georgia, serif";
36-
$header-font-family: "Times, Times New Roman, serif";
37-
$caption-font-family: "Cardo, serif";
35+
$global-font-family: "Open Sans", sans-serif;
36+
$header-font-family: "Montserrat", sans-serif;
37+
$caption-font-family: "Open Sans", sans-serif;
3838

3939
/* type scale */
4040
$type-size-1: 2.441em !default; // ~39.056px

assets/css/main.scss

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ a:hover {
2929
color: $link-color-hover;
3030
}
3131

32+
/* Lighten breadcrumb text */
33+
.breadcrumbs {
34+
color: #999;
35+
}
36+
37+
/* Center pagination links */
38+
.pagination {
39+
text-align: center;
40+
}
41+
.pagination li {
42+
float: none;
43+
display: inline-block;
44+
}
45+
3246

3347
/* Custom styles for the 404 page */
3448
.page__hero {
@@ -48,10 +62,11 @@ a:hover {
4862
// background-color: rgba(0, 0, 0, 0.5);
4963
// }
5064

51-
.page__hero-image img {
52-
max-width: 100%;
53-
height: auto;
54-
}
65+
.page__hero-image img {
66+
max-width: 100%;
67+
height: auto;
68+
max-height: 50vh; /* smaller hero image */
69+
}
5570

5671
.page__hero-title {
5772
position: absolute;

0 commit comments

Comments
 (0)