Skip to content

Commit

Permalink
Merge pull request #2 from maitrakhatri/alert-button
Browse files Browse the repository at this point in the history
Alert & Button done
  • Loading branch information
maitrakhatri authored Jan 29, 2022
2 parents ab0f0cd + f22063b commit 7f5397a
Show file tree
Hide file tree
Showing 6 changed files with 256 additions and 0 deletions.
52 changes: 52 additions & 0 deletions alert/alert.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
@import url(../style.css);

.alert {
border-radius: 3px;
padding: 0.75rem;
margin: 2rem;
color: white;
}

.alert-primary {
background-color: var(--primary);
}

.alert-secondary {
background-color: var(--secondary);
}

.alert-success {
background-color: var(--success);
}

.alert-warning {
background-color: var(--warning);
}

.alert-danger {
background-color: var(--danger);
}

.outline-primary {
border: 2px solid var(--primary);
color: var(--primary);
}

.outline-secondary {
border: 2px solid var(--secondary);
color: var(--secondary);
}

.outline-success {
border: 2px solid var(--success);
color: var(--success)
}

.outline-warning {
border: 2px solid var(--warning);
color: var(--warning);
}
.outline-danger {
border: 2px solid var(--danger);
color: var(--danger);
}
53 changes: 53 additions & 0 deletions alert/alert.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!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>alert</title>
<link rel="stylesheet" href="alert.css">
</head>
<body>

<div class="alert alert-primary">
This is a Primary Alert !!
</div>

<div class="alert alert-secondary">
This is a Secondary Alert !!
</div>

<div class="alert alert-success">
This is a Success Alert !!
</div>

<div class="alert alert-warning">
This is a Warning Alert !!
</div>

<div class="alert alert-danger">
This is a Danger Alert !!
</div>

<div class="alert outline-primary">
This is an outline Primary Alert !!
</div>

<div class="alert outline-secondary">
This is an outline Secondary Alert !!
</div>

<div class="alert outline-success">
This is an outline Success Alert !!
</div>

<div class="alert outline-warning">
This is an outline Warning Alert !!
</div>

<div class="alert outline-danger">
This is an outline Danger Alert !!
</div>

</body>
</html>
1 change: 1 addition & 0 deletions button/arrow_upward_white_24dp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions button/button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
@import url(../style.css);

.btn {
border: none;
padding: .5rem 1rem;
color: white;
font-size: 16px;
border-radius: 2px;
background-color: #fff;
}

.btn:hover {
cursor: pointer;
}

.btn-primary {
background-color: var(--primary);
}

.btn-secondary {
background-color: var(--secondary);
}

.btn-success {
background-color: var(--success);
}

.btn-warning {
background-color: var(--warning);
}
.btn-danger {
background-color: var(--danger);
}

.btn-outline-primary {
border: 2px solid var(--primary);
color: var(--primary);
}

.btn-outline-secondary {
border: 2px solid var(--secondary);
color: var(--secondary);
}

.btn-outline-success {
border: 2px solid var(--success);
color: var(--success)
}

.btn-outline-warning {
border: 2px solid var(--warning);
color: var(--warning);
}
.btn-outline-danger {
border: 2px solid var(--danger);
color: var(--danger);
}

.btn-hover:hover {
color: white;
}

.btn-hover.btn-outline-primary:hover {
background-color: var(--primary);
}

.btn-hover.btn-outline-secondary:hover {
background-color: var(--secondary);
}
.btn-hover.btn-outline-success:hover {
background-color: var(--success);
}
.btn-hover.btn-outline-warning:hover {
background-color: var(--warning);
}
.btn-hover.btn-outline-danger:hover {
background-color: var(--danger);
}

.btn-floating-action {
position: fixed;
bottom: 5%;
right: 5%;
padding: .5rem .75rem;
border-radius: 50%;
}

.btn a {
color: inherit;
}
59 changes: 59 additions & 0 deletions button/button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!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>Button</title>
<link rel="stylesheet" href="button.css">
<style>
div {
padding: 1rem;
margin: 1rem;
}

button {
margin: 1rem;
}
</style>
</head>
<body>

<div>
<button class="btn btn-primary">Primary Button</button>
<button class="btn btn-secondary">Secondary Button</button>
<button class="btn btn-success">Success Button</button>
<button class="btn btn-warning">Warning Button</button>
<button class="btn btn-danger">Danger Button</button>
</div>

<div>
<button class="btn btn-outline-primary">Outline Primary Button</button>
<button class="btn btn-outline-secondary"> OutlineSecondary Button</button>
<button class="btn btn-outline-success">Outline Success Button</button>
<button class="btn btn-outline-warning">Outline Warning Button</button>
<button class="btn btn-outline-danger">Outline Danger Button</button>
</div>

<div>
<button class="btn btn-hover btn-outline-primary">Hoverable Outline Primary Button</button>
<button class="btn btn-hover btn-outline-secondary">Hoverable Outline Secondary Button</button>
<button class="btn btn-hover btn-outline-success">Hoverable Outline Success Button</button>
<button class="btn btn-hover btn-outline-warning">Hoverable Outline Warning Button</button>
<button class="btn btn-hover btn-outline-danger">Hoverable Outline Danger Button</button>
</div>

<div>
<button class="btn btn-outline-secondary"><a href="#">Link Button</a></button>
</div>

<div>
<button class="btn btn-secondary"><img src="download_white_24dp.svg" alt="download"></button>
</div>

<div>
<button class="btn btn-floating-action btn-danger"><img src="arrow_upward_white_24dp.svg" alt="go to top"></button>
</div>

</body>
</html>
1 change: 1 addition & 0 deletions button/download_white_24dp.svg
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 7f5397a

Please sign in to comment.