Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add styling such as background color and font #6

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions index.html
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know about preconnect, very cool

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol I don't know what's preconnect neither. The whole snippet is copied from Google Font after I select the font I want.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap" rel="stylesheet">
<link href="styles.css" rel="stylesheet">
<title>Hot Gitato!</title>
</head>
Expand Down
29 changes: 29 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*Jason: I cleaned up the readability a little, but your CSS skills are beyond mine so I ain't touched it*/

* {font-family: 'Rubik Mono One', sans-serif;}

body{
background: linear-gradient(350deg, #8D84DC, #E18D07);
color:#F6EFEE
}

header {text-align: center;}

img{
width: 3rem;
animation: bounce 5s linear;
}

@keyframes bounce {
20%, 50%, 80%, to{
transform: translateX(0)
}
40%{
transform: translateX(-1000px)
}
70%{
transform: translateX(1000px)
}
}

section {padding-left: 2rem}