A Pen by Duraid Abdul on CodePen.
Created
August 1, 2020 04:16
-
-
Save duraidabdul/e18b0dfb5528431eda62e1f00c298a26 to your computer and use it in GitHub Desktop.
Portfolio
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
<html> | |
<head> | |
<title>Portfolio</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<div class="center"> | |
<h1>Duraid Abdul</h1> | |
<p>Mechanical Engineering Student, iOS Developer</p> | |
<h2>Projects</h2> | |
<a target="_blank" href='https://github.com/duraidabdul/WWDC20'><button> WWDC20 Swift Student Challenge Winner</button></a> | |
<a target="_blank" href='https://github.com/duraidabdul/Neptune'><button>Neptune</button></a> | |
<button>Reflection</button> | |
<button>FLVolumeHUD</button> | |
<button>FLConsole</button> | |
<button>Variable Font Animator</button> | |
</div> | |
</body> | |
</html> |
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
:root { | |
--main-bg-color: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | |
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", | |
"Segoe UI Symbol"; | |
} | |
.container { | |
height: 10em; | |
position: relative; | |
border: 1px solid green; | |
} | |
.center { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
} | |
h1 { | |
font-family: var(--main-bg-color); | |
} | |
h2 { | |
font-family: var(--main-bg-color); | |
} | |
p { | |
font-family: var(--main-bg-color); | |
opacity: 0.7; | |
} | |
button { | |
position: relative; | |
background: #ffffff; | |
font-size: 1em; | |
font-weight: semibold; | |
cursor: pointer; | |
border: 0; | |
border-radius: 0.5em; | |
color: #007aff; | |
outline: none; | |
left: -0.75em; | |
right: 0.75em; | |
padding-top: 0.5em; | |
padding-bottom: 0.5em; | |
padding-left: 0.75em; | |
padding-right: 0.75em; | |
transition: background 0.25s ease-in-out, transform 0.2s ease-in-out, | |
color 0.25s ease-in-out; | |
} | |
@media (pointer: fine) { | |
button:hover { | |
outline: none; | |
background: #f2f2f2; | |
color: #007aff; | |
transition: background 0.1s ease-in-out, transform 0.2s ease-in-out, | |
color 0.25s ease-in-out; | |
} | |
button:active { | |
outline: none; | |
background: #e6e6e6; | |
color: #005cbf; | |
/* color: #4DA2FF; */ | |
transform: scale(0.98, 0.98); | |
transition: background 0.05s ease-in-out, transform 0.075s ease-in-out; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment