After Width: | Height: | Size: 66 KiB |
@ -0,0 +1,65 @@
|
||||
package com.example.what_the_fantasy.data.local
|
||||
|
||||
import com.example.what_the_fantasy.data.model.Character
|
||||
|
||||
object CharacterStub {
|
||||
private val aragorn = Character(
|
||||
1,
|
||||
"Aragorn",
|
||||
1
|
||||
)
|
||||
|
||||
private val gandalf = Character(
|
||||
2,
|
||||
"Gandalf",
|
||||
2
|
||||
)
|
||||
|
||||
private val legolas = Character(
|
||||
3,
|
||||
"Legolas",
|
||||
3
|
||||
)
|
||||
|
||||
private val geralt = Character(
|
||||
4,
|
||||
"Geralt de Riv",
|
||||
4
|
||||
)
|
||||
|
||||
private val yennefer = Character(
|
||||
5,
|
||||
"Yennefer de Vengerberg",
|
||||
5
|
||||
)
|
||||
|
||||
private val ciri = Character(
|
||||
6,
|
||||
"Cirilla Fiona Elen Riannon",
|
||||
6
|
||||
)
|
||||
|
||||
private val jonSnow = Character(
|
||||
7,
|
||||
"Jon Snow",
|
||||
7
|
||||
)
|
||||
|
||||
private val daenerys = Character(
|
||||
8,
|
||||
"Daenerys Targaryen",
|
||||
8
|
||||
)
|
||||
|
||||
private val tywin = Character(
|
||||
9,
|
||||
"Tywin Lannister",
|
||||
9
|
||||
)
|
||||
|
||||
private val elric = Character(
|
||||
10,
|
||||
"Elric de Melniboné",
|
||||
10
|
||||
)
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package com.example.what_the_fantasy.data.local
|
||||
|
||||
import com.example.what_the_fantasy.data.model.Image
|
||||
|
||||
object ImageStub {
|
||||
private val imageAragorn = Image(
|
||||
1,
|
||||
"https://static.posters.cz/image/750/art-photo/aragorn-i142865.jpg"
|
||||
)
|
||||
|
||||
private val imageGandalf = Image(
|
||||
2,
|
||||
"https://static.wikia.nocookie.net/seigneur-des-anneaux/images/a/ad/Gandalf_Db.jpg/revision/latest/thumbnail/width/360/height/360?cb=20210919182300&path-prefix=fr"
|
||||
)
|
||||
|
||||
private val imageLegolas = Image(
|
||||
3,
|
||||
"https://storage.canalblog.com/81/50/1203904/92832500_o.jpeg"
|
||||
)
|
||||
|
||||
private val imageGeralt = Image(
|
||||
4,
|
||||
"https://www.journaldugeek.com/app/uploads/2024/05/the-witcher-3-mod.jpg"
|
||||
)
|
||||
|
||||
private val imageYennefer = Image(
|
||||
5,
|
||||
"https://www.parismatch.com/lmnr/var/pm/public/media/image/2022/03/02/01/The-Witcher-qui-est-l-actrice-Anya-Chalotra.jpg?VersionId=kkBQlX3KHlm1X7sTcGJGwJa3UREFwYFd"
|
||||
)
|
||||
|
||||
private val imageCiri = Image(
|
||||
6,
|
||||
"https://www.gamelove.com/sites/www.gamelove.com/files/Guide/the_witcher_3/ciri/guide-the-witcher-3-personnages-ciri-001.jpg²"
|
||||
)
|
||||
|
||||
private val imageJonSnow = Image(
|
||||
7,
|
||||
"https://i0.wp.com/imagesociale.fr/wp-content/uploads/got_jonsnow.jpg?ssl=1"
|
||||
)
|
||||
|
||||
private val imageDaenerys = Image(
|
||||
8,
|
||||
"https://www.leparisien.fr/resizer/VgcUVs3QvEeH9RP-T5l0XF2tYQQ=/932x582/cloudfront-eu-central-1.images.arcpublishing.com/leparisien/FXGTC7Z3TDOHOGXQI54NDKHQHI.jpg"
|
||||
)
|
||||
|
||||
private val imageTywin = Image(
|
||||
9,
|
||||
"https://media.vanityfair.fr/photos/60df271ce629ebff31500ece/1:1/w_652,h_652,c_limit/vf_tywin_lannister_4413.jpeg"
|
||||
)
|
||||
|
||||
private val imageElric = Image(
|
||||
10,
|
||||
"https://cdna.artstation.com/p/assets/images/images/036/577/590/large/maena-paillet-elric11-web.jpg?1618043196"
|
||||
)
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.example.what_the_fantasy.data.local
|
||||
|
||||
import com.example.what_the_fantasy.data.model.Source
|
||||
|
||||
object SourceStub {
|
||||
private val sourceLOTR = Source(
|
||||
1,
|
||||
"Le Seigneur des Anneaux",
|
||||
1954
|
||||
)
|
||||
|
||||
private val sourceWitcher = Source(
|
||||
2,
|
||||
"The Witcher",
|
||||
1990
|
||||
)
|
||||
|
||||
private val sourceGOT = Source(
|
||||
3,
|
||||
"Game of Thrones",
|
||||
1996
|
||||
)
|
||||
|
||||
private val sourceElric = Source(
|
||||
4,
|
||||
"Elric de Melniboné",
|
||||
1972
|
||||
)
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package com.example.what_the_fantasy.data.model
|
||||
|
||||
data class Character (
|
||||
val id: Int,
|
||||
val name: String,
|
||||
val imgUrl: String
|
||||
)
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.data.model
|
||||
|
||||
data class Image(
|
||||
val id: Int,
|
||||
val url: String
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
package com.example.what_the_fantasy.data.model
|
||||
|
||||
data class Quote (
|
||||
val id: Int,
|
||||
val content: String,
|
||||
val likes: Int,
|
||||
val language: String,
|
||||
val character: String,
|
||||
val source: String,
|
||||
val imgUrl: String
|
||||
)
|
@ -0,0 +1,8 @@
|
||||
package com.example.what_the_fantasy.data.model
|
||||
|
||||
data class Source (
|
||||
val id: Int,
|
||||
val title: String,
|
||||
val dateS: Int,
|
||||
val type: SrcType
|
||||
)
|
@ -1,4 +1,4 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
package com.example.what_the_fantasy.data.model
|
||||
|
||||
enum class SrcType (val value: String) {
|
||||
Movie("@string/movie"),
|
@ -1,12 +1,9 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
package com.example.what_the_fantasy.data.model
|
||||
|
||||
class User(
|
||||
val id:Int,
|
||||
var username:String,
|
||||
var email:String,
|
||||
var date:String,
|
||||
val imagePath:String,
|
||||
val imgUrl: String
|
||||
)
|
||||
{
|
||||
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
|
||||
class Character(
|
||||
val id:Int,
|
||||
val character:String,
|
||||
val imgPath: String
|
||||
)
|
||||
{
|
||||
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
|
||||
class Quote(
|
||||
val id:Int,
|
||||
val content:String,
|
||||
val character:String,
|
||||
val imagePath:String,
|
||||
val titleSrc:String,
|
||||
var likes:Int,
|
||||
val lang:String,
|
||||
val type:SrcType)
|
||||
{
|
||||
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
package com.example.what_the_fantasy.model
|
||||
|
||||
class Source(
|
||||
val id:Int,
|
||||
val title:String,
|
||||
val date:String,
|
||||
val type:SrcType
|
||||
)
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.example.what_the_fantasy.ui.components
|
||||
|
||||
class NavBar {
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.ui.screens
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
fun AccueilPage() {}
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.ui.screens
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
fun FavoritePage() {}
|
@ -0,0 +1,7 @@
|
||||
package com.example.what_the_fantasy.ui.screens
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
fun LoginPage() {
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.ui.screens
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
fun ProfilPage() {}
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.ui.screens
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
fun QuizPage() {}
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.ui.screens
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
fun QuotePage() {}
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.ui.screens
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
fun SearchPage() {}
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.ui.screens
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
fun SignUpPage() {}
|
@ -0,0 +1,6 @@
|
||||
package com.example.what_the_fantasy.ui.screens
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
fun SubmitQuotePage() {}
|
@ -0,0 +1,26 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="202"
|
||||
android:viewportHeight="202">
|
||||
<group android:scaleX="1.16"
|
||||
android:scaleY="1.16"
|
||||
android:translateX="-16.16"
|
||||
android:translateY="-16.16">
|
||||
<path
|
||||
android:pathData="M30,0L172,0A26,26 0,0 1,198 26L198,168A26,26 0,0 1,172 194L30,194A26,26 0,0 1,4 168L4,26A26,26 0,0 1,30 0z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="198"
|
||||
android:startY="194"
|
||||
android:endX="-6.98"
|
||||
android:endY="181.61"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF4A148C"/>
|
||||
<item android:offset="1" android:color="#FF7B1FA2"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
</group>
|
||||
</vector>
|
@ -1,170 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="#3DDC84"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
</vector>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
</selector>
|
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 4.1 KiB |
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 982 B After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 15 KiB |