Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
EmpregaMais
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafaela Ramos
EmpregaMais
Commits
fccab53e
Commit
fccab53e
authored
Jun 11, 2026
by
2024105070020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementação da página de empresas e melhorias no sistema
parent
472b7ae3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
251 additions
and
47 deletions
+251
-47
app.py
app.py
+29
-2
cadastro.html
templates/cadastro.html
+44
-23
empresas.html
templates/empresas.html
+68
-0
index.html
templates/index.html
+39
-22
style.css
templates/style.css
+71
-0
No files found.
app.py
View file @
fccab53e
...
...
@@ -4,27 +4,31 @@ import os
app
=
Flask
(
__name__
)
# Caminho do banco
basedir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
app
.
config
[
'SQLALCHEMY_DATABASE_URI'
]
=
'sqlite:///'
+
os
.
path
.
join
(
basedir
,
'database.db'
)
db
=
SQLAlchemy
(
app
)
# Tabela do EmpregaMais
class
Curriculo
(
db
.
Model
):
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
)
nome
=
db
.
Column
(
db
.
String
(
100
))
email
=
db
.
Column
(
db
.
String
(
100
))
telefone
=
db
.
Column
(
db
.
String
(
20
))
cidade
=
db
.
Column
(
db
.
String
(
100
))
experiencia
=
db
.
Column
(
db
.
String
(
200
))
@app.route
(
'/'
)
def
index
():
curriculos
=
Curriculo
.
query
.
all
()
return
render_template
(
'index.html'
,
curriculos
=
curriculos
)
@app.route
(
'/cadastro'
,
methods
=
[
'GET'
,
'POST'
])
def
cadastro
():
...
...
@@ -45,6 +49,29 @@ def cadastro():
return
render_template
(
'cadastro.html'
)
@app.route
(
'/empresas'
)
def
empresas
():
vagas
=
[
{
'empresa'
:
'Google'
,
'vaga'
:
'Desenvolvedor Python'
,
'cidade'
:
'São Paulo'
,
'salario'
:
'R$ 8.000'
},
{
'empresa'
:
'Microsoft'
,
'vaga'
:
'Frontend Developer'
,
'cidade'
:
'Rio de Janeiro'
,
'salario'
:
'R$ 6.500'
}
]
return
render_template
(
'empresas.html'
,
vagas
=
vagas
)
if
__name__
==
'__main__'
:
with
app
.
app_context
():
...
...
templates/cadastro.html
View file @
fccab53e
...
...
@@ -2,38 +2,59 @@
<html>
<head>
<title>
Cadastro
</title>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='style.css') }}"
>
</head>
<body>
<h1>
Novo Currículo
</h1>
<div
class=
"navbar"
>
<div
class=
"logo"
>
EmpregaMais
</div>
<div
class=
"menu"
>
<a
href=
"/"
>
Home
</a>
<a
href=
"/empresas"
>
Empresas
</a>
</div>
</div>
<div
class=
"container"
>
<div
class=
"card"
>
<h1>
Novo Currículo
</h1>
<br>
<form
method=
"POST"
>
<label>
Nome
</label>
<input
type=
"text"
name=
"nome"
required
>
<form
method=
"POST"
>
<label>
Email
</label>
<input
type=
"email"
name=
"email"
required
>
Nome:
<input
type=
"text"
name=
"nome"
required
>
<br><br>
<label>
Telefone
</label>
<input
type=
"text"
name=
"telefone"
required
>
Email:
<input
type=
"email"
name=
"email"
required
>
<br><br>
<label>
Cidade
</label>
<input
type=
"text"
name=
"cidade"
required
>
Telefone:
<input
type=
"text"
name=
"telefone"
required
>
<br><br>
<label>
Experiência
</label>
<input
type=
"text"
name=
"experiencia"
required
>
Cidade:
<input
type=
"text"
name=
"cidade"
required
>
<br><br
>
<button
type=
"submit"
>
Salvar Currículo
</button
>
Experiência:
<input
type=
"text"
name=
"experiencia"
required
>
<br><br>
</form>
<button
type=
"submit"
>
Salvar
</button>
</div>
</form
>
</div
>
</body>
</html>
\ No newline at end of file
</html>
\ No newline at end of file
templates/empresas.html
0 → 100644
View file @
fccab53e
<!DOCTYPE html>
<html>
<head>
<title>
Empresas
</title>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='style.css') }}"
>
</head>
<body>
<div
class=
"navbar"
>
<div
class=
"logo"
>
EmpregaMais
</div>
<div
class=
"menu"
>
<a
href=
"/"
>
Home
</a>
<a
href=
"/cadastro"
>
Cadastrar
</a>
</div>
</div>
<div
class=
"hero"
>
<h1>
Empresas Contratando
</h1>
<p>
Confira vagas disponíveis agora.
</p>
</div>
<div
class=
"container"
>
<div
class=
"vagas-grid"
>
{% for vaga in vagas %}
<div
class=
"vaga-card"
>
<h2>
{{ vaga.empresa }}
</h2>
<p><strong>
Vaga:
</strong>
{{ vaga.vaga }}
</p>
<p><strong>
Cidade:
</strong>
{{ vaga.cidade }}
</p>
<p><strong>
Salário:
</strong>
{{ vaga.salario }}
</p>
<br>
<button>
Candidatar-se
</button>
</div>
{% endfor %}
</div>
</div>
</body>
</html>
\ No newline at end of file
templates/index.html
View file @
fccab53e
<!DOCTYPE html>
<html>
<head>
<title>
EmpregaMais
</title>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='style.css') }}"
>
</head>
<body>
<h1>
Currículos Cadastrados
</h1>
<div
class=
"navbar"
>
<div
class=
"logo"
>
EmpregaMais
</div>
<a
href=
"/cadastro"
>
<button>
Novo Currículo
</button>
</a>
<div
class=
"menu"
>
<a
href=
"/"
>
Home
</a>
<a
href=
"/cadastro"
>
Cadastrar
</a>
<a
href=
"/empresas"
>
Empresas
</a>
</div>
<table
border=
"1"
style=
"margin-top:10px"
>
</div
>
<tr>
<th>
Nome
</th>
<th>
Email
</th>
<th>
Telefone
</th>
<th>
Cidade
</th>
<th>
Experiência
</th>
</tr>
<div
class=
"hero"
>
{% for c in curriculos %}
<tr>
<td>
{{ c.nome }}
</td>
<td>
{{ c.email }}
</td>
<td>
{{ c.telefone }}
</td>
<td>
{{ c.cidade }}
</td>
<td>
{{ c.experiencia }}
</td>
</tr>
{% endfor %}
<div
class=
"hero-content"
>
</table>
<h1>
Conectando Pessoas ao Futuro
</h1>
<p>
Plataforma moderna para currículos e vagas de emprego.
</p>
<a
href=
"/cadastro"
>
<button>
Criar Currículo
</button>
</a>
</div>
</div>
</body>
</html>
\ No newline at end of file
templates/style.css
0 → 100644
View file @
fccab53e
*
{
margin
:
0
;
padding
:
0
;
box-sizing
:
border-box
;
}
body
{
font-family
:
Arial
;
background
:
#0f172a
;
}
.navbar
{
width
:
100%
;
padding
:
20px
8%
;
background
:
#0f172a
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.logo
{
color
:
#38bdf8
;
font-size
:
32px
;
font-weight
:
bold
;
}
.menu
a
{
color
:
white
;
text-decoration
:
none
;
margin-left
:
20px
;
}
.hero
{
height
:
90vh
;
background
:
linear-gradient
(
rgba
(
0
,
0
,
0
,
0.7
),
rgba
(
0
,
0
,
0
,
0.7
)),
url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?q=80&w=2070&auto=format&fit=crop')
;
background-size
:
cover
;
background-position
:
center
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
text-align
:
center
;
color
:
white
;
}
.hero-content
h1
{
font-size
:
70px
;
margin-bottom
:
20px
;
}
.hero-content
p
{
font-size
:
22px
;
margin-bottom
:
30px
;
}
button
{
padding
:
15px
30px
;
border
:
none
;
border-radius
:
10px
;
background
:
#38bdf8
;
font-size
:
18px
;
font-weight
:
bold
;
cursor
:
pointer
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment