Skip to content

Commit

Permalink
hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
nelcr committed Mar 29, 2024
1 parent d88ba43 commit 17c37e2
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 14 deletions.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
</head>
<body>
<button>
<span>Hello world!</span>
<span
>Hello world! <br />
my name is Nelson...</span
>
<svg
viewBox="-5 -5 110 110"
preserveAspectRatio="none"
Expand Down
10 changes: 7 additions & 3 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body {
align-items: center;
background: #252b32;
display: flex;
font-family: 'Rubik', sans-serif;
font-family: "Rubik", sans-serif;
font-size: clamp(16px, 5vw, 32px);
justify-content: center;
margin: 0;
Expand All @@ -24,7 +24,9 @@ body {
}

button {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: transparent;
border: 0;
color: #fff;
Expand All @@ -50,6 +52,8 @@ button > span {
position: relative;
transition: transform var(--motion-duration) var(--motion-ease);
z-index: 1;
text-align: left;
line-height: 1.2;
}

button:hover > span {
Expand Down Expand Up @@ -79,4 +83,4 @@ button:hover > svg > path {

button:active > svg > path {
d: path("M0,0 C30,10 70,10 100,0 C95,30 95,70 100,100 C70,90 30,90 0,100 C5,70 5,30 0,0");
}
}/*# sourceMappingURL=main.css.map */
1 change: 1 addition & 0 deletions main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

102 changes: 92 additions & 10 deletions main.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,98 @@
// Sports Wallet
// Theme Files

@import './styles/reset';
@import './styles/variables';
@import './styles/layout';
@import './styles/typography';
@import './styles/buttons';
@import './styles/form';
// @import './styles/reset';
// @import './styles/variables';
// @import './styles/layout';
// @import './styles/typography';
// @import './styles/buttons';
// @import './styles/form';

// Bootstrap Customization
@import './styles/bs_custom';
// @import './styles/bs_custom';

// .accordion * {
// all: unset;
// }

:root {
--motion-ease: cubic-bezier(0.68, -0.6, 0.32, 1.6);
--motion-duration: 0.3s;
}

* {
box-sizing: border-box;
}

html {
height: 100%;
}

body {
align-items: center;
background: #252b32;
display: flex;
font-family: 'Rubik', sans-serif;
font-size: clamp(16px, 5vw, 32px);
justify-content: center;
margin: 0;
min-height: 100%;
padding: 1.5em;
}

button {
appearance: none;
background: transparent;
border: 0;
color: #fff;
cursor: pointer;
font: inherit;
font-weight: 500;
line-height: 1;
padding: 1em 1.5em;
position: relative;
transition: filter var(--motion-duration);
}

button:hover {
filter: brightness(1.1);
}

button:active {
filter: brightness(0.9);
}

button > span {
display: block;
position: relative;
transition: transform var(--motion-duration) var(--motion-ease);
z-index: 1;
text-align: left;
line-height: 1.2;
}

button:hover > span {
transform: scale(1.05);
}

button:active > span {
transform: scale(0.95);
}

button > svg {
fill: #950cde;
position: absolute;
top: -5%;
left: -5%;
width: 110%;
height: 110%;
}

button > svg > path {
transition: var(--motion-duration) var(--motion-ease);
}

button:hover > svg > path {
d: path("M0,0 C0,-5 100,-5 100,0 C105,0 105,100 100,100 C100,105 0,105 0,100 C-5,100 -5,0 0,0");
}

button:active > svg > path {
d: path("M0,0 C30,10 70,10 100,0 C95,30 95,70 100,100 C70,90 30,90 0,100 C5,70 5,30 0,0");
}

0 comments on commit 17c37e2

Please sign in to comment.