Skip to content

Commit b61ea8b

Browse files
committed
design edits
1 parent 3e23ff5 commit b61ea8b

File tree

5 files changed

+78
-6
lines changed

5 files changed

+78
-6
lines changed

rsa-frontend/public/icon/bin.png

960 Bytes
Loading

rsa-frontend/public/icon/file.png

1.6 KB
Loading

rsa-frontend/src/routes/components/FileExplorer.js

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,52 @@
11
import React from 'react';
22

3-
const FileExplorer = () => {
3+
const FileContainer = ({ owner, fileName, size, id }) => (
4+
<div className={"file-container custom-row"} style={{justifyContent:"space-between",alignItems:"center"}}>
5+
<div>
6+
<p className={"font-bold"}>{owner}</p>
7+
<p>{fileName}</p>
8+
<p className={"x-small-text"}>{size}</p>
9+
</div>
10+
<div className={"custom-row"} style={{gap:8}}>
11+
<div className={"icon-box"} style={{backgroundColor:"var(--orange-color-1)"}}>
12+
<img src="/icon/bin.png" alt="Remove File" className={"mini-icon"}/>
13+
</div>
14+
<div className={"icon-box"} style={{backgroundColor:"var(--yellow-color-1)"}}>
15+
<img src="/icon/file.png" alt="Open File" className={"mini-icon"}/>
16+
</div>
17+
</div>
18+
</div>
19+
);
420

21+
const FileExplorer = () => {
522

623
return (
724
<div className="file-explorer">
825
<p className={"title-text"}><span>Dosya</span> Gezgini</p>
26+
927
<div className={"custom-row"}>
1028
<img src="/icon/public.png" alt="" className={"mid-icon"}/>
1129
<div>
12-
<p style={{color:"var(--orange-color-1)"}}>Geçerli <span>Açık Anahtar</span></p>
30+
<p style={{color: "var(--orange-color-1)"}}>Geçerli <span>Açık Anahtar</span></p>
1331
<p className={"small-text"}>Anahtar Bekleniyor</p>
1432
</div>
1533
</div>
34+
1635
<div className={"custom-row"}>
1736
<img src="/icon/private.png" alt="" className={"mid-icon"}/>
1837
<div>
19-
<p style={{color:"var(--yellow-color-1)"}}>Geçerli <span>Kapalı Anahtar</span></p>
38+
<p style={{color: "var(--yellow-color-1)"}}>Geçerli <span>Kapalı Anahtar</span></p>
2039
<p className={"small-text"}>Anahtar Bekleniyor</p>
2140
</div>
2241
</div>
2342

43+
<FileContainer owner="Alice" fileName="abc.txt" size="148 kb" id="1" />
44+
45+
<div className={"remove-button"}>
46+
<img src="/icon/bin.png" alt="Clear System" className={"mini-icon"}/>
47+
<p className={"small-text"}>Sistemi Temizle</p>
48+
</div>
49+
2450
</div>
2551
);
2652
};

rsa-frontend/src/routes/css/index.css

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
--orange-color-1: rgb(254,129,45);
66
--green-color-1: rgb(3,166,74);
77
--yellow-color-1: rgb(255,201,40);
8+
--red-color-1: rgb(230,38,38);
89
--grey-color-1: rgb(231,231,231);
910
--background-color: rgb(245, 245, 245);
1011
--secondary-color-1: rgb(245,245,245);
@@ -119,11 +120,24 @@ span{
119120
height: 22px;
120121
}
121122

123+
.icon-box{
124+
border-radius: 100%;
125+
width: 28px;
126+
height: 28px;
127+
display: flex;
128+
align-items: center;
129+
justify-content: center;
130+
cursor: pointer;
131+
}
132+
122133
.scenarios{
123134
display: flex;
124135
flex-direction: column;
125136
gap: 12px;
126-
137+
background-color: var(--primary-color-1);
138+
width: max-content;
139+
border-radius: 12px;
140+
padding: 12px;
127141
}
128142

129143
.scenario-button {
@@ -150,7 +164,6 @@ span{
150164

151165
.scenario-button:hover{
152166
padding: 0 28px;
153-
box-shadow: rgba(0, 0, 0, 0.3) 0 2px 2px;
154167
}
155168

156169

@@ -185,7 +198,7 @@ span{
185198
color: var(--secondary-color-1);
186199
}
187200

188-
.user-button:hover{
201+
.user-button:hover ,.scenario-button:hover ,.remove-button:hover{
189202
box-shadow: rgba(0, 0, 0, 0.3) 0 2px 2px;
190203
}
191204

@@ -204,3 +217,28 @@ span{
204217
.file-explorer p{
205218
color: var(--secondary-color-1);
206219
}
220+
221+
.remove-button{
222+
width: max-content;
223+
display: flex;
224+
gap: 6px;
225+
border-radius: 6px;
226+
padding: 6px;
227+
background-color: var(--red-color-1);
228+
cursor: pointer;
229+
align-self: end;
230+
}
231+
232+
.remove-button:hover{
233+
padding: 6px 8px;
234+
}
235+
236+
.file-container{
237+
padding: 8px;
238+
border-radius: 8px;
239+
background-color: var(--grey-color-1);
240+
}
241+
242+
.file-container p{
243+
color: var(--black-color-1);
244+
}

rsa-frontend/src/routes/css/text.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@
88

99
.small-text{
1010
font-size: 14px;
11+
}
12+
13+
.x-small-text{
14+
font-size: 12px;
15+
}
16+
17+
.font-bold{
18+
font-weight: bold;
1119
}

0 commit comments

Comments
 (0)