Skip to content

Commit

Permalink
'my first commit'
Browse files Browse the repository at this point in the history
  • Loading branch information
janet-barbie committed Jan 26, 2024
0 parents commit 4f9a98e
Show file tree
Hide file tree
Showing 26 changed files with 2,099 additions and 0 deletions.
Binary file added Janet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
165 changes: 165 additions & 0 deletions admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
:root {
--Primary-color: #ff6300;
--secondary-color: #ffcfb0;
}
.grid-container {
display: grid;
grid-template-columns: 1fr 5fr;
grid-template-rows: 50px 1fr;
grid-template-areas: "sidebar header" "sidebar main";
height: 100vh;
}
.header {
grid-area: header;
}
.aside {
grid-area: sidebar;
}
.sidebar {
display: flex;
}
.sidenav {
position: relative;
top: 0;
bottom: 0;
height: 100vh;
left: 0;
background: #fff;
width: 200px;
overflow: hidden;
box-shadow: 4px 0 20px rgb(0 0 0/20%);
}
.logo {
text-align: center;
display: flex;
margin: 30px 0 0 10px;
}

a {
font-size: 20px;
display: flex;
align-items: center;
width: 200px;
padding: 10px;
text-decoration: none;
color: #000;
font-weight: 400;
gap: 1rem;
}
.logout {
position: absolute;
bottom: 0;
left: 0;
}
a:link {
color: #000;
text-decoration: none;
}
a:visited {
color: #000;
}
a:hover {
color: var(--secondary-color);
font-weight: bold;
}
a:active {
background-color: var(--Primary-color);
font-style: italic;
}
.heading {
margin: 50px auto;
text-align: left;
}
.main-container {
grid-area: main;
}
.main-container {
grid-area: main;
overflow-y: auto;
padding: 20px 20px;
}
.input-field {
width: 70%;
background-color: #d9d9d9;
padding: 1.6rem;
margin: 1.6rem 0;
text-align: center;
}

table {
width: 900px;
background-color: #fff;
border: 1px solid #000;
border-collapse: collapse;
}
/* thead tr th {
font-weight: 400;
padding: 16px 24px;
} */
/* tbody tr:nth-child(odd) {
background-color: #f8f9fa;
}
tbody tr:nth-child(even) {
background-color: #e9ecef;
}
*/
td {
border: 1px solid #000;
padding: 16px 24px;
}
.main-content {
width: 500px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19);
}
/* text editor */
.text-editor-header {
background-color: #ecf0f1;
padding: 5px;
}
.text-editor-header .btns {
border: none;
outline: none;
background-color: transparent;
margin-right: 5px;
cursor: pointer;
}
/* content */
.content {
min-height: 100px;
border: 1px solid #ecf0f1;
border-radius: 5px;
border-top: 0;
padding: 20px;
margin-bottom: 20px;
}
.btn {
display: inline-block;
padding: 13px 20px;
background: var(--Primary-color);
color: #333;
font-weight: 600;
text-decoration: none;
border: none;
border-radius: 5px;
cursor: pointer;
transition: 0.5s;
margin: 20px;
}
.icon {
padding: 0 10px;
}
.edit-icon {
color: #087f5b;
}
.trash-icon {
color: rgb(207, 31, 31);
}
.reply-icon {
color: rgb(21, 21, 131);
}
184 changes: 184 additions & 0 deletions blog.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Poppins", sans-serif;
line-height: 1;
/* font-size: 1rem; */
}
:root {
--Primary-color: #ff6300;
--secondary-color: #ffcfb0;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}

ul {
list-style: none;
}

.navbar {
background-color: #fff;
padding: 1.25rem;
/* max-width: 81.25rem; */
}

.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
z-index: 100;
}
.nav.sticky {
position: fixed;
background-color: #fff;
}
.navbar .main-menu ul {
display: flex;
align-items: center;
}
.navbar ul li a {
padding: 0 1.25rem;
display: block;
font-weight: 600;
transition: 0.5s;
}
a:link {
color: #000;
text-decoration: none;
}
a:visited {
color: #000;
}
a:hover {
color: var(--Primary-color);
font-weight: bold;
}
a:active {
background-color: var(--secondary-color);
font-style: italic;
}

.post-img {
width: 80%;
height: auto;
border-radius: 5px;
}
#author {
font-style: italic;
}
.author-box {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.post-header {
margin-bottom: 40px;
}
h2 {
margin-bottom: 20px;
}
p {
font-size: 20px;
line-height: 1.5;
margin: 20px;
}
.socials {
text-align: right;
margin-bottom: 2rem;
}
.likes {
display: flex;
justify-content: flex-start;
align-items: center;
}
.text-area {
display: block;
height: 20vh;
width: 25%;
padding: 0.625rem;
margin-bottom: 1.25rem;
box-sizing: border-box;
background-color: #d9d9d9;
border-radius: 15px;
}
.btn {
display: inline-block;
padding: 13px 20px;
background: var(--Primary-color);
color: #333;
font-weight: 600;
text-decoration: none;
border: none;
border-radius: 5px;
cursor: pointer;
transition: 0.5s;
margin-bottom: 20px;
}

.hamburger-button {
display: none;
background: none;
border: none;
cursor: pointer;
padding: 10px;
z-index: 1000;
}
.hamburger-button .hamburger-line {
width: 30px;
height: 3px;
background: #333;
margin: 6px 0;
}
/* Mobile menu */
.mobile-menu {
position: fixed;
top: 0;
right: -300px;
width: 250px;
height: 100%;
z-index: 100;
background: white;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
transition: right 0.3s ease-in-out;
}
.mobile-menu.active {
right: 0;
}
.mobile-menu ul {
margin-top: 100px;
padding-right: 10px;
}
.mobile-menu ul li {
margin: 10px 0;
}
.mobile-menu ul li a {
font-size: 20px;
transition: 0.3s;
}
.mobile-menu ul li a:hover {
color: var(--Primary-color);
}
@media (max-width: 960px) {
.author-box {
flex-wrap: wrap;
}
.text-area {
width: 70%;
}
}
@media (max-width: 670px) {
.navbar .main-menu {
display: none;
}
.navbar .hamburger-button {
display: block;
}
}
Loading

0 comments on commit 4f9a98e

Please sign in to comment.