-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExperiencesDetails.swift
75 lines (56 loc) · 1.92 KB
/
ExperiencesDetails.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
// ExperiencesDetails.swift
// CurriculumVitae
//
// Created by apprenant50 on 05/06/2022.
//
import SwiftUI
struct ExperiencesDetails: View {
var pastwork : PastWork
var body: some View {
VStack {
Text(pastwork.ets.rawValue)
.foregroundColor(.red)
.font(.system(size: 20))
.frame(width:350)
.shadow(color: .gray, radius: 5)
.padding()
HStack {
Image(systemName: "mappin.and.ellipse")
.foregroundColor(.black)
Text(pastwork.city.rawValue)
.foregroundColor(.black)
}
Image(pastwork.logo)
.resizable()
.scaledToFit()
.frame(width: 250, alignment: .center)
.cornerRadius(10)
.shadow(radius: 10)
.padding()
Text(pastwork.poste)
.foregroundColor(.accentColor)
.font(.system(size: 25))
.fontWeight(.semibold)
.frame(width:350)
.multilineTextAlignment(.center)
Text("en \(pastwork.contrat) en \(pastwork.duree)")
.foregroundColor(.gray)
.italic()
.font(.system(size:20))
Text(pastwork.competences)
.foregroundColor(.black)
.font(.system(size: 17))
.fontWeight(.thin)
.frame(width:310)
.multilineTextAlignment(.center)
.padding(15)
Spacer()
}
}
}
struct ExperiencesDetails_Previews: PreviewProvider {
static var previews: some View {
ExperiencesDetails(pastwork: experiences[0])
}
}