Skip to content

Commit

Permalink
Merge branch 'develop' into audio-sentiment-analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
BasmaElhoseny01 committed Aug 17, 2024
2 parents ce5ae63 + 183c7ff commit 27bf7a6
Show file tree
Hide file tree
Showing 13 changed files with 932 additions and 974 deletions.
21 changes: 21 additions & 0 deletions src/components/atoms/ButtonBack.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<div>
<v-btn
icon
dark
fab
color="red"
fixed
right
class="mt-6 mr-2"
@click="$emit('click')"
>
<v-icon x-large>
mdi-arrow-u-left-bottom
</v-icon>
</v-btn>
</div>
</template>

<script>
</script>
168 changes: 168 additions & 0 deletions src/components/atoms/CardTypeTest.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
<template>
<div>
<v-card
hover
color="white"
class="cards ml-5 mr-5"
height="350"
@click="$emit('click', segundType)"
>
<v-row>
<v-sheet
class="ml-8 mt-6 mb-10 insideCards"
height="50"
width="50"
>
<v-img
class="ma-2"
:src="img"
/>
</v-sheet>

<div class="mt-6">
<span class="cardsTitle ml-4">{{ title }}</span>
<p class="cardSubtitle ml-4">
{{ type }}
</p>
</div>
</v-row>

<v-divider />

<div class="mt-1">
<v-row v-for="text in texts" :key="text" class="ml-6 mt-6 mb-6">
<v-sheet class="circle" />
<span class="cardInternTitles ml-3">{{ text }}</span>
</v-row>
</div>
</v-card>
</div>
</template>

<script>
export default {
props: {
title: {
type: String,
default: '',
require: true,
},
type: {
type: String,
default: '',
require: true,
},
img: {
type: String,
default: '',
require: true,
},
segundType: {
type: String,
default: '',
require: true,
},
texts: {
type: Array,
default: () => ([]),
require: true,
},
},
}
</script>

<style scoped>
.cards {
border-radius: 20px !important;
}
.cards :hover {
cursor: pointer;
transition: box-shadow 0.6s cubic-bezier(0.55, 0.9, 0.55, 2);
}
.insideCards {
border-radius: 14px;
background: linear-gradient(
90deg,
rgba(236, 62, 27, 0.404) 1%,
rgba(240, 152, 25, 0.3) 97.63%
);
}
.cardsTitle {
font-size: 24px;
font-weight: 600;
background-color: #f99726;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.cardSubtitle {
color: #8b959c;
font-size: 20px;
font-weight: 600;
}
.cardInternTitles {
max-width: 270px;
color: #626e76;
font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: normal;
}
.circle {
height: 20px;
width: 20px;
border-radius: 24px;
background: linear-gradient(
90deg,
rgba(255, 80, 45, 0.514) 1%,
rgba(240, 150, 25, 0.432) 97.63%
);
}
@media (max-width: 600px) {
.cards {
height: 250px; /* Adjust card height for smaller screens */
}
.cardsTitle {
font-size: 16 px;
}
.cardSubtitle {
font-size: 15px;
}
.circle {
height: 10px;
width: 10px;
}
.cardInternTitles {
max-width: 270px;
font-size: 15px;
}
}
@media (min-width: 601px) and (max-width: 1160px) {
.cards {
height: 300px; /* Adjust card height for medium screens */
width: 100%;
}
}
@media (min-width: 1160px) {
.cards {
height: 350px; /* Adjust card height for larger screens */
}
}
</style>
154 changes: 154 additions & 0 deletions src/components/atoms/CardTypeTestImage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
<template>
<div>
<v-card
hover
color="white"
class="cards ml-5 mr-5"
height="520"
@click="$emit('click', type)"
>
<v-row>
<div class="mt-6 ml-10">
<span class="titles">{{ title }}</span>
<p class="cardSubtitle2">
{{ type }}
</p>
</div>
</v-row>

<img
style="margin-left: 80px"
class="mt-5 mb-2"
height="230"
:src="img"
alt="Test Creation image"
>

<div class="mt-1">
<v-row v-for="text in texts" :key="text">
<v-sheet class="ml-10 mb-8 circle" />
<span class="cardInternTitles ml-3">{{ text }}</span>
</v-row>
</div>
</v-card>
</div>
</template>

<script>
export default {
props: {
title: {
type: String,
default: '',
require: true,
},
type: {
type: String,
default: '',
require: true,
},
img: {
type: String,
default: '',
require: true,
},
texts: {
type: Array,
default: () => ([]),
require: true,
},
},
}
</script>

<style scoped>
.titles {
font-size: 38px;
text-align: center;
font-weight: 600;
color: #f99726;
}
.card {
margin: auto;
}
.cards {
border-radius: 20px !important;
}
.cards :hover {
cursor: pointer;
transition: box-shadow 0.6s cubic-bezier(0.55, 0.9, 0.55, 2);
}
.cardSubtitle2 {
color: rgba(139, 149, 156, 0.64);
font-size: 16px;
font-weight: 600;
}
.circle {
height: 20px;
width: 20px;
border-radius: 24px;
background: linear-gradient(
90deg,
rgba(255, 80, 45, 0.514) 1%,
rgba(240, 150, 25, 0.432) 97.63%
);
}
.cardInternTitles {
color: #626e76;
font-size: 18px;
font-weight: 500;
}
@media (max-width: 600px) {
.titles {
font-size: 28px; /* Adjust font size for smaller screens */
}
.cards {
height: 250px; /* Adjust card height for smaller screens */
}
.cardSubtitle2 {
font-size: 16px;
}
.circle {
height: 10px;
width: 10px;
}
.cardInternTitles {
max-width: 270px;
font-size: 15px;
}
}
@media (min-width: 601px) and (max-width: 1160px) {
.titles {
font-size: 32px; /* Adjust font size for medium screens */
}
.cards {
height: 300px; /* Adjust card height for medium screens */
width: 100%;
}
}
@media (min-width: 1160px) {
.titles {
font-size: 38px; /* Adjust font size for larger screens */
}
.cards {
height: 350px; /* Adjust card height for larger screens */
}
}
</style>
Loading

0 comments on commit 27bf7a6

Please sign in to comment.