Skip to content

Commit

Permalink
Add custom cursor and separate reset css 🎄.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpotane committed Nov 23, 2022
1 parent 0dc0eb7 commit ff19517
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 25 deletions.
Binary file added beginner/assets/cursor.cur
Binary file not shown.
Binary file modified beginner/assets/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified beginner/assets/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 21 additions & 22 deletions beginner/index.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
@import url("https://fonts.googleapis.com/css?family=Poppins&display=swap");
@import url("https://fonts.googleapis.com/css?family=Carter+One&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Carter+One&display=swap');

/* Setting the margin, padding, box-sizing, and font-family for all elements. */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
cursor: url('./assets/cursor.cur'),auto;
}

/* Setting the default background color to white and the default text color to black. */
Expand All @@ -26,7 +22,7 @@ html {
}

body {
max-width: 100%;
font-family: 'Poppins', sans-serif;
}

header {
Expand Down Expand Up @@ -98,7 +94,6 @@ li {

.hamburger {
display: none;
cursor: pointer;
}

.bar {
Expand Down Expand Up @@ -143,23 +138,22 @@ section {
font-size: 3.5rem;
font-family: 'Carter One', sans-serif;
font-weight: bold;
color: #7b3fe4;
color: #8358cd;
}

.txt__upper {
font-weight: 900;
text-decoration-line: underline;
text-decoration-color: salmon;
font-weight: 800;
color: rgb(83, 81, 81);
}

.txt__under {
font-weight: bold;
text-decoration-line: underline;
text-decoration-color: salmon;
font-weight: 700;
color: rgb(83, 81, 81);
}

.desc {
padding: .5rem;
color: rgb(119, 119, 119);
}

.btn {
Expand All @@ -176,7 +170,11 @@ section {
}

.btn:hover {
transform: scale(1.1);
/*transform: scale(1.1);*/
color: rgb(239, 248, 252);
background-color: #7b3fe4;
box-shadow: none;
border: 0;
}

.txt::first-letter {
Expand Down Expand Up @@ -225,15 +223,16 @@ section {

.card {
box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
border-bottom-right-radius: 1rem;
border-radius: 12px;
}

.card__cover {
width: 100%;
}

.card__cover img {
border-top-left-radius: 1rem;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}

.card:hover {
Expand All @@ -243,7 +242,8 @@ section {
.card__content {
padding: 1.25rem;
background-color: white;
border-bottom-right-radius: 1rem;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}

.card__content p {
Expand All @@ -268,7 +268,7 @@ section {
}

.testimony {
background: #7b3fe4;
background: #7757ae;
display: flex;
flex-direction: column;
justify-content: center;
Expand Down Expand Up @@ -481,7 +481,6 @@ figcaption {
height: 30px;
margin: 10px 10px;
position: relative;
cursor: pointer;
display: inline-block;
}
.nav-icon-6 span{
Expand Down
7 changes: 4 additions & 3 deletions beginner/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Landing page</title>
<link rel="icon" href="assets/favicon.ico">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.css">
</head>
Expand Down Expand Up @@ -42,10 +43,10 @@
<main>
<section class="hero" id="hero__section">
<article class="left-hero">
<p class="txt__upper">Hello I'm,</p>
<p class="txt__upper">Hello 👋 I'm,</p>
<h1 class="txt">John Doe</span></h1>
<h3 class="txt__under">Software Engineer.</h3>
<p class="desc">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Unde, iusto ullam? Vel facilis rem sit inventore a iure eum excepturi quasi sapiente cum voluptate, expedita, placeat nihil, molestias magnam vero?</p>
<h3 class="txt__under">Software Engineer. 💻</h3>
<p class="desc">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Eius, temporibus.</p>
<div class="soclinks">
<button class="btn" type="button">Contact Me!</button>
</div>
Expand Down
46 changes: 46 additions & 0 deletions beginner/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
*,
*::before,
*::after {
box-sizing: border-box;
}

* {
margin: 0;
}

html,
body {
height: 100%;
}

body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}

input,
button,
textarea,
select {
font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}

Binary file modified images/beginner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ff19517

Please sign in to comment.