-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from yasminzy/main
Add card css snippet
- Loading branch information
Showing
4 changed files
with
219 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# CSS Card with Button | ||
|
||
![Screenshot](./screenshot.png) |
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,45 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>CSS Card with Button</title> | ||
<link rel="stylesheet" href="style.css" /> | ||
</head> | ||
|
||
<body> | ||
<div | ||
class="p-6 max-w-sm bg-white rounded-lg border border-gray-200 shadow-md" | ||
> | ||
<a href="#"> | ||
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900"> | ||
Noteworthy technology acquisitions 2022 | ||
</h5> | ||
</a> | ||
<p class="mb-3 font-normal text-gray-700"> | ||
Here are the biggest enterprise technology acquisitions of 2022 so far, | ||
in reverse chronological order. | ||
</p> | ||
<a | ||
href="#" | ||
class="inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none" | ||
> | ||
Read more | ||
<svg | ||
aria-hidden="true" | ||
class="ml-2 -mr-1 w-4 h-4" | ||
fill="currentColor" | ||
viewBox="0 0 20 20" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" | ||
clip-rule="evenodd" | ||
></path> | ||
</svg> | ||
</a> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,171 @@ | ||
*, | ||
::before, | ||
::after { | ||
box-sizing: border-box; | ||
border-width: 0; | ||
border-style: solid; | ||
} | ||
|
||
html { | ||
line-height: 1.5; | ||
-webkit-text-size-adjust: 100%; | ||
-moz-tab-size: 4; | ||
tab-size: 4; | ||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, | ||
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, | ||
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
line-height: inherit; | ||
} | ||
|
||
h5 { | ||
font-size: inherit; | ||
font-weight: inherit; | ||
} | ||
|
||
a { | ||
color: inherit; | ||
text-decoration: inherit; | ||
} | ||
|
||
h5, | ||
p { | ||
margin: 0; | ||
} | ||
|
||
.p-6 { | ||
padding: 1.5rem; | ||
} | ||
|
||
.max-w-sm { | ||
max-width: 24rem; | ||
} | ||
|
||
.bg-white { | ||
background-color: rgb(255 255 255); | ||
} | ||
|
||
.rounded-lg { | ||
border-radius: 0.5rem; | ||
} | ||
|
||
.border { | ||
border-width: 1px; | ||
border-top-width: 1px; | ||
border-right-width: 1px; | ||
border-bottom-width: 1px; | ||
border-left-width: 1px; | ||
} | ||
|
||
.border-gray-200 { | ||
border-color: rgb(229 231 235); | ||
} | ||
|
||
.shadow-md { | ||
box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgb(0 0 0 / 0.1), | ||
0 2px 4px -2px rgb(0 0 0 / 0.1); | ||
} | ||
|
||
.mb-2 { | ||
margin-bottom: 0.5rem; | ||
} | ||
|
||
.text-2xl { | ||
font-size: 1.5rem; | ||
line-height: 2rem; | ||
} | ||
|
||
.font-bold { | ||
font-weight: 700; | ||
} | ||
|
||
.tracking-tight { | ||
letter-spacing: -0.025em; | ||
} | ||
|
||
.text-gray-900 { | ||
color: rgb(17 24 39); | ||
} | ||
|
||
.mb-3 { | ||
margin-bottom: 0.75rem; | ||
} | ||
|
||
.font-normal { | ||
font-weight: 400; | ||
} | ||
|
||
.text-gray-700 { | ||
color: rgb(55 65 81); | ||
} | ||
|
||
.inline-flex { | ||
display: inline-flex; | ||
} | ||
|
||
.items-center { | ||
align-items: center; | ||
} | ||
|
||
.py-2 { | ||
padding-top: 0.5rem; | ||
padding-bottom: 0.5rem; | ||
} | ||
|
||
.px-3 { | ||
padding-left: 0.75rem; | ||
padding-right: 0.75rem; | ||
} | ||
|
||
.text-sm { | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
} | ||
|
||
.font-medium { | ||
font-weight: 500; | ||
} | ||
|
||
.text-center { | ||
text-align: center; | ||
} | ||
|
||
.text-white { | ||
color: rgb(255 255 255); | ||
} | ||
|
||
.bg-blue-700 { | ||
background-color: rgb(29 78 216); | ||
} | ||
|
||
.hover\:bg-blue-800:hover { | ||
background-color: rgb(30 64 175); | ||
} | ||
|
||
.focus\:ring-4:focus { | ||
box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000; | ||
} | ||
|
||
.focus\:outline-none:focus { | ||
outline: 2px solid transparent; | ||
outline-offset: 2px; | ||
} | ||
|
||
.ml-2 { | ||
margin-left: 0.5rem; | ||
} | ||
|
||
.-mr-1 { | ||
margin-right: -0.25rem; | ||
} | ||
|
||
.w-4 { | ||
width: 1rem; | ||
} | ||
|
||
.h-4 { | ||
height: 1rem; | ||
} |