-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
398 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" > | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Example</title> | ||
|
||
|
||
|
||
|
||
|
||
</head> | ||
<title>CodePen - githubpage</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
|
||
</head> | ||
<body> | ||
|
||
<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/API/notification --> | ||
|
||
<button onclick="notifyMe()">Notify me!</button> | ||
|
||
|
||
|
||
<script src="js/index.js"></script> | ||
|
||
|
||
|
||
<!-- partial:index.partial.html --> | ||
<script src="js/index.js"></script> | ||
<h1>Startpage obrian.ch</h1> | ||
<div class="buttons"> | ||
<button class="neumorphic"> | ||
<i class="fa-light fa-fire"></i> | ||
<span>Personal Blog</span> | ||
</button> | ||
<button class="neumorphic"> | ||
<i class="fa-brands fa-github"></i> | ||
<span>Github</span> | ||
</button> | ||
<button class="neumorphic"> | ||
<i class="fa-brands fa-linkedin"></i> | ||
<span>Linkedin</span> | ||
</button> | ||
<button class="neumorphic" onclick="notifyMe()"> | ||
<i class="fa-light fa-atom"></i> | ||
<span>Notify me!</span> | ||
</button> | ||
</div> | ||
<!-- partial --> | ||
<script src="./script.js"></script> | ||
|
||
</body> | ||
|
||
</html> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
@import url('https://pro.fontawesome.com/releases/v6.0.0-beta1/css/all.css'); | ||
|
||
button.neumorphic { | ||
container-type: inline-size; | ||
aspect-ratio: 1/1; | ||
border: 0.5rem solid transparent; | ||
border-radius: 1rem; | ||
color: hsl(0 0% 10%); | ||
background: none; | ||
|
||
display: grid; | ||
place-content: center; | ||
gap: 1rem; | ||
|
||
--shadow: | ||
-.5rem -.5rem 1rem hsl(0 0% 100% / .75), | ||
.5rem .5rem 1rem hsl(0 0% 50% / .5); | ||
box-shadow: var(--shadow); | ||
outline: none; | ||
transition: all 0.1s; | ||
|
||
&:hover, &:focus-visible { | ||
color: hsl(10 80% 50%); | ||
scale: 1.1 | ||
} | ||
&:active, &.active{ | ||
box-shadow: | ||
var(--shadow), | ||
inset .5rem .5rem 1rem hsl(0 0% 50% / .5), | ||
inset -.5rem -.5rem 1rem hsl(0 0% 100% / .75); | ||
color: hsl(10 80% 50%); | ||
> i { font-size: 28cqi}; | ||
> span { font-size: 13cqi}; | ||
} | ||
|
||
>i { | ||
font-size: 31cqi; | ||
} | ||
> span { | ||
font-family: system-ui, sans-serif; | ||
font-size: 16cqi; | ||
} | ||
} | ||
|
||
body { | ||
background-color: #283593; | ||
padding: 2rem; | ||
} | ||
h1 { | ||
text-align: center; | ||
color: hsl(0 0% 10%); | ||
font-family: system-ui, sans-serif; | ||
font-size: 3rem; | ||
} | ||
.buttons { | ||
display: grid; | ||
width: min(75rem, 100%); | ||
margin-inline: auto; | ||
grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr)); | ||
gap: 2rem; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.