Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 179 additions & 21 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,196 @@
.App {
text-align: center;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.App-logo {
height: 40vmin;
pointer-events: none;
.idCard-container{
width: 600px;
height: 150px;
border: 1px solid black;
display: flex;
padding: 10px;
gap: 50px;
margin-top: 10px;
margin-left: 10px;
}

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

.idCard-container img {
height: 150px;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
.idCard-container .text{
text-align: left;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}

.greeting-container {
width: 600px;
height: fit-content;
border: 1px solid black;
margin-top: 10px;
margin-left: 10px;
}

.random-container{
width: 600px;
height: fit-content;
border: 1px solid black;
margin-top: 10px;
}


.box-container{
margin-top: 10px;
color: white;
text-align: center;
font-size: 1.5rem;
}

.creditCard-container {
margin-top: 10px;
border-radius: 10px;
display: flex;
flex-direction: column;
padding: 15px;
}

.card-logo {
align-self: flex-end;
}

.logo-img {
width: 60px;
height: 30px;
}

.card-number {
font-size: 2rem;
margin-top: 10px;
margin-bottom: 20px;
}

.card-info {
font-size: 0.95rem;
align-self: flex-start;
}

.expiry {
margin-right: 40px;
}

.card-info .name {
margin-left: -30px;
font-size: 1.05rem;
}

.rating-container {
font-size: 2rem;
}


.driver-card {
margin-top: 10px;
border-radius: 10px;
display: flex;
width: 700px;
height: 150px;
background-color: #365AB1;
justify-content: center;
font-size: calc(10px + 2vmin);
align-items: center;
color: white;
gap: 10px;
}

.driver-img img {
width: 100px;
height: 100px;
border-radius: 50%;
}

.driver-info {
display: flex;
flex-direction: column;
text-align: left;
}

.driver-info h1 {
font-size: 1.5rem;
margin-bottom: 5px;
}

.driver-info p {
margin-top: 5px;
}


.like-button {
width: 170px;
height: 70px;
margin-top: 10px;
border: none;
border-radius: 10px;
color: white;
}

.App-link {
color: #61dafb;
.dice-img {
margin-top: 20px;
width: 300px;
height: 300px;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
.carousel-container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 30px;
margin: 20px;
}


.numbers-table {
margin-top: 21px;
justify-content: center;
display: grid;
grid-template-columns: repeat(5, 52px);
grid-template-rows: repeat(3, 52px);
gap: 0px;
}

.number {
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid black;
font-size: 18px;
font-weight: 500;
}

.even {
background-color: red;
}

.odd {
color: black;
}

.single-color-picker,
.result-box {
display: flex;
align-items: center;
margin-bottom: 10px;
}

.color-box {
width: 50px;
height: 50px;
border: 1px solid black;
margin-right: 10px;
}
155 changes: 139 additions & 16 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,147 @@
import logo from './logo.svg';
import './App.css';

import Idcard from './components/Idcard';
import Greetings from './components/Greetings';
import Random from './components/Random';
import BoxColor from './components/BoxColor';
import CreditCard from './components/CreditCard';
import Ratings from './components/Ratings';
import DriverCard from './components/DriverCard';
import LikeButton from './components/LikeButton';
import ClickablePicture from './components/ClickablePicture';
import Dice from './components/Dice';
import Carousel from './components/Carousel';
import NumbersTable from './components/NumbersTable';
import RGBColorPicker from './components/RGBColorPicker';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<Idcard
lastName= 'Saqhib'
firstName= 'Mohammed'
gender= 'Male'
height={172}
birth={new Date("1988-05-11")}
picture="https://randomuser.me/api/portraits/women/44.jpg"
/>
<Idcard
lastName= 'Fawad'
firstName= 'Riyaz'
gender= 'Male'
height={192}
birth={new Date("1993-05-11")}
picture="https://randomuser.me/api/portraits/men/44.jpg"
/>

<Greetings lang="de">Ludwig</Greetings>
<Greetings lang="fr">François</Greetings>
<Greetings lang="pl">Riyaz</Greetings>
<Greetings lang="es">Santiago</Greetings>

<Random min={3} max={22}/>
<Random min={7} max={77}/>

<BoxColor r={255} g={0} b={0} />
<BoxColor r={128} g={255} b={0} />

<CreditCard
type="Visa"
number="0123456789018845"
expirationMonth={3}
expirationYear={2021}
bank="BNP"
owner="Maxence Bouret"
bgColor="#11aa99"
color="white"
/>
<CreditCard
type="Master Card"
number="0123456789010995"
expirationMonth={3}
expirationYear={2021}
bank="N26"
owner="Maxence Bouret"
bgColor="#eeeeee"
color="#222222"
/>
<CreditCard
type="Visa"
number="0123456789016984"
expirationMonth={12}
expirationYear={2019}
bank="Name of the Bank"
owner="Firstname Lastname"
bgColor="#ddbb55"
color="white"
/>


<Ratings>0</Ratings>

<Ratings>1.49</Ratings>

<Ratings>1.5</Ratings>

<Ratings>3</Ratings>

<Ratings>4</Ratings>

<Ratings>5</Ratings>

<DriverCard
name="Travis Kalanick"
rating={4.2}
img="https://si.wsj.net/public/resources/images/BN-TY647_37gql_OR_20170621052140.jpg?width=620&height=428"
car={{
model: "Toyota Corolla Altis",
licensePlate: "CO42DE"
}}

/>



<DriverCard
name="Dara Khosrowshahi"
rating={4.9}
img="https://ubernewsroomapi.10upcdn.com/wp-content/uploads/2017/09/Dara_ELT_Newsroom_1000px.jpg"
car={{
model: "Audi A3",
licensePlate: "BE33ER"
}}
/>

<LikeButton/>

<ClickablePicture

img='../assets/images/maxence.png'

imgClicked='../assets/images/maxence-glasses.png'

/>

<Dice/>

<Carousel

images={[
'https://randomuser.me/api/portraits/women/1.jpg',
'https://randomuser.me/api/portraits/men/1.jpg',
'https://randomuser.me/api/portraits/women/2.jpg',
'https://randomuser.me/api/portraits/men/2.jpg'
]}

/>

<NumbersTable limit={30} />


<RGBColorPicker />


</div>


);
}

Expand Down
Binary file added src/assets/images/mastercard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading