Skip to content

Commit

Permalink
Change Font, pretty format code.
Browse files Browse the repository at this point in the history
Signed-off-by: Daksh Chauhan <dak-x@outlook.com>
  • Loading branch information
dak-x committed Aug 29, 2021
1 parent 8f5050e commit ee997bc
Show file tree
Hide file tree
Showing 9 changed files with 227 additions and 250 deletions.
44 changes: 22 additions & 22 deletions soke-vise/src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
.App {
text-align: center;
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
11 changes: 6 additions & 5 deletions soke-vise/src/App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import logo from './logo.svg';
// import './App.css';
import MainBody from "./components/MainBody"

function App() {
return (
<MainBody></MainBody>
);
return ( <
MainBody > < /MainBody>

);
}

export default App;
export default App;
2 changes: 1 addition & 1 deletion soke-vise/src/baseUrl.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const baseUrl = "https://42e5-2405-201-4019-9b7b-55d1-7b40-bc65-d7ae.ngrok.io"
export const baseUrl = "http://localhost:8080"
85 changes: 42 additions & 43 deletions soke-vise/src/components/Card/card.css
Original file line number Diff line number Diff line change
@@ -1,51 +1,50 @@
.title{
width: 912px;
height: 26px;

/* Regular text */

font-family: Apercu Pro;
font-style: normal;
font-weight: 800;
font-size: 40px;
line-height: 26px;
/* identical to box height, or 130% */


/* Black */

color: #000000;


/* Inside Auto Layout */

flex: none;
order: 0;
flex-grow: 0;
margin: 20px 0px;
.title {
width: 912px;
height: 26px;
/* Regular text */
font-family: Noto Sans;
font-style: normal;
font-weight: 800;
font-size: 40px;
line-height: 26px;
/* identical to box height, or 130% */
/* Black */
color: #000000;
/* Inside Auto Layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 20px 0px;
}

.flex-container{
display: flex;
justify-content: space-between;
.flex-container {
display: flex;
justify-content: space-between;
}

.inner-text{
font-size: 20px;
margin-bottom: 20px;
.inner-text {
font-family: Noto Sans;
font-style: normal;
/* font-weight: 800; */
/* font-size: 40px; */
font-size: 16px;
margin-bottom: 20px;
}

.link,.link:visited{
text-decoration: none;
.link,
.link:visited {
text-decoration: none;
}

.card{

/* width: 80%; */
padding: 20px;
box-sizing: border-box;
margin: 20px auto;
background: #F2F4F8;
border-radius: 30px;

}
.card {
font-family: Noto Sans;
/* font-style: normal; */
/* font-weight: 800; */
font-size: 12px;
/* width: 80%; */
padding: 20px;
box-sizing: border-box;
margin: 20px auto;
background: #F2F4F8;
border-radius: 30px;
}
18 changes: 9 additions & 9 deletions soke-vise/src/components/Card/index.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React from 'react'
import "./card.css"
export default function Card({title,innerText,date,link}) {
export default function Card({ title, innerText, date, link }) {
return (
<div className="card">
<div className="title" >{title}</div>
<div className="inner-text" div dangerouslySetInnerHTML={{ __html: innerText }}>
</div>
<div className="flex-container">
<div className="last-visited"> {date}</div>
<a className="link" href={link}>visit</a>
</div>
<div className="title" >{title}</div>
<div className="inner-text" div dangerouslySetInnerHTML={{ __html: innerText }}>

</div>
<div className="flex-container">
<div className="last-visited"> {date}</div>
<a className="link" href={link}>visit</a>
</div>
</div>
)
}
6 changes: 3 additions & 3 deletions soke-vise/src/components/MainBody/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default function MainBody() {


})
if(lis.length===0){
lis=[{title:"No data found",url:"",lastaccessed:"",dom:""}]
if (lis.length === 0) {
lis = [{ title: "No data found", url: "", lastaccessed: "", dom: "" }]
}
return lis

Expand Down Expand Up @@ -165,7 +165,7 @@ export default function MainBody() {

}


</div>
</div>
)
Expand Down
Loading

0 comments on commit ee997bc

Please sign in to comment.