Skip to content

Commit

Permalink
Create Global Styling to Policies Page
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberSphinxxx committed Nov 4, 2024
1 parent 771da30 commit b4ae358
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 1 deletion.
200 changes: 200 additions & 0 deletions policies/policies-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
:root {
--primary-color: #0054a2;
--secondary-color: #ff9900;
--background-color: #f9f9f9;
--text-color: #333;
--card-bg-color: #ffffff;
}

body {
font-family: 'PT Serif', serif;
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.6;
margin: 0;
padding: 0;
}

header {
background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
color: white;
padding: 1rem 0;
}

.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}

.header-nav {
position: absolute;
left: 0;
}

.back-button {
color: white;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
border-radius: 4px;
transition: all 0.3s ease;
font-size: 1rem;
background-color: rgba(255, 255, 255, 0.1);
}

.back-button:hover {
background-color: rgba(255, 255, 255, 0.2);
transform: translateX(-5px);
}

.back-button i {
font-size: 0.9rem;
}

.header-logo {
flex: 1;
text-align: center;
}

.header-logo a {
color: white;
font-size: 2rem;
text-decoration: none;
font-weight: bold;
}

main {
max-width: 1200px;
margin: 2rem auto;
padding: 0 2rem;
}

h1 {
color: var(--primary-color);
font-size: 2.5rem;
text-align: center;
margin-bottom: 2rem;
}

.policy-section {
background-color: var(--card-bg-color);
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 2rem;
margin-bottom: 2rem;
transition: transform 0.3s ease;
}

.policy-section:hover {
transform: translateY(-5px);
}

h2 {
color: var(--primary-color);
font-size: 1.8rem;
margin-bottom: 1rem;
display: flex;
align-items: center;
}

h2 i {
margin-right: 0.5rem;
color: var(--secondary-color);
}

ul {
list-style-type: none;
padding-left: 1.5rem;
}

ul li {
margin-bottom: 0.5rem;
position: relative;
}

ul li::before {
content: "\2022";
color: var(--secondary-color);
font-weight: bold;
display: inline-block;
width: 1em;
margin-left: -1em;
}

.security-features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}

.feature-card {
background-color: var(--card-bg-color);
border-radius: 8px;
padding: 1.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}

.feature-card:hover {
transform: translateY(-5px);
}

.feature-card h3 {
color: var(--primary-color);
font-size: 1.2rem;
margin-bottom: 0.5rem;
}

.feature-card p {
font-size: 0.9rem;
color: var(--text-color);
}

.policy-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}

.grid-subtitle {
font-weight: bold;
}

@media (max-width: 768px) {
.header-container {
padding: 0 1rem;
}

.back-button {
padding: 0.4rem 0.8rem;
font-size: 0.9rem;
}

main {
padding: 0 1rem;
}

.policy-section {
padding: 1.5rem;
}

h1 {
font-size: 2rem;
}

h2 {
font-size: 1.5rem;
}

.policy-grid {
grid-template-columns: 1fr;
}
}
2 changes: 1 addition & 1 deletion policies/security-policies/security-policy.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Security Policy - PasswordSentinel</title>
<link href="https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="stylesheet" href="/policies/security-policies/security-policy-styles.css">
<link rel="stylesheet" href="/policies/policies-styles.css">
</head>
<body>
<header>
Expand Down

0 comments on commit b4ae358

Please sign in to comment.