Skip to content

Commit ab240bc

Browse files
author
Administrator
committed
Refactor PDF icon and title in AdminExplanation component
1 parent 31e5a73 commit ab240bc

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
File renamed without changes.

src/screens/AdminDashboard/AdminExplanation.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,27 @@
3434
margin-bottom: 20px;
3535
}
3636

37+
/* Container for the PDF icon and title */
38+
.pdf-container-explain {
39+
/* left corner */
40+
display: flex;
41+
justify-content: flex-end;
42+
align-items: center;
43+
}
44+
45+
.pdf-icon-explain {
46+
width: 30px;
47+
height: 30px;
48+
cursor: pointer;
49+
flex-direction: column;
50+
}
51+
52+
.pdf-title-explain{
53+
font-size: 1em;
54+
color: #34495e;
55+
}
56+
57+
3758
.category-list {
3859
list-style-type: none;
3960
padding: 0;

src/screens/AdminDashboard/AdminExplanation.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
import React from 'react';
22
import './AdminExplanation.css';
3+
import pdfIcon from '../../assets/pdf-file.png'; // Importing the PDF icon
34

45
const AdminExplanation = () => {
56
return (
67
<div className="admin-explanation" dir="rtl">
8+
{/* PDF Icon with title under it */}
9+
<div className="pdf-container-explain">
10+
<a href={require('../../assets/Site guide.pdf')} target="_blank" rel="noopener noreferrer">
11+
<img src={pdfIcon} alt="PDF Icon" className="pdf-icon-explain" />
12+
</a>
13+
<span className="pdf-title-explain">
14+
<a href={require('../../assets/Site guide.pdf')} target="_blank" rel="noopener noreferrer" className="pdf-link-explain">
15+
מעבר למדריך המפורט
16+
</a>
17+
</span>
18+
</div>
19+
720
<h1 className="welcome-header">ברוכות הבאות ללוח הניהול</h1>
821
<p className="intro-text">כאן תוכלו לנהל את האתר ולבצע פעולות שונות בהתאם לקטגוריות המפורטות:</p>
922
<ul className="category-list">

0 commit comments

Comments
 (0)