Skip to content

Commit

Permalink
responsive design and favicon added
Browse files Browse the repository at this point in the history
  • Loading branch information
erickdc7 committed Jan 22, 2023
1 parent 74c092e commit 06845a6
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
Binary file added favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Merry Christmas</title>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<title>Merry Christmas Card</title>
</head>

<body>
Expand Down
57 changes: 57 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,60 @@ body {
width: 400px;
transition: all 0.3s ease-out;
}

@media screen and (max-width: 500px) {
body {
overflow: hidden;
}

.card {
width: 100%;
height: auto;
}

.card .images .santa {
width: calc(400px - 50px);
}

.card .title {
top: 20px;
}

.card .images .tree {
width: calc(400px - 50px);
}

.card .title h2 {
font-size: 25px;
}

.card .title h1 {
font-size: 50px;
}

.card .title h3 {
font-size: 20px;
}
}

@media screen and (max-width: 300px) {
.card .images .santa {
width: calc(400px - 150px);
}

.card .images .tree {
width: calc(400px - 150px);
}

.card .title h2 {
font-size: 25px;
}

.card .title h1 {
font-size: 40px;
}

.card .title h3 {
font-size: 20px;
}
}

0 comments on commit 06845a6

Please sign in to comment.